{"id":"MAL-2026-4553","summary":"Malicious code in ethers-wallet-package (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c6dae6dc459fa2ef437e532af4b27b6c50360a40cdb9d91563d25a48bae88cec)\nPackage name impersonates the official @ethersproject/wallet, and package.json spoofs the ethers.js maintainer identity (author 'Richard Moore \u003cme@ricmoo.com\u003e'). The compiled lib/index.js wraps the Wallet constructor with an obfuscated VM-based interpreter whose base64-encoded op-array contains the plaintext target URL https://api.telegram.org/bot\u003credacted\u003e/sendMessage and chat_id 7959381237. On every `new Wallet(privateKey)` call, the constructor POSTs the private key as JSON to that Telegram bot, giving the attacker full control over the victim's Ethereum funds. The Wallet class is the package's only advertised API, so any caller that imports the package and constructs a wallet leaks the key on first use.\n","modified":"2026-05-26T06:02:31.255987997Z","published":"2026-05-20T18:24:59Z","database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-003584","import_time":"2026-05-26T05:50:54.450531163Z","modified_time":"2026-05-20T18:24:59Z","sha256":"c6dae6dc459fa2ef437e532af4b27b6c50360a40cdb9d91563d25a48bae88cec","source":"amazon-inspector","versions":["5.8.0"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/ethers-wallet-package/v/5.8.0"}],"affected":[{"package":{"name":"ethers-wallet-package","ecosystem":"npm","purl":"pkg:npm/ethers-wallet-package"},"versions":["5.8.0"],"database_specific":{"indicators":{"package_integrity":[{"hashes":{"sha512_sri":"sha512-z3a4ECBBTeWN6UcdO8zzp3d527LW1CBEuTYs3qiPHGu7SqCpMvmx8Qi+urBmqYDV8hL7HTSup2KbZ//b0ylVdw==","sha1":"e3cd06a43482b9f48fe222129d551d032fa1e30f"},"filename":"ethers-wallet-package-5.8.0.tgz"}],"evidence_files":[{"tlsh":"e9d3b8029386747b0176d1b44bebece5f27a9c53121434eef50d8ea07f813a9067aadc","path":"lib/index.js","sha256":"e55dc8e38a487b0cbfb8a526c07240f04070062a26a459a604195b81317a456a"},{"path":"package.json","sha256":"e044635eb121d847ec7212b5f1445692843fa75b52eb3afd25f75bb9c8a160e5","tlsh":"5d315981c93dcee757cc1a94441d68cab13a48174844b85d339a492a4f8f32f2efd94f"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ethers-wallet-package/MAL-2026-4553.json","cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}]}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["actran@amazon.com"],"type":"FINDER"}]}