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

目标: 1000 元 · 已筹: 1359 元

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

@hrmony/component-library

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

Summary

Malicious code in @hrmony/component-library (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
278
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@hrmony/component-library*
npm@hrmony/component-library28.99.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-17259","published":"2026-09-29T16:32:05Z","modified":"2026-09-29T17:26:48.910196936Z","aliases":["GHSA-cjfr-hq8x-q26q"],"summary":"Malicious code in @hrmony/component-library (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (a93efe09ed89a9899669e54f614f80d91a80c59d77e0c2a2f673f92590488804)\nindex.js (declared as the package main) runs top-level async code on require/import that performs three exfiltration actions against a hardcoded attacker endpoint https://hrnmn.dd.h4x.tv/. First, it POSTs a fixed beacon identifying the package to /save_instance_info_from_pkge_hrmony_component-library. Second, it queries the AWS EC2 Instance Metadata Service at 169.254.169.254 using IMDSv2, enumerates IAM roles, and reads iam/security-credentials/{role} to collect temporary AWS access keys along with the identity document and user-data, then POSTs the collected object to the same host. Third, it iterates every entry of process.env and recursively reads all files under /var/run/secrets/ (Kubernetes service-account tokens and mounted secrets) and POSTs them to the same host. The package ships no component-library code; the exfiltration payload is its only behavior. The scope name @hrmony (missing the 'a' from @harmony) and the abnormally high 28.99.0 version are consistent with typosquat and dependency-confusion targeting.\n\n## Source: ghsa-malware (43173bc756c5c7bb307d748364b7436b5691bd972fa14c3ab6f51a4a510aeafd)\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/component-library","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["28.99.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"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"22b64d0c2884f2cfffd5c09b925a0c5da24d737aec0380616adbd56cef6d19bc","tlsh":"adb1968642fb0421159f75ab8bbba0079036d1473949addc3f9c63842f4e4edea61bcd"},{"path":"package.json","sha256":"6936d7183bdc358984c1d028fc5ac16a6acdd5927e1150d8afd1b134d2e69b42","tlsh":"bee020148530947355d561d21c6d8457b7624f5b840c3c0873db141c835f9b314fd7a9"}],"package_integrity":[{"filename":"component-library-28.99.0.tgz","hashes":{"sha1":"146410c73ee614767481790760218feec8a8975d","sha512_sri":"sha512-o1Ft2wtiCwUZa/mLmTbTtLvThzlD+++Q1ny959O9px569kgxArMf6+5mQPwIpTzcRc8nDFCFSzvoMAEMOMjY1Q=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@hrmony/component-library/v/28.99.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-cjfr-hq8x-q26q"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-020651","import_time":"2026-09-29T16:45:37.672929041Z","modified_time":"2026-09-29T16:32:05Z","sha256":"a93efe09ed89a9899669e54f614f80d91a80c59d77e0c2a2f673f92590488804","source":"amazon-inspector","versions":["28.99.0"]},{"id":"GHSA-cjfr-hq8x-q26q","import_time":"2026-09-29T17:25:03.738161918Z","modified_time":"2026-09-29T17:22:03Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"43173bc756c5c7bb307d748364b7436b5691bd972fa14c3ab6f51a4a510aeafd","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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