Skip to main content
MalwarePublished Updated

anhn-cli (npm) · Malicious Code

Affects anhn-cliSource GCVE Database

0

Malicious package : remove anhn-cli and rotate any secrets on hosts that installed it.

Data as of 26 Oct 2026, 16:18 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-14290

What to do

Remove anhn-cli 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
npmanhn-cliAffected
  • =1.1.4
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 anhn-cli version 1.1.4 contains malicious code embedded in its install script. This code fetches and executes a payload controlled by an attacker via Ethereum blockchain transactions, using obfuscated JavaScript that dynamically retrieves and runs code from hosts derived from on-chain data. The malicious payload executes whenever the package is required or the CLI is invoked, with no version pinning or signature verification to prevent this behavior.

References

Community reviews

Loading reviews…