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

目标: 1000 元 · 已筹: 1359 元

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

cache-swipper

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

Summary

Malicious code in cache-swipper (npm)

AI 分析整理claude-sonnet-4-6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
109
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
永久样本归档NAS
版本状态大小SHA-256获取方式
3.5.0unavailable———
3.6.0archived——VIP 下载
样本保存在内网 NAS 隔离区,不公开镜像地址;已开通会员可直接从平台下载。同步任务不会解压或执行样本。
受影响版本
EcosystemPackageVersion
npmcache-swipper3.5.0
npmcache-swipper3.6.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-09-24T15:20:43Z","published":"2026-09-24T14:51:30Z","schema_version":"1.7.4","id":"MAL-2026-17166","summary":"Malicious code in cache-swipper (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (50cb98e5f107fe5bd1cd9434505219880014742674def9c64a8ce8552e04a626)\ncache-swipper advertises itself as a safe cache and build-artifact cleanup utility, but the exported runOperation() function performs an unbounded recursive deletion of the caller's current working directory. On invocation the module makes an HTTPS request to the hardcoded endpoint https://testback-2aqe.onrender.com/can-cleanup and, if the remote response indicates the operation is allowed, iterates every entry under process.cwd() and calls fs.rmSync(target, {recursive:true, force:true}) on each one, excluding only index.js itself. No cache-specific paths, patterns, or allowlists are consulted. Identifiers are genericized (baseProcess, baseRemove, baseEntries, runOperation) and all console.log/console.error diagnostic output is commented out, so the destructive action produces no visible signal. The combination of a hardcoded remote kill-switch, indiscriminate recursive delete of the caller's working tree, and a misleading self-description gives the operator of testback-2aqe.onrender.com on-demand destructive control over any host that invokes this package.\n","affected":[{"package":{"ecosystem":"npm","name":"cache-swipper"},"versions":["3.6.0","3.5.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":"index.js","sha256":"5ea5296171875e534997c56eb6159d7f19f679b491ef6bf72cb9581b97961064","tlsh":"f4710088d85a63130ab767959b091809fe3916132719d201beadd3d56f31c18f283dcf"}],"package_integrity":[{"filename":"cache-swipper-3.6.0.tgz","hashes":{"sha1":"893a5dc2aa07ffa39573b77942fc300e12576ec4","sha512_sri":"sha512-0cH39IuMFUoIGzlmhc7Ynk/BkFILpyGJhbhlT4oGo8lp5zatX07q20XT3d2HH3BIA3GgLey1l0sqJcFKA91MhQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/cache-swipper/v/3.6.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/cache-swipper/v/3.5.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-020514","import_time":"2026-09-24T15:18:49.658905903Z","modified_time":"2026-09-24T14:51:30Z","sha256":"50cb98e5f107fe5bd1cd9434505219880014742674def9c64a8ce8552e04a626","source":"amazon-inspector","versions":["3.6.0"]},{"id":"IN-MAL-2026-020515","import_time":"2026-09-24T15:18:49.768020408Z","modified_time":"2026-09-24T14:51:41Z","sha256":"54dd3ed65508b6cd4ee92edf62700a09abc1e742575661d1a8705efd62829c4e","source":"amazon-inspector","versions":["3.5.0"]}]}}

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