hatdhat-testkit (npm) · Malicious Code
Affects hatdhat-testkitSource GCVE Database
Malicious package : remove hatdhat-testkit and rotate any secrets on hosts that installed it.
Data as of 23 Aug 2026, 13:50 UTC
Malicious package
Published to npm · OSV MAL-2026-14373
What to do
Remove hatdhat-testkit from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmhatdhat-testkit | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The npm package hatdhat-testkit version 3.2.14 masquerades as a pino-style logging utility but contains malicious code. Its middleware entrypoint spawns a detached Node process that fetches and executes remote code from an obfuscated URL, granting full Node.js capabilities to the attacker. This behavior is unrelated to the advertised functionality and is designed to evade inspection.