MAL-2026-11916

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/schema-comparison/MAL-2026-11916.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11916
Aliases
  • GHSA-qw53-cr23-328q
Published
2026-08-04T15:29:30Z
Modified
2026-08-05T06:35:35.377010893Z
Summary
Malicious code in @servicetitan/schema-comparison (npm)
Details

npm/@servicetitan/schema-comparison is affected by the large-scale, self-propagating npm supply-chain worm of 2026-08-04 (the "Shai-Hulud: Here We Go Again" wave) — the same campaign that began with the compromise of the keyv and cacheable maintainer account. The listed version(s) were trojanized and republished by the worm after it reached an npm publish token belonging to a maintainer in this namespace; the payload enumerates every package a stolen token controls and republishes each with the same hook, so many packages under this scope were poisoned in the same short window. Every poisoned release adds a preinstall hook ("preinstall": "node setup.mjs") that runs on a bare npm install, before any project code. setup.mjs downloads a standalone Bun runtime and runs a byte-identical, heavily obfuscated ~728 KB second-stage credential stealer (shipped as MathSymbol.js / mathinit.js). It harvests GitHub, npm, AWS, GCP, Azure, HashiCorp Vault and Kubernetes credentials plus generic secrets and private keys (TruffleHog-style sweep), reads CI/CD secrets and identifies build runners, then republishes further packages the stolen token can reach. Rather than a fixed command-and-control host, it exfiltrates stolen findings to attacker-created GitHub repositories (descriptions reading "Shai-Hulud: Here We Go Again") and over DNS. Treat any environment that installed an affected version (with install scripts enabled) as compromised: rotate and revoke all reachable credentials (npm and GitHub tokens, cloud keys, Vault/Kubernetes secrets, and CI org/repo secrets). Part of the August 2026 npm worm that poisoned 400+ packages across many organizations.


-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (cd76289b17625a5b6e4f39303351578d7a9941229899f6982f72dc00d3061552)

The package declares preinstall: node setup.mjs. setup.mjs is obfuscator.io-style obfuscated (_0xNNNNNN identifiers, per-function dispatch objects) and, at install time, downloads the Bun runtime from https://github.com/oven-sh/bun/releases/download/bun-v1.3.13/..., stages it in a temp directory, marks it executable, then invokes it via execFileSync(<bun-path>, [path.join(D, 'math_init.js')], { stdio: 'inherit', cwd: D }). The executed sibling math_init.js is a 727KB single-line // @bun @bun-cjs module with obfuscator.io fingerprints (shuffled string-array shifter WV8StW(...)MmgoCP.push(MmgoCP.shift()), ~2000-entry mixed-type constant array, 7-character identifiers, with statements). It is unrelated to the package's stated schema-comparison purpose, absent from src/, and never referenced by the two-file commander-based diff CLI in dist/src. Executing under a freshly-downloaded alien runtime evades Node-based static inspection. The scoped name @servicetitan/schema-comparison (empty description, publishConfig.access: restricted, gitHead not resolvable to a public ServiceTitan repo, dependencies limited to commander) matches a dependency-confusion targeting shape against ServiceTitan's private scope. The preinstall dropper fires automatically on npm install.

Source: ghsa-malware (e4d84388841531791c62f606f3afbc598406d065d05af95b13f7fe9cf3f74267)

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Database specific
{
    "iocs": {
        "files": [
            {
                "paths": [
                    "setup.mjs"
                ],
                "note": "Stage 1 loader added to the package tarball and run via the preinstall script 'node setup.mjs'. Downloads a standalone Bun runtime and executes the second stage under it.",
                "source": "PACKAGE_ARCHIVE"
            },
            {
                "paths": [
                    "Math_Symbol.js",
                    "math_init.js"
                ],
                "note": "Stage 2 payload: byte-identical, heavily obfuscated ~728 KB Bun-bundle credential stealer, shipped in the tarball as Math_Symbol.js and executed at runtime as math_init.js.",
                "source": "PACKAGE_ARCHIVE"
            }
        ]
    },
    "malicious-packages-origins": [
        {
            "source": "ghsa-malware",
            "modified_time": "2026-08-04T16:38:19Z",
            "sha256": "e4d84388841531791c62f606f3afbc598406d065d05af95b13f7fe9cf3f74267",
            "id": "GHSA-qw53-cr23-328q",
            "versions": [
                "0.1.9",
                "0.1.8",
                "0.1.7",
                "0.1.6",
                "0.1.5",
                "0.1.4",
                "0.1.3"
            ],
            "import_time": "2026-08-05T00:10:18.209914727Z"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T02:58:14Z",
            "sha256": "428fb18e37dce5c4e65e61e65f148ecebed71187e49e76bd66e159da6fb6005c",
            "id": "IN-MAL-2026-012006",
            "versions": [
                "0.1.4"
            ],
            "import_time": "2026-08-05T03:12:09.080540757Z"
        },
        {
            "import_time": "2026-08-05T03:12:16.59397749Z",
            "modified_time": "2026-08-05T03:09:01Z",
            "sha256": "9a3b6453748085c4d995662d8bb19e30e8e5479156ac0180273cbf64ff2e661a",
            "id": "IN-MAL-2026-012083",
            "versions": [
                "0.1.6"
            ],
            "source": "amazon-inspector"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T03:59:45Z",
            "sha256": "437e75d234a633a060d8edec1e7fd75a8019496376511ce3ced1540918f98c1c",
            "id": "IN-MAL-2026-012438",
            "versions": [
                "0.1.9"
            ],
            "import_time": "2026-08-05T04:38:10.549053367Z"
        },
        {
            "import_time": "2026-08-05T04:37:39.921509251Z",
            "modified_time": "2026-08-05T03:23:04Z",
            "sha256": "516a5680cd47cc562db3de76bfde28eb8802cbf9695ec8b63cd1f546cb84b8b6",
            "id": "IN-MAL-2026-012181",
            "versions": [
                "0.1.7"
            ],
            "source": "amazon-inspector"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T04:06:36Z",
            "sha256": "a54517df088c75e72b3a3bf5393543b23259585c6d429d2cb3fdc86b93cabe18",
            "id": "IN-MAL-2026-012487",
            "versions": [
                "0.1.8"
            ],
            "import_time": "2026-08-05T04:38:16.016363807Z"
        },
        {
            "import_time": "2026-08-05T05:59:57.559889536Z",
            "modified_time": "2026-08-05T04:40:58Z",
            "sha256": "01e3c136c5815ae70ffac730490447369bacc046681a497232f44f990048471e",
            "id": "IN-MAL-2026-012730",
            "versions": [
                "0.1.5"
            ],
            "source": "amazon-inspector"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T04:53:48Z",
            "sha256": "cd76289b17625a5b6e4f39303351578d7a9941229899f6982f72dc00d3061552",
            "id": "IN-MAL-2026-012819",
            "versions": [
                "0.1.3"
            ],
            "import_time": "2026-08-05T06:00:08.174154418Z"
        }
    ]
}
References
Credits

Affected packages

npm / @servicetitan/schema-comparison

Package

Name
@servicetitan/schema-comparison
View open source insights on deps.dev
Purl
pkg:npm/%40servicetitan/schema-comparison

Affected ranges

Affected versions

0.*
0.1.3
0.1.4
0.1.5
0.1.6
0.1.7
0.1.8
0.1.9

Database specific

cwes
[
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
indicators
{
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-O1mnaePb7HOkO1Cq0mbktr7uu76df+hQ/MSpUkwWy6ScyEAOmV+RMrKtgzeN20iz/IycYAq/qhT6irouxSxBdg==",
                "sha1": "4ef2c2f7f6535cfb8c4469dcca58e984112cedc3"
            },
            "filename": "schema-comparison-0.1.4.tgz"
        }
    ],
    "evidence_files": [
        {
            "path": "setup.mjs",
            "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
            "tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be"
        },
        {
            "path": "math_init.js",
            "sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
            "tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d"
        },
        {
            "path": "package.json",
            "sha256": "d14734ee9c5e3e506f5c940c094de1065ae38405401bbeee391cd2d35bb41253",
            "tlsh": "45f05c1188715c7321ec22f82c3f0a4367510c1b0528beac73d7a61c4b2d2b749bb69d"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/schema-comparison/MAL-2026-11916.json"