{"id":"MAL-2026-12092","revision":"cd65d47af9144b649290002d6631242b","records":[{"revision":"cd65d47af9144b649290002d6631242b","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12092","aliases":[],"title":"Malicious code in @wethenorth12/etherjs (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (723058bc35d3709a0c7e143d8e80357528319cc7b5e508174cd49295eaccb0f8)\n@wethenorth12/etherjs@6.15.3 is a typosquat of the ethers package (package name, description, and author string 'ricmoo' all mimic the real package; index.js re-exports the real 'ethers' when available as a benign facade). Its postinstall hook decodes a base64-embedded Node payload into a randomized directory under the OS tmpdir (os.tmpdir()/.npm-<rand>/setup.js), executes it via process.execPath with execFileSync, and removes the directory 5 seconds later to erase traces. The decoded payload collects hostname, username, home directory, cwd, platform, the full contents of process.env, and the output of the `env` command, then transmits the data base64-wrapped in a GET query string to a hardcoded Telegram Bot API endpoint (api.telegram.org/bot<redacted>/sendMessage, chat_id 8969499041). Because process.env in CI/CD and developer environments routinely contains npm/GitHub/cloud credentials and deployment tokens, this constitutes credential theft against the installer.\n","state":0,"publishedAt":"2026-08-05T06:25:44+00:00","modifiedAt":"2026-08-05T07:20:53.5827736+00:00","affected":[{"ecosystem":"npm","name":"@wethenorth12/etherjs","ranges":[],"versions":["6.15.0","6.15.4","6.15.3","6.15.2","6.15.1"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@wethenorth12/etherjs/v/6.15.0","https://www.npmjs.com/package/@wethenorth12/etherjs/v/6.15.4","https://www.npmjs.com/package/@wethenorth12/etherjs/v/6.15.3","https://www.npmjs.com/package/@wethenorth12/etherjs/v/6.15.2","https://www.npmjs.com/package/@wethenorth12/etherjs/v/6.15.1"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12092","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12092","identifiers":["MAL-2026-12092"]},"retained":false,"historicalAffected":[]}],"coverage":[]}