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

目标: 1000 元 · 已筹: 1359 元

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

dependency_confusions

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

Summary

Malicious code in dependency_confusions (npm)

安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
0
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmdependency_confusions99.9.9
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-20T02:25:26Z","published":"2026-07-08T09:58:20Z","schema_version":"1.7.4","id":"MAL-2026-10085","summary":"Malicious code in dependency_confusions (npm)","details":"The npm package dependency_confusions version 99.9.9 performs install-time host fingerprint and project path exfiltration. package.json sets index.js as the package main entrypoint and defines postinstall: node index.js. During npm install, index.js builds a JSON payload containing the local username from os.userInfo().username, the current project path from INIT_CWD or process.cwd(), the hostname from os.hostname(), the first non-internal local IPv4 address from os.networkInterfaces(), the platform from os.platform(), and an install timestamp. It then sends that payload with https.request to a webhook.site endpoint. This leaks developer or CI host identity and project path context to an attacker-controlled endpoint without user consent and is typical dependency-confusion reconnaissance behavior.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (2c5eab14c78cbbb6e4b580162a242817f899f6529485cb7f9197b6dfe05a3413)\npackage.json declares a postinstall hook that runs index.js on npm install. On execution, index.js collects the installer's OS username (os.userInfo()), hostname (os.hostname()), current working directory, local IPv4 address, and platform (os.platform()), then POSTs the collected fields as JSON to a hardcoded webhook.site endpoint (https://webhook.site/264e1903-28ea-48ea-8c55-be58c5a76791). Fires automatically as a lifecycle hook without user consent, matching the classic dependency-confusion reconnaissance beacon: the exfiltrated username/hostname/cwd/localIP reveal internal build hosts and internal package namespaces that an attacker uses to target follow-on dependency-confusion attacks against the victim's private registry.\n","affected":[{"package":{"ecosystem":"npm","name":"dependency_confusions"},"versions":["99.9.9"],"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-200","description":"The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"4f2f78519b2c44b03bc6bedfab817816a17a49b8292f97a95792fda5a88a6fe5","tlsh":"51110bb485b7a1102ab621d1480b98092626e103380bb9e83a4c83a49fc49fc59b2be8"}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/dependency_confusions/v/99.9.9"},{"type":"WEB","url":"https://firewall.lpm.dev/npm/dependency_confusions/v/99.9.9"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]},{"name":"LPM Security Firewall","type":"FINDER","contact":["https://firewall.lpm.dev"]}],"database_specific":{"iocs":{"domains":["webhook.site"],"urls":["https://webhook.site/264e1903-28ea-48ea-8c55-be58c5a76791"]},"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"2c5eab14c78cbbb6e4b580162a242817f899f6529485cb7f9197b6dfe05a3413","import_time":"2026-07-09T17:19:20.907651463Z","id":"IN-MAL-2026-009302","modified_time":"2026-07-09T16:34:18Z","versions":["99.9.9"]}]}}

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