{"id":"MAL-2026-10572","summary":"Malicious code in eth-wallet-helpers (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (517d465272a3a1d252e83e178bb263a1ccf600b42fed6d5aa1d110b9141fc77a)\nOn require of index.js, a delayed IIFE reads test/fixtures/keypairs.dat, base64-decodes it into ~/.cache-db/.node-sync/syncd.js (mode 0o700), and spawns it detached under Node. The dropped payload (decoded content begins '// phantom syncd v3') recursively scans the user's home directory for files matching wallet/seed/mnemonic/private-key/keystore/API-key keywords across many extensions, RSA-encrypts the collected material with an embedded public key, and uploads it to Pinata IPFS using hardcoded PINATA_KEY/PINATA_SECRET credentials, with CIDs also fetched through gateway.pinata.cloud, ipfs.io, and cloudflare-ipfs.com. Persistence is installed per platform: a 12-hour crontab entry on Linux ('0 */12 * * * /usr/bin/node \u003csyncd.js\u003e'), a schtasks 'WinNodeSync' scheduled task on Windows, and a LaunchAgent plist com.apple.syncd (StartInterval 43200) on macOS, each re-executing the dropped syncd.js. The fixture-file cover name (test/fixtures/keypairs.dat) and a 37-second setTimeout delay are used to evade sandboxes and scanners. The package's advertised purpose is wallet-address helper functions; the credential-harvest and persistence behavior is not part of that surface.\n","modified":"2026-07-14T16:49:21.855022185Z","published":"2026-07-14T05:57:40Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"517d465272a3a1d252e83e178bb263a1ccf600b42fed6d5aa1d110b9141fc77a","import_time":"2026-07-14T06:49:56.814108344Z","id":"IN-MAL-2026-010478","modified_time":"2026-07-14T05:57:40Z","versions":["1.0.0"]},{"sha256":"fa7d1dbbd390a245c0b383dee6d7c081f67bbc49df1e6d8009f9db2e6085c70c","import_time":"2026-07-14T14:37:52.029018335Z","id":"IN-MAL-2026-010510","modified_time":"2026-07-14T13:58:32Z","versions":["1.0.2"],"source":"amazon-inspector"},{"id":"IN-MAL-2026-010512","modified_time":"2026-07-14T13:58:50Z","versions":["1.0.1"],"source":"amazon-inspector","sha256":"fadbab19dff6c6111f23b1031ee2db153fb009116b7cba9d5e8e9caff4e1fa30","import_time":"2026-07-14T14:37:52.186436449Z"},{"source":"amazon-inspector","sha256":"8239ed468f3503f51a20c13144c6f22f665b894c63c9c9c381c88bb1d190b79b","import_time":"2026-07-14T16:31:29.752145354Z","id":"IN-MAL-2026-010524","modified_time":"2026-07-14T16:22:39Z","versions":["1.0.3"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/eth-wallet-helpers/v/1.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/eth-wallet-helpers/v/1.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/eth-wallet-helpers/v/1.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/eth-wallet-helpers/v/1.0.3"}],"affected":[{"package":{"name":"eth-wallet-helpers","ecosystem":"npm","purl":"pkg:npm/eth-wallet-helpers"},"versions":["1.0.0","1.0.2","1.0.1","1.0.3"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/eth-wallet-helpers/MAL-2026-10572.json","indicators":{"evidence_files":[{"tlsh":"2b815201abe272500db6b4b7657bc45335fa80cb571cee5572ccc0920fe98748d7aad8","path":"index.js","sha256":"4f434ba166fba46a8b62f068b06cc184b8729135aea546b9e3279928b4900c2a"},{"tlsh":"f38218678d5f2d04db34b5d33dcd2acb1c6e1fcb64ea59de89078e98a04a81215df0e8","path":"test/fixtures/keypairs.dat","sha256":"5f8c9e167ae937005647d54c12a2dc083fedb9f166792e1d7ae87b7166d58997"}],"package_integrity":[{"filename":"eth-wallet-helpers-1.0.0.tgz","hashes":{"sha512_sri":"sha512-Fj1mQuc14OmOL/Et6oUqI09t0bJTSSJAU0cYDC1hjYLD7VaQqzj2QOxy/RgK/A+hEETqDzz8TvPb7e7X2DvJsA==","sha1":"c78e7edc0aa8bae832a7f2798d478dbedda2ee9e"}}]}}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}