{"id":"MAL-2026-12067","revision":"583fe84c9a3b4bff9e181e1a13a0fb17","records":[{"revision":"583fe84c9a3b4bff9e181e1a13a0fb17","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12067","aliases":[],"title":"Malicious code in hwi-lib (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (687b96d2fb386735a783701f54b1740fad0e16e1dc153ebcf7f07dd5506d23db)\nhwi-lib@1.0.1 ships an empty index.js and a postinstall script that runs automatically on npm install. The script reads installer credential files (~/.aws/credentials, ~/.ssh/id_rsa, id_ed25519, id_ecdsa, ~/.npmrc, ~/.gitconfig, ~/.config/solana/id.json, ~/.ethereum/keystore,.env variants) and walks hidden subdirectories of the user's home directory reading any file matching wallet|key|secret|seed|mnemonic|keystore|private or ending in.json/.pem/.key. The collected contents are POSTed via https.request to the hardcoded endpoint https://enxhcjpo5ev.x.pipedream.net/c. Package name and 'crypto utility' description impersonate the HWI (Hardware Wallet Interface) tooling while the shipped module exports nothing, indicating a lure.\n\n## Source: ossf-package-analysis (b354ab4fac90ce3cb0a5afb1a00d518a9a44e8a4da73e66845415e69ec620973)\nThe OpenSSF Package Analysis project identified 'hwi-lib' @ 1.0.1 (npm) as malicious.\n\nIt is considered malicious because:\n\n- The package communicates with a domain associated with malicious activity.\n","state":0,"publishedAt":"2026-08-05T01:52:47+00:00","modifiedAt":"2026-08-05T07:21:15.6563401+00:00","affected":[{"ecosystem":"npm","name":"hwi-lib","ranges":[],"versions":["1.0.1","1.0.0","1.0.2"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/hwi-lib/v/1.0.1","https://www.npmjs.com/package/hwi-lib/v/1.0.2","https://www.npmjs.com/package/hwi-lib/v/1.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12067","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12067","identifiers":["MAL-2026-12067"]},"retained":false,"historicalAffected":[]}],"coverage":[]}