目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%
← 返回恶意软件包
npm active

@wethenorth12/hd-key-generator

MAL-2026-12095
2026-08-05 06:23:30
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in @wethenorth12/hd-key-generator (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
—
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@wethenorth12/hd-key-generator1.6.3
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-08-05T06:23:30Z","published":"2026-08-05T06:23:30Z","schema_version":"1.7.4","id":"MAL-2026-12095","summary":"Malicious code in @wethenorth12/hd-key-generator (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (0b2e832840746236ecbc71ba886ec793620dd508cd2a75eca04bd44e575cb03b)\n@wethenorth12/hd-key-generator markets itself as a drop-in replacement for the popular `hdkey` wallet library. On require, index.js reads the full process.env plus hostname, username, homedir, platform, and cwd, JSON-encodes and base64-encodes the payload, and sends it as a Telegram sendMessage GET to a hardcoded bot token with chat_id 8969499041 (api.telegram.org/bot<redacted>/sendMessage). A tmp marker file is written to suppress repeated sends. Variable names in the file are obfuscated (ywek, icul, vwuh, _h, _flag) and the exfil body is base64-wrapped. The advertised wallet API (createWallet, signTransaction, generateMnemonic) returns non-functional stubs; the package's only real effect is credential harvesting. In developer and CI environments, process.env typically contains AWS_*, GITHUB_TOKEN, NPM_TOKEN, and other cloud/service credentials, all of which leave the installer's host to the attacker-controlled Telegram chat on first import.\n","affected":[{"package":{"ecosystem":"npm","name":"@wethenorth12/hd-key-generator"},"versions":["1.6.3"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"f8702540197ebac8dd4d30e085c94ecc54b6393cbe58c60efa80d93292d26dda","tlsh":"d12166c827f1f89d2272a551646f650fb3bbcaa20888eb20c598c4c37f701c899657d8"},{"path":"README.md","sha256":"28df9a7ac415c2ee0f4c77420c005e58865205bc85e3e708bea67b02d26878c2","tlsh":"7cf09e3466613171605ba2cbfae360fa943680327210e578c9ee4c7ee153dca037f583"}],"package_integrity":[{"filename":"hd-key-generator-1.6.3.tgz","hashes":{"sha1":"ed6c6a570e107461436362df5508b0730827d905","sha512_sri":"sha512-CT+Y30sr81xF1Lb0t9eaPVYA4TVfkpucmhfRaeMjnRPdC+KD3/0JqRB8ssggQ5Ir9AeGEpSvOr30DfWxCA8f9Q=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@wethenorth12/hd-key-generator/v/1.6.3"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-013440","import_time":"2026-08-05T07:06:47.587640001Z","modified_time":"2026-08-05T06:23:30Z","sha256":"0b2e832840746236ecbc71ba886ec793620dd508cd2a75eca04bd44e575cb03b","source":"amazon-inspector","versions":["1.6.3"]}]}}

数据来源:OpenSSF Malicious Packages · Apache-2.0