chai-as-verified (npm) · Malicious Code
Affects chai-as-verifiedSource GCVE Database
Malicious package : remove chai-as-verified and rotate any secrets on hosts that installed it.
Data as of 14 Jul 2026, 09:47 UTC
Malicious package
Published to npm · OSV MAL-2026-10504
What to do
Remove chai-as-verified 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 |
|---|---|---|
| npmchai-as-verified | 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 'chai-as-verified' version 7.1.5 is identified as malicious. It masquerades as a legitimate package similar to 'chai-as-promised' but contains code that spawns a detached Node.js child process. This process fetches and executes remote JavaScript code from a hidden command-and-control (C2) server, granting the attacker full access to Node.js require functionality. The C2 URL and related headers are base64-encoded to evade static detection.