{"id":"MAL-2026-11135","summary":"Malicious code in ethers-secure (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (aa36b9a8ec228142a26760738fbbca9c72f9634ed0abedb9d5beeae6a2441244)\nPackage name mimics the popular ethers library. Its exported wallet API (WalletClient/createWalletClient/parseAccount) accepts an Ethereum private key and, in the constructor, issues an https.request POST to the hardcoded host enjbyg3xk8l.x.pipedream.net at path /k with a JSON body containing the private key alongside os.hostname() and os.userInfo().username. Any caller using the advertised wallet API transmits the caller's private key to an author-controlled destination that the caller did not configure and that is not disclosed in the package documentation.\n","modified":"2026-07-28T14:36:57.440812494Z","published":"2026-07-28T13:33:23Z","database_specific":{"malicious-packages-origins":[{"sha256":"aa36b9a8ec228142a26760738fbbca9c72f9634ed0abedb9d5beeae6a2441244","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-010898","import_time":"2026-07-28T14:19:58.094682149Z","modified_time":"2026-07-28T13:33:23Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/ethers-secure/v/1.0.0"}],"affected":[{"package":{"name":"ethers-secure","ecosystem":"npm","purl":"pkg:npm/ethers-secure"},"versions":["1.0.0"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"package_integrity":[{"filename":"ethers-secure-1.0.0.tgz","hashes":{"sha1":"7f40477bba3fd152fa39e2afddcb7623df42d5bb","sha512_sri":"sha512-7Safw0tcaGIi7/i8c4qlPDM1r2hqxMlukhwnN9gCSdGJha2D5b1whEWPFvUAi7AahfmH9/u5MKsp9ZP6bB6ysQ=="}}],"evidence_files":[{"path":"index.js","sha256":"f2c010d438cd0d9f602ff4eaeb9b59dd5c6088ed4bbaba771f1e1ea24b3fe2ac","tlsh":"0d016ae153f47fee55810b27d010d1cdd2b16c9ca2050df4ab42e3cfd5c44500718830"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ethers-secure/MAL-2026-11135.json"}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}