Skip to main content
MalwarePublished

approval-guardian (npm) · Malicious Code

Affects approval-guardianSource GCVE Database

0

Malicious package : remove approval-guardian and rotate any secrets on hosts that installed it.

Data as of 5 Aug 2026, 17:06 UTC

Classification

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

ProductAffectedFixed in
npmapproval-guardianAffected
  • 1.0.1 – 1.0.6
5 affected builds
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

Community reviews

Loading reviews…