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

目标: 1000 元 · 已筹: 1359 元

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

type-unique

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

Summary

Malicious code in type-unique (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
3
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmtype-unique*
npmtype-unique3.1.3
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-13T22:35:47Z","published":"2026-07-13T22:17:03Z","schema_version":"1.7.4","id":"MAL-2026-10512","aliases":["GHSA-h8x5-f48q-v2h7"],"summary":"Malicious code in type-unique (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b576b19c56055dbc3638b361d0071c669108b9a6f8756828cadee4214d57bb13)\ntype-unique@3.1.3 presents itself as the pino logger (matching README, keywords, and package shape) but on require() its index.js spawns a detached `node lib/caller.js` child process. That child fetches JSON from https://jsonhosting.com/api/json/3ea04c38/raw, extracts a `cookie` field, and executes its content via `new Function.constructor('require', s)(require)`, giving remote content full Node.js capabilities including the bound `require`. Additional C2 URLs (https://jsonkeeper.com/b/XRGF3, https://jsonkeeper.com/b/4NAKK) are stored base64-encoded as fake `DEV_API_KEY` constants in lib/caller.js and lib/const.js to hide the destinations. The fetched payload is unpinned, unauthenticated, and served from third-party JSON-hosting services controlled by the author, so arbitrary code can be delivered to any machine that loads the package.\n\n## Source: ghsa-malware (a3ede5b2d04e8a69403b546398ae82a613127d9985e32b1b1299d67e522c8217)\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":"type-unique"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["3.1.3"],"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":"lib/caller.js","sha256":"7dc7b26c6f27de4e09846299426dd4cbf40fc4c564294bfad4aea9c186dd605c","tlsh":"b011025938fb405d022a20e10b1fa4707022e4633ec9e5c4b78c87514fe98ae6d63bde"}],"package_integrity":[{"filename":"type-unique-3.1.3.tgz","hashes":{"sha1":"700dd8d5e315366bf48b1840708daced0439e8d7","sha512_sri":"sha512-IaXeyMJ3piLR13OByPXuI5h+GIXlwPFo0NkDLmc++CcOfjH0RpzwhJy9al17aSqz9KtAT7EStPHgHINvPox3Wg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/type-unique/v/3.1.3"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-h8x5-f48q-v2h7"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"b576b19c56055dbc3638b361d0071c669108b9a6f8756828cadee4214d57bb13","import_time":"2026-07-13T22:21:57.826429905Z","id":"IN-MAL-2026-010352","modified_time":"2026-07-13T22:17:03Z","versions":["3.1.3"]},{"source":"ghsa-malware","sha256":"a3ede5b2d04e8a69403b546398ae82a613127d9985e32b1b1299d67e522c8217","import_time":"2026-07-13T22:34:08.163653295Z","id":"GHSA-h8x5-f48q-v2h7","modified_time":"2026-07-13T22:19:51Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}]}}

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