Skip to main content
MalwarePublished

chai-as-bench (npm) · Malicious Code

Affects chai-as-benchSource GCVE Database

0

Malicious package : remove chai-as-bench and rotate any secrets on hosts that installed it.

Data as of 10 Aug 2026, 15:52 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-13699

What to do

Remove chai-as-bench 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

ProductAffectedFixed in
npmchai-as-benchAffected
  • =7.0.3
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-bench' version 7.0.3 is a malicious supply-chain threat masquerading as a chai plugin. It contains a heavily obfuscated multi-megabyte payload that executes on every require(), unrelated to its advertised functionality. The package includes stolen files from an unrelated project as camouflage and exports a no-op middleware. This behavior is typical of npm packages designed to target developers who mistype legitimate package names.

References

Community reviews

Loading reviews…