Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

@servicetitan/react-hooksnpm

@servicetitan/react-hooks is a confirmed malicious npm package (MAL-2026-11912) that steals credentials and exfiltrates sensitive data (malicious versions 7.7.1, 7.7.2, 7.7.3…). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in @servicetitan/react-hooks (npm)

MAL-2026-11912
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall @servicetitan/react-hooks

What this malware does

npm/@servicetitan/react-hooks 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.

package.json declares scripts.preinstall = 'node setup.mjs'. setup.mjs is obfuscated (hex-named identifiers, string-array rotator, charset-based decoder) and, on npm install, constructs a URL against github.com/oven-sh/bun/releases/download/, downloads a Bun runtime archive into a temp directory, extracts and chmods the bun binary executable, then execFileSync's it against a sibling file math_init.js. math_init.js is a 727,680-byte Bun-compiled bundle (sha256 9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc) beginning with the '// @bun @bun-cjs' marker and heavily obfuscated with hex identifiers, a large integer/string constant array, a rotate-shift string-array decoder, and a custom charset-mapping decoder. The package advertises itself as a React hooks library (name @servicetitan/react-hooks, description 'ServiceTitan react hooks'), which has no legitimate need for a second JavaScript runtime or a 700KB obfuscated bundle. The alternate-runtime dropper pattern is used to execute a concealed payload outside Node-based scanning at install time under a scope that resembles ServiceTitan's namespace.

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
7.7.17.7.27.7.37.7.47.7.57.7.67.7.7

Indicators of compromise (SHA-256)

61da212f927075d3559a5718ec243674f6a1c276a6ae0ef33f8cb2afce503713
1e4fdef83d452688ae2989e42a0f216db30a900055776414c9a4f48440e6bfd5
30eaacb3719be56b110b8e8702855bc969b7fd6e2230175c898f5d99ef75d18a
aaf435cfe32046f38b633370331a0f4a5524c3b6b1b8b6923a7bcdcbaf0814b8
b72429a2a9da4222c3193f2e43f9211c3562e0311c39236578b1ef54aa319f4e
b81df934d0cf4ba641c4f06c7a911228a5ab8b8da5c1caed82a615fff8a5e11d
e5cd2fb7d745b0daf4eedeae0b36e52e2f18c069f18871ea1a7a95cb48f0a32b
f8102f2b35e1eb28af8d5fa1a8c2fad880e9292723e7d3aae4e5b2abebc656ca

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/react-hooks (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/react-hooks across your stack and pipelines.

  2. If you installed it — respond

    @servicetitan/react-hooks 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/react-hooks 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/react-hooks 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/react-hooks on npm has been identified as a malicious package (versions 7.7.1, 7.7.2, 7.7.3, 7.7.4, 7.7.5, 7.7.6, 7.7.7 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

GHSA-6wxq-gmqp-pqx8IN-MAL-2026-011985IN-MAL-2026-012032IN-MAL-2026-012380IN-MAL-2026-012157IN-MAL-2026-012154IN-MAL-2026-012156IN-MAL-2026-012177

References

Credits

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

Detect & block this

O3 blocks @servicetitan/react-hooks-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/react-hooks (npm) malicious package — MAL-2026-11912 | O3 Security