LWA-2026-6784 MAL-2026-10611 ↗ confirmed malware

@web3-helpers/core@1.0.5

Malicious code in @web3-helpers/core (npm)

T1059.007 · JavaScriptT1082 · System Information DiscoveryT1552.001 · Credentials In FilesT1552.004 · Private KeysT1071.001 · Web ProtocolsT1041 · Exfiltration Over C2 ChannelT1485 · Data Destruction

Analysis

The package declares itself as a dependency to trigger recursive install, and runs a preinstall hook (dist/index.min.js) that steals Ethereum and Bitcoin private keys. On install, the payload scans environment variables matching PRIVATE_*, MNEMONIC*, or SECRET* patterns, and reads ~/.env, ~/.env.local, ~/.ssh/id_rsa, and ~/.wallet.json from the victim's home directory. It extracts 64-character hex strings (Ethereum private keys) and 52-character base58 strings (Bitcoin WIF private keys). For each Ethereum key found, it checks the balance via cloudflare-eth[.]com and if ≥1 ETH, drains the full balance (minus gas) to the attacker's wallet. For each Bitcoin key, it queries blockchain[.]info for UTXOs and broadcasts a drain transaction to the attacker's wallet via blockchain[.]info/pushtx. Results are exfiltrated via Telegram bot API (api[.]telegram[.]org/bot{token}/sendMessage) along with the victim's hostname and username. The package also includes a binding.gyp that triggers the same script via node -e.

analyzed by
Leitwacht
first seen
Jul 14, 2026, 06:53 PM
analyzed
Jul 14, 2026, 06:53 PM

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.