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

目标: 1000 元 · 已筹: 1359 元

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

b2b-frontend-external-library

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

Summary

Malicious code in b2b-frontend-external-library (npm)

安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
0
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
永久样本归档NAS
版本状态大小SHA-256获取方式
0.0.1archived——VIP 下载
9999.0.0unavailable———
样本保存在内网 NAS 隔离区,不公开镜像地址;已开通会员可直接从平台下载。同步任务不会解压或执行样本。
受影响版本
EcosystemPackageVersion
npmb2b-frontend-external-library*
npmb2b-frontend-external-library0.0.1
npmb2b-frontend-external-library9999.0.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-16008","published":"2026-09-07T00:00:00Z","modified":"2026-09-08T20:19:20.612387508Z","summary":"Malicious code in b2b-frontend-external-library (npm)","details":"This package is malicious. It is not a real library. An attacker put it on the public npm registry. The package name is a copy of a private, internal package name. This is a dependency confusion attack. A build that gets the name from public npm installs this package in place of the real one.\n\nThe package.json has a `preinstall` script. npm runs this script during install. The script file is `preinstall.js`. It runs before a person can read the code.\n\nThe script collects data about the host. It reads the host name, the user name, the current directory, the install directory, the package name, the package version, the operating system, the Node.js version, and the npm user-agent text.\n\nThe script sends this data to remote servers. It uses three ways. First, it makes a DNS request to a subdomain of `oast.online`. It writes the token, the package name, the host name, and the user name into the DNS name as hex text. Second, it sends an HTTPS POST with the data as JSON to the same `oast.online` host. If HTTPS fails, it uses plain HTTP. Third, it sends an HTTP POST with the same JSON to a fixed IP address, 5.189.159.252. The beacon uses a fixed token, `swisscom-oce-3b9f1c7a2e`.\n\nThe `index.js` file does nothing. It is a placeholder. The code comments say this is authorized bug-bounty research. The behavior is still an unwanted install-time beacon. It sends host data to attacker-controlled servers without consent. All versions are malicious. Treat every host that installed this package as exposed. Remove the package. Look for DNS and HTTP traffic to the listed servers.\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (09cca48cfb31563fd1eefa7c1d56c69ba1c8459a5089592884538d7b2cb7252b)\npackage.json declares a preinstall lifecycle script (preinstall.js) that runs on `npm install`. The script collects hostname, username, cwd, install path, platform/OS release, Node version, npm user-agent, and the resolved package name+version, then sends the data via a DNS lookup and two HTTP(S) POSTs to three hardcoded destinations: an OAST collector at dae7n4pijsh1ahi9684gu8get3kaiefc9.oast.online, a bare-IP HTTP endpoint at 5.189.159.252, and a URL under hackerone.com. The package name (`b2b-frontend-external-library`) and behavior match the dependency-confusion beacon pattern: any environment that resolves this public name during install unconditionally transmits identifying host and user information to third-party endpoints. Whether framed as bug-bounty research or not, the traced code performs unsolicited install-time collection and exfiltration of installer identifiers.\n","affected":[{"package":{"name":"b2b-frontend-external-library","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["0.0.1","9999.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"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"preinstall.js","sha256":"8f962a246826aaa6f7bd9db43ad0f13a51488058b451c82768f69913191ebfcb","tlsh":"dd6194ae0daa50212272f7a4960f528dd6f3f1272506fa94b0ae82145fa443d137fcfd"}],"package_integrity":[{"filename":"b2b-frontend-external-library-0.0.1.tgz","hashes":{"sha1":"6d32105650fe6d0efb805c7df0af5b23801daf12","sha512_sri":"sha512-QY7MPlo66cWfaL7r7N6PpQKUPTSN3kO9c5cVtviLrluvwLJVgbE5ux+RLjz7Vz898Qn9F0euvSCNDj+Mq8SsPw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/b2b-frontend-external-library"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/b2b-frontend-external-library/v/0.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/b2b-frontend-external-library/v/9999.0.0"}],"database_specific":{"iocs":{"domains":["dae7n4pijsh1ahi9684gu8get3kaiefc9.oast.online"],"files":[{"digests":{"sha256":"8f962a246826aaa6f7bd9db43ad0f13a51488058b451c82768f69913191ebfcb"},"note":"Preinstall beacon. It collects host data and sends it to attacker servers over DNS and HTTP(S).","paths":["preinstall.js"],"source":"PACKAGE_ARCHIVE"}],"ips":["5.189.159.252"],"urls":["https://dae7n4pijsh1ahi9684gu8get3kaiefc9.oast.online/beacon/swisscom-oce-3b9f1c7a2e","http://5.189.159.252/beacon/swisscom-oce-3b9f1c7a2e"]},"malicious-packages-origins":[{"id":"IN-MAL-2026-019707","import_time":"2026-09-08T20:17:34.850098628Z","modified_time":"2026-09-08T19:51:39Z","sha256":"09cca48cfb31563fd1eefa7c1d56c69ba1c8459a5089592884538d7b2cb7252b","source":"amazon-inspector","versions":["0.0.1"]},{"id":"IN-MAL-2026-019706","import_time":"2026-09-08T20:17:34.756268218Z","modified_time":"2026-09-08T19:51:31Z","sha256":"53034a77ec110235e678b7bcac2e302305aa8d18adba5f1b3957c8544dd60a77","source":"amazon-inspector","versions":["9999.0.0"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"SafeDep","contact":["https://safedep.io"],"type":"FINDER"}]}

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