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

目标: 1000 元 · 已筹: 1359 元

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

svg-fetcher

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

Summary

Malicious code in svg-fetcher (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
228
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmsvg-fetcher*
npmsvg-fetcher2.4.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-27T09:45:43Z","published":"2026-07-13T08:10:00Z","schema_version":"1.7.4","id":"MAL-2026-10427","aliases":["GHSA-36vw-78q8-pj2r"],"summary":"Malicious code in svg-fetcher (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (542aa371fe6b513dabed7c4f9b5646a104520afa686c6b33abedc21d120ea25f)\nindex.js exports getPlugin(), which fetches JSON from the hardcoded endpoint https://svganchordev.net/icons/106 and passes the response field data.credits to new Function(require, module, exports,..., Promise, data.credits), executing attacker-controlled JavaScript with full Node privileges (require, process, Buffer, globals available to the injected function). A sibling export setDefaultModule() constructs a benign-looking cdnjs font-awesome URL that matches the README's advertised SVG-fetching purpose but is never used by getPlugin(), serving as a cover story for the remote loader. Declared dependencies (@primno/dpapi, better-sqlite3, node-machine-id) are consistent with Windows DPAPI credential/browser-database access that a downloaded payload could invoke. The tarball also ships an unencrypted ed25519 OpenSSH private key (file 'gitlab' with comment testm@DESKTOP-PO28IS1) and its matching public key; the key is not read by the loader and represents an author-side exposure rather than an installer-side attack path.\n\n## Source: ghsa-malware (da76d1f117e4659cebca34534b08266fb7b99634f63f90099d08a9f13816f064)\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":{"ecosystem":"npm","name":"svg-fetcher"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["2.4.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"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"24f9b188fee5ca7999bd67fc8c2ad3b5b7bb558ecc1db3c118783ffba5bd180c","tlsh":"dfc1616546fa21a36a67e4edf30f100271a5e2133758e971f48e42902fca668e5f24e8"},{"path":"gitlab","sha256":"1b518991648a8f55ae87fef0521f62db50ffec33ee374a144949bd4d6739aabb","tlsh":"aae0edb26c6d6e8a69aecef81820810a9f69f6a3493870e041e4e0852d75ea2c41c6c4"}],"package_integrity":[{"filename":"svg-fetcher-2.4.1.tgz","hashes":{"sha1":"9b7fc05d9df61c3a8dce668699ce73ccd04a9c0e","sha512_sri":"sha512-Kaeu/3twuFrthSB9abToI0RJ1wh5hl293wr5DpB9TT7DYSgdlqcvgr29QoqH0UA71WsSP1meyatRrSQOry/djg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/svg-fetcher/v/2.4.1"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-36vw-78q8-pj2r"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"542aa371fe6b513dabed7c4f9b5646a104520afa686c6b33abedc21d120ea25f","import_time":"2026-07-13T09:10:55.95635962Z","id":"IN-MAL-2026-009862","modified_time":"2026-07-13T08:10:00Z","versions":["2.4.1"]},{"source":"ghsa-malware","sha256":"da76d1f117e4659cebca34534b08266fb7b99634f63f90099d08a9f13816f064","import_time":"2026-07-27T09:43:03.747077528Z","id":"GHSA-36vw-78q8-pj2r","modified_time":"2026-07-27T00:55:54Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}]}}

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