npm/@servicetitan/eh-module-communication 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.=-
The package declares scripts.preinstall: node setup.mjs. setup.mjs downloads a Bun runtime archive from https://github.com/oven-sh/bun/releases/download/bun-v<version>/<asset>.zip, extracts it to a temp directory, chmods it executable, and invokes it via execFileSync to run a sibling file math_init.js shipped in the tarball. math_init.js is a 727 KB Bun-compiled bundle (// @bun @bun-cjs header) with hex-mangled identifiers, a shuffled string array with a shift-based decoder, and a custom character-substitution decoder. The advertised library entry dist/index.js is a ~200-byte React shared-registry re-export with no reference to math_init.js; the obfuscated bundle is only reachable from the preinstall dropper. Installing the package under a standard npm install fetches an alternate runtime and executes the opaque payload under it, so node-based scanners and inspection tooling never observe the executed code. The pairing of an established-looking vendor scope (@servicetitan) with an install-time alternate-runtime dropper delivering an obfuscated payload unrelated to the declared React helper is consistent with a compromised-maintainer or typosquat supply-chain attack.
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.
{
"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:39:42Z",
"sha256": "0449a6a0e0efc75608a466ac675bdfdd867d14d225c0216d46fc0d9b0b80803a",
"id": "GHSA-xhv5-4v3v-vc3v",
"versions": [
"0.2.7",
"0.2.6",
"0.2.5",
"0.2.4",
"0.2.1",
"0.2.3",
"0.2.2"
],
"import_time": "2026-08-05T00:10:18.291901354Z"
},
{
"import_time": "2026-08-05T04:38:33.6648534Z",
"modified_time": "2026-08-05T04:27:06Z",
"sha256": "07432d454a8ac7ed898372884e5246341526fa9177a35dc8bb3c1542e6bc9221",
"id": "IN-MAL-2026-012630",
"versions": [
"0.2.4"
],
"source": "amazon-inspector"
},
{
"import_time": "2026-08-05T04:37:47.720563342Z",
"sha256": "16c0ce32890cdda356676ebed74713b8d241f6eade01aa6cb6aad647426fef60",
"modified_time": "2026-08-05T03:31:58Z",
"id": "IN-MAL-2026-012244",
"versions": [
"0.2.6"
],
"source": "amazon-inspector"
},
{
"import_time": "2026-08-05T04:37:51.648834632Z",
"sha256": "6f84c36c0a72d469f9840ae9ec4332718deb453d57e3ab9ae01125500e5d71c9",
"modified_time": "2026-08-05T03:36:25Z",
"id": "IN-MAL-2026-012276",
"versions": [
"0.2.5"
],
"source": "amazon-inspector"
},
{
"import_time": "2026-08-05T04:37:58.318539101Z",
"modified_time": "2026-08-05T03:44:21Z",
"sha256": "aad9b0d28cbc9389f15788ceda8c68937d99925a5a18fef8ec18df7158df8bf8",
"id": "IN-MAL-2026-012331",
"versions": [
"0.2.3"
],
"source": "amazon-inspector"
},
{
"import_time": "2026-08-05T04:38:07.663908338Z",
"modified_time": "2026-08-05T03:56:15Z",
"sha256": "f5251474b386abda6da19ee3f57d0ee7be8cb1ced78d56bd6dfb574b3375e4d8",
"id": "IN-MAL-2026-012414",
"versions": [
"0.2.7"
],
"source": "amazon-inspector"
},
{
"import_time": "2026-08-05T06:00:14.230655757Z",
"modified_time": "2026-08-05T05:01:12Z",
"sha256": "82935f9338da8eaf44724ebdcec3f851a88d6ed5c23d5edd164f8623f7354071",
"id": "IN-MAL-2026-012870",
"versions": [
"0.2.1"
],
"source": "amazon-inspector"
},
{
"import_time": "2026-08-05T05:59:59.25939416Z",
"modified_time": "2026-08-05T04:43:04Z",
"sha256": "cd687555241209f88f452b36978e0dea520495b0e7eaf9cf8eb89a2778dc7258",
"id": "IN-MAL-2026-012745",
"versions": [
"0.2.2"
],
"source": "amazon-inspector"
}
]
}[
{
"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",
"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",
"description": "The product contains code that appears to be malicious in nature.",
"cweId": "CWE-506"
}
]
{
"package_integrity": [
{
"hashes": {
"sha512_sri": "sha512-IzUAS28e6S1ga89PV/mS9+GSglO2obwPxpc5CpiZgp1kgiYMiB8NO5tVV6UYUJRKfmYavr7FaZGag7xq/NNpIw==",
"sha1": "2293ed950f1b510b73776360b627b70e2a03682b"
},
"filename": "eh-module-communication-0.2.4.tgz"
}
],
"evidence_files": [
{
"path": "setup.mjs",
"sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
"tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be"
},
{
"path": "math_init.js",
"sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
"tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d"
}
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/eh-module-communication/MAL-2026-11858.json"