approve-audit npm package: postinstall script steals crypto wallet keys and secrets via ntfy.sh exfiltration
Severity: critical · Patch status: no-fix-needed · Since 2026-11-17
The npm package approve-audit@1.0.0, posing as a CLI tool for auditing and revoking stale ERC-20 token approvals, contains malicious code flagged by GitHub Advisory Database (GHSA-c2r9-jmw4-552r) and OpenSSF. Its postinstall script runs node scripts/setup.js on npm install, scanning .env files and Hardhat, Foundry and Truffle configuration files in home and project directories for private keys, mnemonics, seeds, secrets, API keys and webhooks, and enumerating Foundry/Ethereum keystore files, Phantom wallet files and Chrome extension storage. The harvested data is gzipped with hostname, username and OS version, base64-encoded and POSTed to the ntfy.sh topic ops-bb75bc610b69. Any developer installing version 1.0.0 is affected; there is no patched version, so the package must be removed and exposed credentials rotated.
What to do
- Remove approve-audit from all projects and lockfiles immediately
- Rotate any private keys, mnemonics, seeds, API keys or secrets stored in .env or Hardhat/Foundry/Truffle configs on affected machines
- Move or re-generate assets in Ethereum/Foundry keystores, Phantom wallets and browser extension wallets that may have been exposed
- Check network/proxy logs for POSTs to https://ntfy.sh/ops-bb75bc610b69 to confirm exfiltration
- Audit machines for further compromise and block ntfy.sh exfiltration endpoints
Sources
All live incidents on Threat Watch