approve-audit (npm) · Malicious Code
Affects approve-auditSource GCVE Database
Malicious package : remove approve-audit and rotate any secrets on hosts that installed it.
Data as of 19 Nov 2026, 07:51 UTC
Malicious package
Published to npm · OSV MAL-2026-20042
What to do
Remove approve-audit 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 |
|---|---|---|
| npmapprove-audit | 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 approve-audit@1.0.0 contains malicious code that executes during installation. Its postinstall script scans the user's home and project directories for sensitive files and configuration data related to Ethereum wallets and development environments. It extracts private keys, mnemonics, API keys, and other secrets, compresses and encodes this data, and exfiltrates it to a public ntfy.sh topic. This behavior is unrelated to the package's stated purpose of auditing ERC-20 approvals.