MAL-2026-13349Malicious code in mnemonic-to-key (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | mnemonic-to-key | 1.2.0 |
{"modified":"2026-08-05T15:39:21Z","published":"2026-08-05T15:39:21Z","schema_version":"1.7.4","id":"MAL-2026-13349","summary":"Malicious code in mnemonic-to-key (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c8871a9cd738ee7dbe2245e741d52afb659069bc6fcc7d5aa6cfb87bfad9dbcd)\nOn 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.\n","affected":[{"package":{"ecosystem":"npm","name":"mnemonic-to-key"},"versions":["1.2.0"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"a6de6213df1672d3d7a67d672925467606c90c1c2b75533760e40f8599ec0dc9","tlsh":"5f2141c837b1f88e22326482656f650b727bcaa20888ea50d5a8d5832f701c846993d8"}],"package_integrity":[{"filename":"mnemonic-to-key-1.2.0.tgz","hashes":{"sha1":"d038354b780b5abe583d0998fc700b77e54f8bee","sha512_sri":"sha512-QtnCz+762arWMQbpPc550t9F0Adynd1VBt0CPrU2aFDQ4vAn5q7AIhjJlfw5Gbci8XPrRT/5HrwvQBCiEqQaGQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/mnemonic-to-key/v/1.2.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-015782","import_time":"2026-08-05T16:13:44.723368569Z","modified_time":"2026-08-05T15:39:21Z","sha256":"c8871a9cd738ee7dbe2245e741d52afb659069bc6fcc7d5aa6cfb87bfad9dbcd","source":"amazon-inspector","versions":["1.2.0"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0