approval-guardian (npm) · Malicious Code
Affects approval-guardianSource GCVE Database
Malicious package : remove approval-guardian and rotate any secrets on hosts that installed it.
Data as of 5 Aug 2026, 17:06 UTC
Malicious package
Published to npm · OSV MAL-2026-11995
What to do
Remove approval-guardian 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 |
|---|---|---|
| npmapproval-guardian | 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 'approval-guardian' masquerades as an on-chain approval scanner but contains malicious code that silently harvests credentials. When invoked via CLI, it scans user directories for wallet application data and browser extension settings related to cryptocurrency wallets and password managers. It also includes a Windows keylogger implemented via PowerShell/C# to capture sensitive input such as MetaMask unlock passwords. The stolen data is sent to a hardcoded command-and-control server. Multiple specific versions of the package are affected.
References
- npmjs.com/package/approval-guardian/v/1.0.1 (opens in a new tab)
- npmjs.com/package/approval-guardian/v/1.0.6 (opens in a new tab)
- npmjs.com/package/approval-guardian/v/1.0.5 (opens in a new tab)
- npmjs.com/package/approval-guardian/v/1.0.2 (opens in a new tab)
- npmjs.com/package/approval-guardian/v/1.0.3 (opens in a new tab)