{"id":"MAL-2026-13345","revision":"839a636f85cc40aaba16406956ff6792","records":[{"revision":"839a636f85cc40aaba16406956ff6792","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-13345","aliases":[],"title":"Malicious code in hd-key-generator (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3a102f1d05a0bd89af765e457c2b5d6121ec831d33549d0cbf9795d58b0d3ee6)\nhd-key-generator is a typosquat of the `hdkey` package. On require(), index.js reads process.env, os.hostname(), os.userInfo().username, the user's home directory, platform, cwd, and package metadata, JSON-serializes and base64-encodes the payload, then issues an HTTPS GET to a hardcoded Telegram Bot API endpoint (api.telegram.org/bot<token>/sendMessage) with chat_id=8969499041. A tmp marker file is used to gate repeat sends. If the real `hdkey` package is present, it is re-exported to preserve apparent functionality; otherwise stub functions are returned. The full process.env dump captures any secrets the installer's shell or CI has exported (AWS_*, GITHUB_TOKEN, NPM_TOKEN, database credentials, and similar).\n","state":0,"publishedAt":"2026-08-05T15:40:03+00:00","modifiedAt":"2026-08-05T16:51:04.2793771+00:00","affected":[{"ecosystem":"npm","name":"hd-key-generator","ranges":[],"versions":["1.6.3"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/hd-key-generator/v/1.6.3"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13345","license":"OSV · upstream source license applies","key":"osv:MAL-2026-13345","identifiers":["MAL-2026-13345"]},"retained":false,"historicalAffected":[]}],"coverage":[]}