MAL-2026-13349

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/mnemonic-to-key/MAL-2026-13349.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-13349
Published
2026-08-05T15:39:21Z
Modified
2026-08-05T16:51:06.296924087Z
Summary
Malicious code in mnemonic-to-key (npm)
Details

-= 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.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-015782",
            "versions": [
                "1.2.0"
            ],
            "import_time": "2026-08-05T16:13:44.723368569Z",
            "source": "amazon-inspector",
            "sha256": "c8871a9cd738ee7dbe2245e741d52afb659069bc6fcc7d5aa6cfb87bfad9dbcd",
            "modified_time": "2026-08-05T15:39:21Z"
        }
    ]
}
References
Credits

Affected packages

npm / mnemonic-to-key

Package

Affected ranges

Affected versions

1.*
1.2.0

Database specific

indicators
{
    "evidence_files": [
        {
            "path": "index.js",
            "sha256": "a6de6213df1672d3d7a67d672925467606c90c1c2b75533760e40f8599ec0dc9",
            "tlsh": "5f2141c837b1f88e22326482656f650b727bcaa20888ea50d5a8d5832f701c846993d8"
        }
    ],
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-QtnCz+762arWMQbpPc550t9F0Adynd1VBt0CPrU2aFDQ4vAn5q7AIhjJlfw5Gbci8XPrRT/5HrwvQBCiEqQaGQ==",
                "sha1": "d038354b780b5abe583d0998fc700b77e54f8bee"
            },
            "filename": "mnemonic-to-key-1.2.0.tgz"
        }
    ]
}
cwes
[
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/mnemonic-to-key/MAL-2026-13349.json"