crypto-hasher (npm) · Malicious Code
Affects crypto-hasherSource GCVE Database
Malicious package : remove crypto-hasher and rotate any secrets on hosts that installed it.
Data as of 15 Jul 2026, 12:40 UTC
Malicious package
Published to npm · OSV MAL-2026-10666
What to do
Remove crypto-hasher 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 |
|---|---|---|
| npmcrypto-hasher | 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 crypto-hasher npm package versions 3.1.2 and 3.1.3 contain malicious code impersonating the hash-wasm library. When hashing data containing the trigger string 'alicebob100', it silently spawns a detached child process that connects to Ethereum Sepolia RPC endpoints to retrieve encrypted data and passwords from a smart contract. It decrypts a wallet private key and exfiltrates host system information to Slack and Telegram using hardcoded tokens. A secondary component polls Slack for encrypted commands, which it decrypts, writes to disk, and executes, establishing a persistent remote code execution backdoor. An 'exitexitexit' command triggers anti-forensic actions by deleting malicious files and modifying the LICENSE file. This package compromise leads to full system compromise.