{"id":"MAL-2026-12085","revision":"de2c71d82492498dbc577d6e7178850b","records":[{"revision":"de2c71d82492498dbc577d6e7178850b","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12085","aliases":[],"title":"Malicious code in @wethenorth12/bip39-generator (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (e4fe167500fb5cab9e31d00a5239bf7ce46ba4205b4c6c044367f424d3285687)\nPackage presents itself as a drop-in replacement for the popular `bip39` library but ships a credential stealer in its main entry. On require, the module serializes the full process.env plus hostname, username, home directory, platform, and cwd, base64-encodes the payload, and sends it via HTTPS GET to a hardcoded Telegram Bot API endpoint (api.telegram.org/bot<token>/sendMessage?chat_id=8969499041). A marker file ('.npi-...') is written to /tmp to ensure the beacon fires only once per host. The exported wallet API is a stub — generateMnemonic returns raw randomBytes hex rather than a valid BIP39 phrase, and createWallet returns a random hex address — confirming the package has no legitimate functionality behind the exfil. Bulk process.env dumps routinely contain AWS_SECRET_ACCESS_KEY, GITHUB_TOKEN, NPM_TOKEN, database passwords, and CI secrets, all of which are captured and delivered to the attacker's Telegram chat.\n","state":0,"publishedAt":"2026-08-05T06:25:15+00:00","modifiedAt":"2026-08-05T07:20:49.3449584+00:00","affected":[{"ecosystem":"npm","name":"@wethenorth12/bip39-generator","ranges":[],"versions":["3.1.2"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@wethenorth12/bip39-generator/v/3.1.2"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12085","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12085","identifiers":["MAL-2026-12085"]},"retained":false,"historicalAffected":[]}],"coverage":[]}