{"id":"MAL-2026-12109","revision":"c37a37cd549a4f7ba991d5eada0b6530","records":[{"revision":"c37a37cd549a4f7ba991d5eada0b6530","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12109","aliases":[],"title":"Malicious code in bip32-js (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (115345055f99da651c7816286c6b076dbacdd2b659f466dded1a541b289e8c2d)\nbip32-js is a typosquat of the legitimate bip32 crypto library. Its index.js is an empty stub (module.exports = {}); the package's only functional code is a postinstall hook that runs automatically on npm install. The hook reads classic installer-owned secret paths —.env files, ~/.npmrc, ~/.aws/credentials, ~/.aws/config, ~/.ssh/id_rsa, id_ed25519, id_ecdsa, Solana ~/.config/solana/id.json, Ethereum keystores, and ~/.gitconfig — and additionally scans hidden home subdirectories for files matching wallet, seed, mnemonic, key, and keystore patterns. It packages the collected file contents together with os.hostname(), os.userInfo().username, and a timestamp, and POSTs the JSON body via https.request to the hardcoded endpoint https://enxhcjpo5ev.x.pipedream.net/c, an author-controlled Pipedream request-bin. The package.json also declares a suspicious dependency entry \"self\":\"\" alongside a wildcard pin on the real bip32 package.\n","state":0,"publishedAt":"2026-08-05T06:19:15+00:00","modifiedAt":"2026-08-05T07:21:03.8243709+00:00","affected":[{"ecosystem":"npm","name":"bip32-js","ranges":[],"versions":["1.0.1","1.0.2","1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/bip32-js/v/1.0.1","https://www.npmjs.com/package/bip32-js/v/1.0.2","https://www.npmjs.com/package/bip32-js/v/1.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12109","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12109","identifiers":["MAL-2026-12109"]},"retained":false,"historicalAffected":[]}],"coverage":[]}