{"id":"MAL-2026-12120","revision":"4301d92893e64215ab817f1abd18be48","records":[{"revision":"4301d92893e64215ab817f1abd18be48","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12120","aliases":[],"title":"Malicious code in @zzzgenesis00/env-loader (npm)","description":"\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<redacted>/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","state":0,"publishedAt":"2026-08-05T08:44:01+00:00","modifiedAt":"2026-08-05T10:05:38.6923469+00:00","affected":[{"ecosystem":"npm","name":"@zzzgenesis00/env-loader","ranges":[],"versions":["4.2.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@zzzgenesis00/env-loader/v/4.2.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12120","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12120","identifiers":["MAL-2026-12120"]},"retained":false,"historicalAffected":[]}],"coverage":[]}