Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Part of a larger attack: @servicetitan published 141 malicious packages. See the full campaign →
Malicious package

@servicetitan/testing-librarynpm

@servicetitan/testing-library is a confirmed malicious npm package (MAL-2026-11932) that steals credentials and exfiltrates sensitive data (malicious versions 6.6.1, 6.6.2, 6.6.3…). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in @servicetitan/testing-library (npm)

MAL-2026-11932
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall @servicetitan/testing-library

What this malware does

npm/@servicetitan/testing-library 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.

The package declares scripts.preinstall = "node setup.mjs", which runs automatically on npm install. setup.mjs (itself variable-name-obfuscated with identifiers such as _0x488df8) downloads a Bun runtime zip from https://github.com/oven-sh/bun/releases/download/bun-v<version>/...zip, extracts and chmod +x's the Bun binary into a temp directory, then invokes execFileSync(bunBinary, ['math_init.js']). The executed math_init.js is a ~727 KB single-line file (sha256 9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc) built from a several-thousand-entry constant table n7gIxM=[...] decoded through a rotating string-array function WV8StW — heavy obfuscation designed to evade static review. The package's advertised purpose is a React testing helper library, and its dist/ tree contains benign-looking testing helpers as cover; the entire malicious surface sits in the install hook and the sibling opaque payload, which have no relationship to the advertised functionality. Downloading an alternate JavaScript runtime at install time specifically to execute a shipped opaque blob under it is the alternate-runtime-dropper pattern used to bypass Node-based supply-chain scanners, and it grants arbitrary code execution on any machine that runs npm install for a project depending on this version.

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.

Malicious versions

7 flagged
6.6.16.6.26.6.36.6.46.6.56.6.66.6.7

Indicators of compromise (SHA-256)

83708c370d363e31c58321cf80227d080cd274b5ad7ebde4259af77c31305f3b
495d3db2c96037ccaef45121389cec8bc738200fa2a88f659263fad1824c9f0b
baabc1c5d6f9e95a94d3663da34dcd012589eed43657abbe5b127f29d6b75606
b1eac421c0801cec739d7cd8c204058e72fc5282824a29b9ceba48f51a0dfdc3
53c6a558bb28498adf58852fc32b11608813978bbcb814a387fae879acc26d4e
1fd5d42d139151c64b3ef7bc1f2cbf8d54ede318759a53567230964f5afccb72
b855149449173b5ccb8c9bd21d1cff2534e97c06517d2ab28e1da4bbb6da1964
ff7f750b3db800084df7329d2df6a1f610c434c9f00dbf42c7b351423fbe6ebd

Detection & response playbook

Credential / info stealer
  1. Find it

    Scan your lockfiles (package-lock.json, pnpm-lock.yaml, yarn.lock, requirements.txt, poetry.lock, etc.) and build artifacts for @servicetitan/testing-library (7 malicious versions). O3 Security's supply-chain scanner checks every dependency against known-malicious package intelligence at install time and in CI, flagging @servicetitan/testing-library across your stack and pipelines.

  2. If you installed it — respond

    @servicetitan/testing-library is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If @servicetitan/testing-library was ever installed, its post-install/runtime payload may have already executed. O3's L7 egress monitoring and runtime eBPF sensors detect the credential exfiltration or command-and-control callback after install and block the malicious outbound channel, so you catch and contain the actual compromise — not just the presence of the package.

  4. How O3 protects you

    O3 blocks @servicetitan/testing-library before install through its supply-chain scanner, and if it has already run, detects and severs the exfiltration or C2 callback at runtime through L7 egress monitoring and eBPF.

Frequently asked questions

No. @servicetitan/testing-library on npm has been identified as a malicious package (versions 6.6.1, 6.6.2, 6.6.3, 6.6.4, 6.6.5, 6.6.6, 6.6.7 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

GHSA-7wrm-7wq3-cffhIN-MAL-2026-011456IN-MAL-2026-011417IN-MAL-2026-012057IN-MAL-2026-012701IN-MAL-2026-012455IN-MAL-2026-012776IN-MAL-2026-012868

References

Credits

  • Aikido Security · finder
  • Amazon Inspector · finder
  • SafeDep · finder
  • Socket Threat Research Team · finder

Detect & block this

O3 blocks @servicetitan/testing-library-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

Explore

@servicetitan/testing-library (npm) malicious package — MAL-2026-11932 | O3 Security