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

目标: 1000 元 · 已筹: 1359 元

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

cdn-img-fetch

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

Summary

Malicious code in cdn-img-fetch (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
1,093
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmcdn-img-fetch*
npmcdn-img-fetch1.0.0
npmcdn-img-fetch1.0.1
npmcdn-img-fetch1.0.3
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-17320","published":"2026-09-30T04:38:16Z","modified":"2026-10-08T13:35:19.435852113Z","aliases":["GHSA-v3rj-w7v4-jcfx"],"summary":"Malicious code in cdn-img-fetch (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d7922ab741ba357d3d9bb14201acdffd89639cb0b7a8850180d6dd9a8266e9f7)\nOn require() of cdn-img-fetch, index.js unconditionally invokes https.get against https://raw.githubusercontent.com/cavecrew/proj/main/banner.png and pipes the response into a hidden dot-file at os.tmpdir()/._cif_data (written via a.part file and renamed into place). The source is a mutable main-branch URL in a personal GitHub account unrelated to the npm publisher, with no version pin, hash, or signature check, so whoever controls that repo controls the bytes dropped onto the installer's disk on every import. The fetch fires automatically as an IIFE at module load, not from any user-invoked API, and the destination filename is deliberately hidden. The package advertises itself as a CDN image cache helper, which does not explain an import-time download of an opaque file from a third-party personal repo to a hidden tmp location. This is the first-stage dropper / staging shape: the current fetched bytes are written but not executed in this version, but the mechanism gives an off-registry actor a persistent import-time write primitive into every installer's tmp directory.\n\n## Source: ghsa-malware (68301866f373e268985057238c4d25f0220f0fce0392832291b0a0429ae4e1c7)\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":"cdn-img-fetch","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.0","1.0.1","1.0.3"],"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"},{"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":"430300450f5acbd69c29f02d8c2e243f7d1d6202d1826f6e4d7715f95c47299b","tlsh":"5311ddfb2af22024407371d8a347a82eb243e0037284ca80b99ce2d45fc20344dd2b9c"}],"package_integrity":[{"filename":"cdn-img-fetch-1.0.0.tgz","hashes":{"sha1":"bbe47b192f36c7cbf47d02f35fd1a3448aab7aa2","sha512_sri":"sha512-lQ0CYe38ls2tLv7IhICUTIfG7CXYrERd3zi1OqjbUJOPt+SM/lbpnvit9KB70uG04pWXMyJPMc8Hczun0Ig1nw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/cdn-img-fetch/v/1.0.0"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/cdn-img-fetch/v/1.0.1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-v3rj-w7v4-jcfx"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/cdn-img-fetch/v/1.0.3"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-020806","import_time":"2026-09-30T04:46:52.475923183Z","modified_time":"2026-09-30T04:38:16Z","sha256":"1ba73af34d8c606e15a9ea353fd9e0724f3906a294e01c00f8b566a9501fc939","source":"amazon-inspector","versions":["1.0.0"]},{"id":"IN-MAL-2026-020807","import_time":"2026-09-30T04:46:52.523472638Z","modified_time":"2026-09-30T04:38:24Z","sha256":"d7922ab741ba357d3d9bb14201acdffd89639cb0b7a8850180d6dd9a8266e9f7","source":"amazon-inspector","versions":["1.0.1"]},{"id":"GHSA-v3rj-w7v4-jcfx","import_time":"2026-10-07T21:26:00.327477946Z","modified_time":"2026-10-07T20:52:33Z","sha256":"68301866f373e268985057238c4d25f0220f0fce0392832291b0a0429ae4e1c7","source":"ghsa-malware","versions":["1.0.0","1.0.3"]},{"id":"IN-MAL-2026-021100","import_time":"2026-10-08T00:52:22.521349519Z","modified_time":"2026-10-07T23:47:12Z","sha256":"cc4b99f186837aa0779c50ada7191a08d0252c1999a25e3f0c1ae864b028d088","source":"amazon-inspector","versions":["1.0.3"]},{"id":"GHSA-v3rj-w7v4-jcfx","import_time":"2026-10-08T13:33:19.408449969Z","modified_time":"2026-10-08T13:04:05Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"2777780984a8eb3b2e445e8b7220fd232f61ebec552be5550c908b46ec6cafa7","source":"ghsa-malware","versions":["1.0.0","1.0.3"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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