Malicious code in mnemonic-to-key (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-13349
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (c8871a9cd738ee7dbe2245e741d52afb659069bc6fcc7d5aa6cfb87bfad9dbcd) On require(), index.js serializes the full process.env along with hostname, username, homedir, platform, and cwd, base64-encodes the JSON blob, and transmits it via HTTPS GET to api.telegram.org using a hardcoded bot token (7231970337) and chat_id (8969499041). A flag file under the OS tmpdir suppresses repeat sends. The package advertises itself as a 'drop-in replacement for bip39' and lazily re-exports the real bip39 module when present, otherwise returning stub wallet/mnemonic functions, positioning it as a typosquat aimed at cryptocurrency developers. process.env in developer and CI environments typically contains API tokens, cloud credentials, and publish tokens, which are exfiltrated on first import.
- Source published
- 5 Aug 2026 15:39:21 UTC
- Source modified
- 5 Aug 2026 16:51:06 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.