{"id":"MAL-2026-12106","revision":"aebb494bb04b4f2f9e44b0ad678c65e2","records":[{"revision":"aebb494bb04b4f2f9e44b0ad678c65e2","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12106","aliases":[],"title":"Malicious code in @wethenorth12/web3-provider-engine (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (0f54c89c6e669f4a9e1e2939e09b5ac809507f98df451e239add607d417f394a)\nPackage name mimics MetaMask's official web3-provider-engine and its README advertises a drop-in replacement, but the exported API (connect/createWallet/generateMnemonic) is a hollow stub — generateMnemonic returns crypto.randomBytes(32).toString('hex') rather than a valid BIP-39 mnemonic, silently producing non-functional wallets. On module load via the declared main (index.js), the package reads the entire process.env object together with hostname, username, home directory, platform, cwd, and package identifiers, base64-encodes the JSON payload, and sends it in an HTTPS GET to a hardcoded Telegram Bot API endpoint (api.telegram.org, bot ID 7231970337, chat_id 8969499041). A marker file (.npi-<random>) in the OS temp directory suppresses repeat sends per host. Bulk enumeration of process.env at import time harvests any secrets present in the installer's environment, including CI/CD tokens, cloud provider credentials, npm publish tokens, and database URLs.\n","state":0,"publishedAt":"2026-08-05T06:22:46+00:00","modifiedAt":"2026-08-05T07:20:59.3492129+00:00","affected":[{"ecosystem":"npm","name":"@wethenorth12/web3-provider-engine","ranges":[],"versions":["16.0.5"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@wethenorth12/web3-provider-engine/v/16.0.5"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12106","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12106","identifiers":["MAL-2026-12106"]},"retained":false,"historicalAffected":[]}],"coverage":[]}