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

目标: 1000 元 · 已筹: 1336

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

croft-node

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

Summary

Malicious code in croft-node (npm)

安装阶段执行
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
0
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmcroft-node1.1.1
npmcroft-node1.1.2
npmcroft-node1.1.3
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-12358","published":"2026-08-05T13:05:47Z","modified":"2026-08-19T04:20:02.221953080Z","summary":"Malicious code in croft-node (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (8a1686ccd2fe10f98a3bf6144a0ad556b15b0f788e2395fe4808d708446ba722)\npackage.json declares scripts.postinstall = 'node dist/config.js'. On npm install, dist/config.js performs an outbound fetch to https://my-api.trade-api.workers.dev?id=1 and executes globalThis[data.success](data.id) using the function name and argument returned by that endpoint. The script also assigns createRequire onto globalThis prior to the dispatch, broadening the set of callable capabilities. The advertised purpose of the package is an in-memory keyed cache with TTL/LRU, which has no need for install-time network I/O; the postinstall behavior is unrelated to the documented library API. The result is remote-controlled code execution on the installer's host at install time, driven by an attacker-controlled Cloudflare Workers endpoint.\n","affected":[{"package":{"name":"croft-node","ecosystem":"npm"},"versions":["1.1.3","1.1.2","1.1.1"],"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":"dist/config.js","sha256":"468107aa1d7f04ad4739740c5c0a41c84716a4952b991372404fd0748a206a50","tlsh":"e2d0977bc38da128681070ddd0090620b083e5228b2e880bea1deed19cd5820ea00130"},{"path":"package.json","sha256":"f291141dab25370d6cb1c5f545a3f2a3636ca12bb32cdc604185819f514f4a24","tlsh":"2a01f93bc9a48e3318f49ba6ac264705f6710f1f12545d0bb0bb101c0ff629204abb79"}],"package_integrity":[{"filename":"croft-node-1.1.3.tgz","hashes":{"sha1":"a88877b65844df193ad858d1b2643cdf041def12","sha512_sri":"sha512-yRaJoregv4E7WjwIdlFGY74Gh0REPsLiJ1CFz+aq8AcNyBE3P6oO/95pDTu8GEnLSd0aiDdjSbmAm4WpoWTc3A=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/croft-node/v/1.1.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/croft-node/v/1.1.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/croft-node/v/1.1.1"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-014880","import_time":"2026-08-05T13:08:52.707852096Z","modified_time":"2026-08-05T13:05:47Z","sha256":"8a1686ccd2fe10f98a3bf6144a0ad556b15b0f788e2395fe4808d708446ba722","source":"amazon-inspector","versions":["1.1.3"]},{"id":"IN-MAL-2026-015804","import_time":"2026-08-05T16:13:47.02003218Z","modified_time":"2026-08-05T15:51:47Z","sha256":"b46158a22660530396839a18b8e67b088f4278eb79b7aca76df2dddd5d606a52","source":"amazon-inspector","versions":["1.1.2"]},{"id":"IN-MAL-2026-018348","import_time":"2026-08-19T04:18:13.788071493Z","modified_time":"2026-08-19T04:01:25Z","sha256":"1a4ab05769982d47d348a033510f62b644512bab4d75bfaa4970098f52acfd67","source":"amazon-inspector","versions":["1.1.1"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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