{"id":"MAL-2026-12120","summary":"Malicious code in @zzzgenesis00/env-loader (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (cfbfc9bcbea1e1b9d6c52e2585bf5b28064fe8e38fe53304450fe1fd19340f3b)\nOn npm install, postinstall.js reads installer-owned secret material — ~/.ssh entries, ~/.npmrc, ~/.gitconfig — and iterates a curated list of credential and wallet environment variables (NPM_TOKEN, GITHUB_TOKEN, AWS_SECRET_ACCESS_KEY, PRIVATE_KEY, MNEMONIC, SEED_PHRASE, ETHEREUM/BITCOIN/SOLANA/TRON_PRIVATE_KEY, WALLET_PRIVATE_KEY, API_KEY, etc.), enumerates Chrome/Firefox profile artifacts (Cookies, Login Data) and wallet directories, and runs `npm whoami` and `git config user.email` to identify the host. The collected payload is JSON-encoded and transmitted to two hardcoded, attacker-controlled destinations: a Telegram Bot API endpoint (api.telegram.org/bot\u003credacted\u003e/sendMessage) and an HTTP POST to 40f955f39128bd79-178-249-214-24.servousercontent.com/collect. The package presents itself as a dotenv alternative and exports a stub wallet API (generateMnemonic, createWallet, signTransaction returning random bytes) as a cover story; the block-worthy behavior is the install-time credential theft in postinstall.js.\n","modified":"2026-08-05T10:05:38.692346858Z","published":"2026-08-05T08:44:01Z","database_specific":{"malicious-packages-origins":[{"versions":["4.2.0"],"id":"IN-MAL-2026-014394","import_time":"2026-08-05T09:28:05.891867992Z","modified_time":"2026-08-05T08:44:01Z","sha256":"cfbfc9bcbea1e1b9d6c52e2585bf5b28064fe8e38fe53304450fe1fd19340f3b","source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@zzzgenesis00/env-loader/v/4.2.0"}],"affected":[{"package":{"name":"@zzzgenesis00/env-loader","ecosystem":"npm","purl":"pkg:npm/%40zzzgenesis00/env-loader"},"versions":["4.2.0"],"database_specific":{"indicators":{"evidence_files":[{"tlsh":"fed1429712e60358e862b9ed474f00192632d1033921fbf93edd4b564f4e63c9ab97a8","path":"postinstall.js","sha256":"ab18b1af1bced7133e281d4a47e3be16e0f1ed4ac781da3e1f2532fcc86093c0"},{"path":"index.js","sha256":"10e359c2154db33906465b5f8d638f783512aebaad80727ba2b1f7a2601c91c4","tlsh":"e0119c832af2f3240bc5f0a5e167848bb1bce5a305ac2229b64d396667f415cc0f19d4"}],"package_integrity":[{"filename":"env-loader-4.2.0.tgz","hashes":{"sha1":"8906852cea27fbee171ceb6d828e5faba29c0ed7","sha512_sri":"sha512-cP6nAXsrc7lbEPBxl/Gff2SUYvU/SjV7BnMkk2tdi9g8bStERI4YzYvHn1alCM7HoFG9pyRTR2+IF8L5yGUFNg=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@zzzgenesis00/env-loader/MAL-2026-12120.json","cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}]}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}