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

目标: 1000 元 · 已筹: 1359 元

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

@hrmony/kit-5

MAL-2026-17266
2026-09-29 17:26:49
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in @hrmony/kit-5 (npm)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
638
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@hrmony/kit-5*
npm@hrmony/kit-51.0.0
npm@hrmony/kit-51.0.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-17266","published":"2026-09-29T16:34:24Z","modified":"2026-09-29T17:26:48.915831648Z","aliases":["GHSA-96c4-q73c-c32q"],"summary":"Malicious code in @hrmony/kit-5 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (6457aa73ec15f68e06005977033aaba349467d40e3d406f0810684a43b74fcb5)\nThe package's preinstall script and its main entry (index.js) both perform identical credential-harvesting: they query the EC2 Instance Metadata Service (IMDSv2) at 169.254.169.254 for the identity document and IAM role security credentials, enumerate the entire process.env, and recursively read /var/run/secrets/ (Kubernetes service-account tokens and mounted secrets). The collected data is POSTed to a hardcoded attacker-controlled host at hrnmn.dd.h4x.tv (paths /save_instance_info_hook from preinstall and /save_instance_info_index from index.js). The destination is unrelated to any legitimate package purpose, there is no user configuration, and the behavior fires automatically on `npm install` via the preinstall lifecycle hook as well as on any `require()`/`import` of the package. The harvested material — temporary AWS IAM credentials, cloud instance identity, arbitrary environment variables (which routinely contain API keys, tokens, and database credentials in CI/build environments), and Kubernetes service-account tokens — grants immediate cross-service access to the installer's cloud and cluster resources.\n\n## Source: ghsa-malware (07386b2d1e2efa71fd38c591953684c11302ad77f1c7943bd542b71fd83184e3)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","affected":[{"package":{"name":"@hrmony/kit-5","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.1","1.0.0"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"scripts/check-setup.mjs","sha256":"7f52c70d0cb4f4740e3b0d1bf7671462c9d56929763fff36c465730a7367be38","tlsh":"0db1978642fb0411159f75ab8bbba0079036d1473848addc3f9c63842f4e4edea61bcd"},{"path":"index.js","sha256":"fabbdce7eb1681bd0ffe1e9d1586eea9819aa2c391cf4950e83811805815b0c9","tlsh":"e0b1968642fb0411159f79ab8bbba0079036d1473948addc3f9c63842f4e4edea61bcd"}],"package_integrity":[{"filename":"kit-5-1.0.1.tgz","hashes":{"sha1":"c261be25578c8aed07ac4dd4496593e6c8931aad","sha512_sri":"sha512-CFuuW9fjezdhOy0c2+dvyZfZeBKgzc6ToNz+MI+1uANEN0LGAwhmuRZo/9eCzLBpweKr6mCxvfntrpw0OfAkNw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@hrmony/kit-5/v/1.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@hrmony/kit-5/v/1.0.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-96c4-q73c-c32q"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-020666","import_time":"2026-09-29T16:45:38.842863349Z","modified_time":"2026-09-29T16:34:33Z","sha256":"3bb206083e86e7cbad1068fa9233eff4f6193488224279775e664a06a62b1702","source":"amazon-inspector","versions":["1.0.1"]},{"id":"IN-MAL-2026-020665","import_time":"2026-09-29T16:45:38.774049036Z","modified_time":"2026-09-29T16:34:24Z","sha256":"6457aa73ec15f68e06005977033aaba349467d40e3d406f0810684a43b74fcb5","source":"amazon-inspector","versions":["1.0.0"]},{"id":"GHSA-96c4-q73c-c32q","import_time":"2026-09-29T17:25:03.737029817Z","modified_time":"2026-09-29T17:22:02Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"07386b2d1e2efa71fd38c591953684c11302ad77f1c7943bd542b71fd83184e3","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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