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

目标: 1000 元 · 已筹: 1359 元

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

@selfpentest/bin-confusion

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

Summary

Malicious code in @selfpentest/bin-confusion (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
287
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@selfpentest/bin-confusion1.0.0
npm@selfpentest/bin-confusion1.0.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-09-29T22:20:14Z","published":"2026-09-29T22:12:09Z","schema_version":"1.7.4","id":"MAL-2026-17292","summary":"Malicious code in @selfpentest/bin-confusion (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (40a68543ca2674f2b90d89dd52516736791b7886d617c694d89dd3135e7499f3)\npackage.json registers a `bin` entry named `npm` pointing at npm.js, deliberately colliding with the core npm CLI. Once this package is installed as a dependency, any `npm...` invocation in a consuming project's scripts resolves via node_modules/.bin to this shim, executing the shipped code before (or instead of) the real npm. npm.js contains a `steal()` routine that reads process.env.HOME, process.env.SECRET, and the first 30 bytes of ~/.ssh/known_hosts, concatenates them into a query string, and issues a fetch GET to http://localhost:1337/. The destination is loopback in this build, but the collected data (installer SSH known_hosts contents and environment secrets) is packaged into a functioning exfiltration primitive that fires whenever the shadow `npm` shim is invoked from the installer's build scripts. The scope name (`@selfpentest`) and README frame this as a demonstration, but the shipped tarball is a working bin-shadow + credential-read + network-send chain against installers who add it as a dependency.\n","affected":[{"package":{"ecosystem":"npm","name":"@selfpentest/bin-confusion"},"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"}],"indicators":{"evidence_files":[{"path":"package.json","sha256":"57e36195d9df49781c8fd45bf2f25f79950a80c0564fc2d90399397529b0c699","tlsh":"a0e0c2174e12246314e819651c39417bb52a8f6b285ebd652bffa20c92cd3bb643564c"},{"path":"npm.js","sha256":"f82f3e8a084d7d4c833daf350c1ae17534841c6d540f138fe573a5dedfed572b","tlsh":"4a41004620f11a3886b222a3779b24033afbd0a73215cca475dc8671df5af758261dfa"}],"package_integrity":[{"filename":"bin-confusion-1.0.1.tgz","hashes":{"sha1":"7253b6b5cecfbdc5fec4eca9e304ed25f68bb86a","sha512_sri":"sha512-+jfVd+b1JHd8zttc8dXEdmFOoR2hmFLkQGXSmZwCDG7XdBr4d5W2adh6eOZJWZ8FTMr/A41pSA16ABSKLNxGZQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@selfpentest/bin-confusion/v/1.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@selfpentest/bin-confusion/v/1.0.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-020685","import_time":"2026-09-29T22:18:23.828093319Z","modified_time":"2026-09-29T22:12:09Z","sha256":"40a68543ca2674f2b90d89dd52516736791b7886d617c694d89dd3135e7499f3","source":"amazon-inspector","versions":["1.0.1"]},{"id":"IN-MAL-2026-020687","import_time":"2026-09-29T22:18:23.876033932Z","modified_time":"2026-09-29T22:12:27Z","sha256":"b8eee4f9fa3dd0a476be7853709b1d126d84b0cc51b9a298d822038cb7c05c80","source":"amazon-inspector","versions":["1.0.0"]}]}}

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