MAL-2026-11929
Malicious code in @servicetitan/table (npm)
Details
npm/@servicetitan/table 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.
--- _-= Per source details. Do not edit below this line.=-_
## Source: amazon-inspector (7d21aca35e498a14c8dc1c70aeedecdabf02937856ad4f6af423308aef3d8b9e) package.json declares scripts.preinstall = "node setup.mjs". setup.mjs is obfuscator-renamed (_0xXXXX identifiers, string-array indirection) and, on install, checks for a `bun` binary; if absent it downloads a Bun runtime release from github.com/oven-sh/bun/releases/download/bun-v1.3.13/, unzips it to a temp directory, chmods it executable, and uses execFileSync to invoke the fetched Bun binary against the sibling file math_init.js. math_init.js is a 727KB `// @bun @bun-cjs` bundle heavily obfuscated with a rotating string array (WV8StW shift routine) and a mixed numeric/char-code table (n7gIxM with 1000+ entries) that hides every identifier and literal. The remainder of the tarball is a plausible React table component matching the package's advertised purpose (homepage docs.st.dev/docs/frontend/table, repository servicetitan/anvil-uikit-contrib), i.e. legitimate-looking source is shipped alongside a hidden install-time payload. Fetching an alternate JavaScript runtime at install time in order to execute an obfuscated sibling bundle is the alternate-runtime dropper pattern: the payload is executed by a freshly-fetched runtime that Node-based tooling and scanners in the install environment do not observe. A React table component has no legitimate need for a second JS runtime or an obfuscated Bun-only bundle. The @servicetitan scope, homepage, and repository fields present the package as an internal ServiceTitan module, consistent with a scope takeover / dependency-confusion or hijack of an internal namespace.
## Source: ghsa-malware (4f1e53af4c6f06da0582e1fd557cc353b8301dd936e432040a76696be20dcc94) 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.
Are you affected?
Enter the version of the package you're using.
Affected packages
No fixed version published yet for @servicetitan/table (npm). Pin to a known-safe version or switch to an alternative.
References
- https://socket.dev/blog/popular-npm-packages-in-the-keyv-and-cacheable-namespaces-compromised-in-active-supply-chain [WEB]
- https://www.aikido.dev/blog/keyv-and-friends-compromised-in-npm-supply-chain-attack [WEB]
- https://safedep.io/keyv-npm-supply-chain-compromise/ [WEB]
- https://www.npmjs.com/package/@servicetitan/table [PACKAGE]
- https://github.com/advisories/GHSA-26gm-fxj3-c2gp [ADVISORY]
- https://www.npmjs.com/package/@servicetitan/table/v/41.3.3 [PACKAGE]