{"id":"MAL-2026-12124","summary":"Malicious code in @zzzgenesis00/tronweb3 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (e41cdeec3cc7e95a9365f12998ad095816f5e2076c4592af309634b9c95ccad0)\nThis 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 (NPM_TOKEN, NODE_AUTH_TOKEN, GITHUB_TOKEN, AWS keys, MNEMONIC, SEED_PHRASE, TRON_PRIVATE_KEY, etc.), packages them, and POSTs the payload to two hardcoded attacker endpoints: the Telegram Bot API (api.telegram.org/bot\u003ctoken\u003e/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.\n","modified":"2026-08-05T10:05:40.348459670Z","published":"2026-08-05T08:43:16Z","database_specific":{"malicious-packages-origins":[{"sha256":"e41cdeec3cc7e95a9365f12998ad095816f5e2076c4592af309634b9c95ccad0","source":"amazon-inspector","versions":["5.3.2"],"id":"IN-MAL-2026-014389","import_time":"2026-08-05T09:28:05.339737641Z","modified_time":"2026-08-05T08:43:16Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@zzzgenesis00/tronweb3/v/5.3.2"}],"affected":[{"package":{"name":"@zzzgenesis00/tronweb3","ecosystem":"npm","purl":"pkg:npm/%40zzzgenesis00/tronweb3"},"versions":["5.3.2"],"database_specific":{"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"evidence_files":[{"sha256":"37f4a4f46ba2b578b8407ab96218ca9f632616eb6c835ea41ffa6de53726d14d","tlsh":"06d14fd212e703185992bdae475f00242672d2133824fbf53e8c5b664f4e52cbbb5be8","path":"postinstall.js"}],"package_integrity":[{"hashes":{"sha1":"edcda5b9b416e5f6c34ed85448a1295286bff327","sha512_sri":"sha512-ryJUMjCdJDpxAxL7EEobjMD+NgF2IhhuFeg3zN+BUsEly93DtyS59tjpAQN0vqa9KkbRRLodznuBp37nOQnBBg=="},"filename":"tronweb3-5.3.2.tgz"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@zzzgenesis00/tronweb3/MAL-2026-12124.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}