MAL-2026-11895
Dashboard / Malicious Package / MAL-2026-11895
MAL-2026-11895
Summary: Malicious code in @servicetitan/marketing-route (npm)
Details: npm/@servicetitan/marketing-route 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 Math_Symbol.js / math_init.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. Source: amazon-inspector (0da5a7f6db3952b4c630a67aca6205f1c7ebee7b85dc689ccc116bb8272d77c2) Package @servicetitan/[email protected] declares a preinstall hook (`node setup.mjs`) that, on `npm install`, downloads the Bun runtime from `github.com/oven-sh/bun/releases/download/bun-v<version>/...` and then invokes it via `execFileSync` to run a bundled sibling file `math_init.js`. `math_init.js` is a ~728KB obfuscated Bun-CJS bundle (header `// @bun @bun-cjs`, rotating string array `WV8StW`, hex-named identifiers) whose contents cannot be audited before execution. `setup.mjs` itself is obfuscator.io-style (hex identifiers `_0x488df8`/`_0x52943e`/`_0x24db8d`, per-function string-lookup objects `YCZJE`/`QkQej`/`JBhWy`), hiding the runtime-download URL and the exec target behind decoded lookups. The advertised library main is a small re-export unrelated to the preinstall behavior; `package.json.author` is empty and the package publishes on public npm under the `@servicetitan/*` scope, which is consistent with dependency-confusion targeting an internal ServiceTitan scope. Using a freshly-downloaded alternate language runtime to execute an obfuscated in-tarball payload at install time is the canonical alternate-runtime-dropper evasion pattern against Node-based install scanners; on default `npm install`, arbitrary attacker-controlled code executes on the installer's machine. Source: ghsa-malware (2fa9012b01ac76b832ecd6f79f22aa131e69066f6741af42ba9f24d2ef24389f) 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.
References: https://socket.dev/blog/popular-npm-packages-in-the-keyv-and-cacheable-namespaces-compromised-in-active-supply-chain, https://www.aikido.dev/blog/keyv-and-friends-compromised-in-npm-supply-chain-attack, https://safedep.io/keyv-npm-supply-chain-compromise/, https://www.npmjs.com/package/@servicetitan/marketing-route, https://github.com/advisories/GHSA-4jmc-r9mf-fp8q, https://www.npmjs.com/package/@servicetitan/marketing-route/v/1.2.4, https://www.npmjs.com/package/@servicetitan/marketing-route/v/1.2.2, https://www.npmjs.com/package/@servicetitan/marketing-route/v/1.2.7, https://www.npmjs.com/package/@servicetitan/marketing-route/v/1.2.5, https://www.npmjs.com/package/@servicetitan/marketing-route/v/1.2.3, https://www.npmjs.com/package/@servicetitan/marketing-route/v/1.2.6, https://www.npmjs.com/package/@servicetitan/marketing-route/v/1.2.1
Affected packages
Package
Name: @servicetitan/marketing-route
Purl: pkg:npm/%40servicetitan/marketing-route
Affected ranges
Type: N/A
Events:
