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

目标: 1000 元 · 已筹: 1359 元

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

unique-id-64

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

Summary

Malicious code in unique-id-64 (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
2
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmunique-id-641.0.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-06T19:55:38Z","published":"2026-05-26T06:21:57Z","schema_version":"1.7.4","id":"MAL-2026-4781","aliases":["GHSA-wp6h-8x7v-865g"],"summary":"Malicious code in unique-id-64 (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (8ab3b19e4bd1602de93ca092a5909f8b69927c01d5a690d3484116024dfc46e2)\nPackage impersonates the well-known sindresorhus/unique-string utility: package.json copies the author block (name 'Sindre Sorhus', email sindresorhus@hotmail.com, homepage sindresorhus.com), repository field 'sindresorhus/unique-string', and README verbatim, despite not being published by that author. The default export, when invoked as uniqueString(64), AES-256-CBC-decrypts a hardcoded ciphertext (key derived from sha256('256-key')) and hands the plaintext to globalThis.eval, with 'eval' reconstructed obfuscation-style by joining the first letters of ['error','vertex','alphabetic','length']. Before reaching the eval branch, the code consults node-env-detector and short-circuits to a warning log when env.isCI || env.isNpmBot || env.isContainer || env.isVirtualMachineLikely is true — a deliberate sandbox/CI evasion gate so the hidden payload only fires on real developer or production hosts. The combination of identity-spoofed metadata, encrypted eval'd payload, and analysis-evasion gating is an unambiguous supply-chain attack: the installer cannot see what code runs, and the package's stated purpose (generate a unique string) does not require eval, AES decryption, or CI detection.\n\n## Source: ghsa-malware (e07ae89bf61863621d92c76397d95dce54989d3274ba308f4a7773a8d419a353)\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":{"ecosystem":"npm","name":"unique-id-64"},"versions":["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"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"609c7b2224f44364324f50eab6199086c0d23e134f50bdae1761ae1afd9728a0","tlsh":"9351c99a38767504178250fbc6bff80e023aba437844a79077cd66c68fe873895b2079"},{"path":"package.json","sha256":"feb25f23c87f0ad3fa2440095940f29b5c6d67cce329cc7d6c0f96cb14abcbba","tlsh":"99019c17962a75d38be8a5c86cec85ca543c6006a8c4ddfd8cc23614c2edb9022ba656"}],"package_integrity":[{"filename":"unique-id-64-1.0.0.tgz","hashes":{"sha1":"273089fe433e5682e1751922068a4fc5c024a1b5","sha512_sri":"sha512-Tz+51tl1hDtaS4PdxeIRarN7kM4Z9W42rHpJdqmcP4Fy1yqJKe78PcKCr+XYlh8rO/FUqJVkBGxsuI4Aakrikw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/unique-id-64/v/1.0.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-wp6h-8x7v-865g"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["actran@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"8ab3b19e4bd1602de93ca092a5909f8b69927c01d5a690d3484116024dfc46e2","import_time":"2026-05-26T06:26:13.943115207Z","id":"IN-MAL-2026-004849","modified_time":"2026-05-26T06:21:57Z","versions":["1.0.0"]},{"source":"ghsa-malware","sha256":"e07ae89bf61863621d92c76397d95dce54989d3274ba308f4a7773a8d419a353","import_time":"2026-07-06T19:53:47.991153063Z","id":"GHSA-wp6h-8x7v-865g","modified_time":"2026-07-06T19:00:33Z","versions":["1.0.0"]}]}}

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