abi-encode (npm) · Malicious Code
Affects abi-encodeSource GCVE Database
Malicious package : remove abi-encode and rotate any secrets on hosts that installed it.
Data as of 26 Oct 2026, 15:56 UTC
Malicious package
Published to npm · OSV MAL-2026-10549
What to do
Remove abi-encode 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 |
|---|---|---|
| npmabi-encode | 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 'abi-encode' versions 1.0.0, 1.0.1, and 1.0.2 contains malicious code that, upon requiring the package, schedules a delayed task to decode and drop a base64-encoded stealer script into a hidden directory in the user's home folder. This script establishes persistence via crontab on Linux or scheduled tasks on Windows, searches the home directory for sensitive wallet and credential files, encrypts them with RSA, and uploads them to attacker-controlled IPFS nodes using embedded API keys. The malicious behavior is disguised by a delay and fake cryptographic test data to evade detection. No patch or remediation information is provided.