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

目标: 1000 元 · 已筹: 1336

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

disksweep

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

Summary

Malicious code in disksweep (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
25
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
永久样本归档NAS
版本状态大小SHA-256获取方式
1.0.0unavailable
3.0.0archivedVIP 下载
样本保存在内网 NAS 隔离区,不公开镜像地址;已开通会员可直接从平台下载。同步任务不会解压或执行样本。
受影响版本
EcosystemPackageVersion
npmdisksweep*
npmdisksweep1.0.0
npmdisksweep2.0.0
npmdisksweep3.0.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-6535","published":"2026-06-26T19:01:32Z","modified":"2026-08-18T21:12:22.451995136Z","aliases":["GHSA-257r-h9h2-65xg"],"summary":"Malicious code in disksweep (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (31a2c10aba7f3468458529214868e2d8acd9717eb7985c47ab10cf4aed64f87c)\nThe package ships a 2.9 MB Windows PE32+ executable at bin/native/parser.node (sha256 b1aace6c70312a39ca39e6bba1d9abc6aaf9b23171089b1a548adc89f67f83c3) that is not mentioned in the README or CHANGELOG. src/index.js (lines 30-34) contains a loader that resolves this file via __dirname and calls process.dlopen(module, p) inside a try/catch, which would load the binary as a native Node addon with full FFI access to the host process. The README explicitly claims 'Zero runtime dependencies… nothing to audit', directly contradicting the presence of an opaque attacker-supplied native binary. The current release is dormant on most installs because the package declares ESM ('type':'module') while the loader uses CJS-only globals (require, __dirname, module), so the dlopen call throws and is swallowed — but the binary is staged on disk and a one-line patch (switching to createRequire or fileURLToPath) flips it live for every installer. Supporting weak-attribution signals: package.json repository.url points at the npm package page rather than a real source repository, bugs.url is the same placeholder, author is the generic 'disksweep contributors', and CHANGELOG documents only v1.0.0 despite the published version being 3.0.0. The combination of opaque Windows-only native binary, doc/contents mismatch ('zero dependencies' marketing), placeholder metadata hiding maintainer identity, and a pre-wired dlopen loader is the staged-native-payload pattern.\n\n## Source: ghsa-malware (3809cd7bd9ecb69562779dcdc39243df8745ddde25cf84e0a79c098855e0e3f8)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","affected":[{"package":{"name":"disksweep","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["3.0.0","1.0.0","2.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"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"src/index.js","sha256":"ed6538c324fdf2f6f86a0529c597f75f4034c58a03eaf5ad463f37219612b2f7","tlsh":"7c11524673d70270d0d77b4509afd011b96dd1c6770aede1d1aa03943ee08f04113dae"},{"path":"package.json","sha256":"60ead84f0bb3467aa181eb0cbee6daa4253151f277f13b4f74feab746057d12f","tlsh":"f8418c3bc9a44d7b15b8e54ab8748611f899038f9390085b347c02ac0f7e1b7538fab9"}],"package_integrity":[{"filename":"disksweep-3.0.0.tgz","hashes":{"sha1":"2d7b75dc782a6003a52dae488e6144e4127ea939","sha512_sri":"sha512-b2HeUREPZqZTB/jWQ9c5EeR/RwXGvzzN9CJc+t9h7bI6/Ms/Nby6np6VqlM83cbew+AD82evVnu3yr3tQbs9gQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/disksweep/v/3.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/disksweep/v/1.0.0"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-257r-h9h2-65xg"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/disksweep/v/2.0.0"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-007655","import_time":"2026-06-26T19:36:31.955017694Z","modified_time":"2026-06-26T19:01:32Z","sha256":"31a2c10aba7f3468458529214868e2d8acd9717eb7985c47ab10cf4aed64f87c","source":"amazon-inspector","versions":["3.0.0"]},{"id":"IN-MAL-2026-007656","import_time":"2026-06-26T19:36:32.180550802Z","modified_time":"2026-06-26T19:01:37Z","sha256":"49b8ad00b1eafea2b5bccbeee95cb7321b92c72f79ba917a9fc00f19104ebbcf","source":"amazon-inspector","versions":["1.0.0"]},{"id":"GHSA-257r-h9h2-65xg","import_time":"2026-08-18T00:20:04.618623603Z","modified_time":"2026-08-17T11:52:02Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"3809cd7bd9ecb69562779dcdc39243df8745ddde25cf84e0a79c098855e0e3f8","source":"ghsa-malware"},{"id":"IN-MAL-2026-018002","import_time":"2026-08-18T21:10:27.613682225Z","modified_time":"2026-08-18T21:02:17Z","sha256":"afdd4e08aefd79908ccd8bcc3fc7f1b6c02250f4b3cdf79d83d24fe653aaa7db","source":"amazon-inspector","versions":["2.0.0"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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