{"id":"MAL-2026-10580","revision":"70d8e791401a4cabbc20a393452280a7","records":[{"revision":"70d8e791401a4cabbc20a393452280a7","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10580","aliases":[],"title":"Malicious code in ethers-core (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3959190c7c321e0d6f512b89b3c54a6399f3e6f7daecd0563ff753a6a6fed2f5)\nPackage name typosquats the popular 'ethers' library. package.json declares a postinstall pointing at dist/index.min.js, whose sole top-level statement is eval(Buffer.from('<base64>','base64').toString()). The decoded payload enumerates installer secrets (env vars including PRIVATE_KEY, MNEMONIC, AWS_SECRET_ACCESS_KEY, GITHUB_TOKEN, NPM_TOKEN; files including.env, ~/.aws/credentials, ~/.ssh/id_rsa, ~/.npmrc, wallet.json, keystore.json, seed.txt) and POSTs them to a hardcoded Telegram bot endpoint at api.telegram.org. Any 64-hex or WIF private key recovered is loaded into an ethers.Wallet, balance-checked against cloudflare-eth.com, and drained via sendTransaction to hardcoded attacker ETH/BTC addresses (ETH 0x72bC6c85847136..., BTC bc1qvg0vmlxf2ly248my69r2k6zut8s4q93j9mqvtf); BTC transactions are pushed via blockchain.info/pushtx. Persistence is established by appending 'node /tmp/sys-core.js &' to ~/.bashrc, ~/.zshrc, and ~/.profile, writing ~/.config/autostart/sys-core.desktop, and dropping /tmp/sys-core.js, which polls an attacker webhook via child_process.exec. A companion config/attacker-config.json ships the attacker's Telegram bot token, chat_id, wallet destinations, and target secret path/env-var list.\n","state":0,"publishedAt":"2026-07-14T12:55:50+00:00","modifiedAt":"2026-07-15T05:19:53.8492409+00:00","affected":[{"ecosystem":"npm","name":"ethers-core","ranges":[],"versions":["6.13.7","6.13.5"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/ethers-core/v/6.13.7","https://www.npmjs.com/package/ethers-core/v/6.13.5"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10580","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10580","identifiers":["MAL-2026-10580"]},"retained":false,"historicalAffected":[]}],"coverage":[]}