MAL-2026-12124

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@zzzgenesis00/tronweb3/MAL-2026-12124.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12124
Published
2026-08-05T08:43:16Z
Modified
2026-08-05T10:05:40.348459670Z
Summary
Malicious code in @zzzgenesis00/tronweb3 (npm)
Details

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

Source: amazon-inspector (e41cdeec3cc7e95a9365f12998ad095816f5e2076c4592af309634b9c95ccad0)

This package impersonates the legitimate tronweb SDK (author field spoofed as 'tronprotocol') and runs a malicious postinstall.js at npm install time. The script enumerates ~/.ssh, ~/.npmrc, ~/.gitconfig, Chrome/Firefox profile files (Cookies, Login Data, key4.db, logins.json), cryptocurrency wallet directories (metamask, exodus, electrum, ethereum, solana, tron), and a hardcoded list of credential-shaped environment variables (NPMTOKEN, NODEAUTHTOKEN, GITHUBTOKEN, AWS keys, MNEMONIC, SEEDPHRASE, TRONPRIVATE_KEY, etc.), packages them, and POSTs the payload to two hardcoded attacker endpoints: the Telegram Bot API (api.telegram.org/bot<token>/sendMessage) and a Serveo tunnel host at 40f955f39128bd79-178-249-214-24.serveousercontent.com/collect. Variable names are obfuscated (_rqp, _gzr, _zsw, _cp, _ht, _tk, _ch) and a comment frames the behavior as 'postinstall environment verification' as cover.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-014389",
            "import_time": "2026-08-05T09:28:05.339737641Z",
            "sha256": "e41cdeec3cc7e95a9365f12998ad095816f5e2076c4592af309634b9c95ccad0",
            "modified_time": "2026-08-05T08:43:16Z",
            "versions": [
                "5.3.2"
            ],
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / @zzzgenesis00/tronweb3

Package

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

Affected ranges

Affected versions

5.*
5.3.2

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-ryJUMjCdJDpxAxL7EEobjMD+NgF2IhhuFeg3zN+BUsEly93DtyS59tjpAQN0vqa9KkbRRLodznuBp37nOQnBBg==",
                "sha1": "edcda5b9b416e5f6c34ed85448a1295286bff327"
            },
            "filename": "tronweb3-5.3.2.tgz"
        }
    ],
    "evidence_files": [
        {
            "path": "postinstall.js",
            "sha256": "37f4a4f46ba2b578b8407ab96218ca9f632616eb6c835ea41ffa6de53726d14d",
            "tlsh": "06d14fd212e703185992bdae475f00242672d2133824fbf53e8c5b664f4e52cbbb5be8"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@zzzgenesis00/tronweb3/MAL-2026-12124.json"