VDB
KO

MAL-2026-10580

Malicious code in ethers-core (npm)

Details

--- _-= Per source details. Do not edit below this line.=-_

## Source: amazon-inspector (c45244535e6a0091daf7b425d3d8c5040f26b487db54fdae84efc63a17fbf76d) ethers-core@6.13.7 impersonates the ethers.js ecosystem ('official sub-library of ethers.js') and executes dist/index.min.js from a package.json postinstall hook on npm install. The bundled script scans installer home paths (~/.aws/credentials, ~/.ssh/id_rsa, ~/.ssh/id_ed25519, ~/.npmrc, wallet keystores, mnemonic files,.env*) and reads named credential environment variables (AWS_SECRET_ACCESS_KEY, GITHUB_TOKEN, NPM_TOKEN, PRIVATE_KEY, MNEMONIC), then double-base64 encodes the results and POSTs them to a hardcoded Telegram bot endpoint at api.telegram.org and to a webhook.site endpoint. It additionally extracts hex/WIF private keys from scanned files, queries balances via cloudflare-eth.com and blockchain.info, and transfers funds to hardcoded attacker addresses 0x72bC6c8584713676cD5B56B0f94e1A6af3161f05 (ETH) and bc1qvg0vmlxf2ly248my69r2k6zut8s4q93j9mqvtf (BTC). For persistence it appends a node loader line to ~/.bashrc, ~/.zshrc and ~/.profile, writes an XDG autostart entry at ~/.config/autostart/sys-core.desktop, and drops /tmp/sys-core.js which beacons on an interval.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm / ethers-core

No fixed version published yet for ethers-core (npm). Pin to a known-safe version or switch to an alternative.

References