MAL-2026-11515

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@zzzgenesis00/bip39-generator/MAL-2026-11515.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11515
Published
2026-08-04T02:25:51Z
Modified
2026-08-04T22:04:52.338695707Z
Summary
Malicious code in @zzzgenesis00/bip39-generator (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (4029e4462d0c27bbfd619024ba7311a0ecefef1ce551dba08ea57e920047e246)

Package @zzzgenesis00/bip39-generator impersonates the bitcoinjs project (author field set to 'bitcoinjs', repo URL pointing at github.com/bitcoinjs/bip39-generator) while publishing under an unrelated scope. The package.json declares a postinstall hook that runs postinstall.js, which on npm install collects installer-owned secrets: contents of ~/.ssh (private key material), ~/.npmrc, ~/.gitconfig, presence of wallet directories for MetaMask, Exodus, Electrum, Bitcoin, Ethereum, Solana, and Ledger, Chrome and Firefox profile artifacts (Cookies, Login Data, key4.db), output of npm whoami and git config, and a curated set of credential env vars including NPMTOKEN, AWS*, GITHUBTOKEN, *PRIVATEKEY, MNEMONIC, and SEEDPHRASE. The collected profile is transmitted over HTTPS to the Telegram Bot API using a hardcoded bot token and chat id, and additionally POSTed to 40f955f39128bd79-178-249-214-24.serveousercontent.com/collect, a serveo.net reverse-tunnel host. Execution is delayed by a randomized setTimeout (1500 + Math.random()*2000 ms) and uses scrambled identifiers (_zfg, _jam, _xwl, _tk, _ch, _co, _ex) to reduce scanner visibility.

Source: ossf-package-analysis (5cd50fa982c125844b76d3527f878bd6a171b497e86fd7cbcccfc56d22000da4)

The OpenSSF Package Analysis project identified '@zzzgenesis00/bip39-generator' @ 3.1.2 (npm) as malicious.

It is considered malicious because:

  • The package communicates with a domain associated with malicious activity.
Database specific
{
    "malicious-packages-origins": [
        {
            "source": "ossf-package-analysis",
            "import_time": "2026-08-04T04:37:26.121568622Z",
            "sha256": "5cd50fa982c125844b76d3527f878bd6a171b497e86fd7cbcccfc56d22000da4",
            "modified_time": "2026-08-04T02:25:51Z",
            "versions": [
                "3.1.2"
            ]
        },
        {
            "import_time": "2026-08-04T21:33:12.978249241Z",
            "modified_time": "2026-08-04T21:17:40Z",
            "sha256": "4029e4462d0c27bbfd619024ba7311a0ecefef1ce551dba08ea57e920047e246",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-010999",
            "versions": [
                "3.1.2"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / @zzzgenesis00/bip39-generator

Package

Name
@zzzgenesis00/bip39-generator
View open source insights on deps.dev
Purl
pkg:npm/%40zzzgenesis00/bip39-generator

Affected ranges

Affected versions

3.*
3.1.2

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@zzzgenesis00/bip39-generator/MAL-2026-11515.json"
indicators
{
    "package_integrity": [
        {
            "filename": "bip39-generator-3.1.2.tgz",
            "hashes": {
                "sha512_sri": "sha512-ys1u5R5WUD3yWAB+yUVRzb/aQNSpJ3V7OrKgdz71P8Pf3bNYDJeCDS/Jxlyojr0pwx4LrFIwr93Mds5Q//yJvg==",
                "sha1": "a227d0933d2862c7b98ec8b65ceb9e5087864872"
            }
        }
    ],
    "evidence_files": [
        {
            "tlsh": "1cd1959612e603286852f9ae879f10242b32d5033c18fbf67ecc07564f4e52c9ab57a8",
            "sha256": "6902f69f1224216a62a7d77bc962785330d3c852a8f1d4299c754fb63444bc67",
            "path": "postinstall.js"
        },
        {
            "tlsh": "76012b60c5506e330ae82b909c66509766764c978804bc3e23db011de7cd5ab06fe1bc",
            "sha256": "f4d9d2a786e24570410e6d8fb0f06320bb4246d42c3e7f09f7b26927f4117b50",
            "path": "package.json"
        }
    ]
}
cwes
[
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    }
]