bip32-js@1.0.2
Malicious code in bip32-js (npm)
Analysis
bip32-js@1.0.2 runs a postinstall hook that harvests the installer's credentials and wallet keys and exfiltrates them. On install it reads ~/.env, ~/.env.local, ~/.env.production, ~/.npmrc, ~/.aws/credentials, ~/.ssh/id_rsa, ~/.ssh/id_ed25519, ~/.ssh/id_ecdsa, ~/.config/solana/id.json, and ~/.ethereum/keystore, and recursively scans all dot-directories in the home folder for files whose names match wallet/key/secret/seed/mnemonic/keystore/private or that end in .json/.pem. It bundles these file contents together with the hostname and username and POSTs them as JSON to hxxps://webhook[.]site/5c5ad6cb-62df-4ea5-9dfb-2c447920ddc4.
- analyzed by
- Leitwacht
- first seen
- Aug 5, 2026, 02:06 AM
- analyzed
- Aug 5, 2026, 02:07 AM
Related advisories
- hwi-lib@1.0.2
- ckcc-protocol@1.0.2
- trezor-lib@1.0.2
- ledger-lib@1.0.2
- mnemonic-utils@1.0.1
- emulative@1.0.1
- stellarfixer@1.0.0
- simple-date-formatter-new-4@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.