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

目标: 1000 元 · 已筹: 1359 元

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

vite-plugin-compress-js

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

Summary

Malicious code in vite-plugin-compress-js (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
2
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmvite-plugin-compress-js0.5.5
npmvite-plugin-compress-js0.5.6
npmvite-plugin-compress-js0.5.7
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-06T19:55:39Z","published":"2026-06-12T19:43:47Z","schema_version":"1.7.4","id":"MAL-2026-5713","aliases":["GHSA-jc9j-qfjm-7m7f"],"summary":"Malicious code in vite-plugin-compress-js (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (7f7b2710441863a429a2a1833e06f54e9afc23c87d1b40d7ee09e1995c6a65c2)\nOn module load, this Vite plugin performs an HTTP GET to https://www.jsonkeeper.com/b/XVHGD (an anonymous, mutable paste host) and passes the response's `data` field to `new Function.constructor(\"require\",...)`, then invokes the resulting function with `require` — granting the remote payload full Node.js capabilities (fs, child_process, network) inside the consumer's Vite build process. dist/index.mjs (lines ~124-128) calls the fetch+eval directly via initPlugin(); dist/index.cjs (lines ~130-141) wraps the same payload in `if (isMainThread) { new Worker(__filename) } else { initPlugin() }`, spawning a worker that re-loads the module with isMainThread=false and executes the network-fetched code in the worker thread to obscure the behavior from naive inspection. The package name and metadata (author 'Vben', debug name 'vite-plugin-compression', plugin name 'vite:compression') clone the well-known vite-plugin-compress / vite-plugin-compression packages, and an otherwise-unused `request` dependency exists solely to perform the C2 fetch. Any developer or build system that imports this package executes whatever JavaScript the operator currently has hosted at the jsonkeeper paste.\n\n## Source: ghsa-malware (7989787bb752866c34bd055adeb5327f5b2f049101dc927be3ba9fa7a20bacc8)\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":"vite-plugin-compress-js"},"versions":["0.5.5","0.5.6","0.5.7"],"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":{"domains":["34.2.16.104.in-addr.arpa"],"evidence_files":[{"path":"dist/index.cjs","sha256":"bcb795c215752fbbccd30173477e4c129a7b925ca400762f8ecd7aec5e6ddbe7","tlsh":"52f135292af671314163b8ec9f9f801a7226da87301cfd847accd7842f5a525d2e77d8"},{"path":"package.json","sha256":"3e78c7242a29bb4fb94832d8c129b63b5ebb1c3b0709ef016663bbfce2320624","tlsh":"86214d34c4b84d6309c968e59c7d4297a232594b8994fd0873db116c0f8d69f11ff6ee"}],"package_integrity":[{"filename":"vite-plugin-compress-js-0.5.5.tgz","hashes":{"sha1":"a6af48bf91130395b75cdc6877e625d1cf8cb44e","sha512_sri":"sha512-ebOkG71QUuCTMujg21yQCtTDTYptybCRJ52F7ZZA+h5z2uTk4cSCHM0CoJgtNIVDPsoTY5Zmka5bkxquEwFhIQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/vite-plugin-compress-js/v/0.5.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/vite-plugin-compress-js/v/0.5.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/vite-plugin-compress-js/v/0.5.7"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-jc9j-qfjm-7m7f"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"ba5cca8be2f19842c304f355a2219256b3af26e9df385ec314ea6899621110aa","import_time":"2026-06-12T20:49:36.485443084Z","id":"IN-MAL-2026-006216","modified_time":"2026-06-12T19:43:47Z","versions":["0.5.5"]},{"source":"amazon-inspector","sha256":"e3b05da4b2b34b75fb23780b1b8deeeb320c6b3983fbd53c70dc430b1c2e401b","import_time":"2026-06-12T20:49:36.58515349Z","id":"IN-MAL-2026-006217","modified_time":"2026-06-12T19:43:48Z","versions":["0.5.5"]},{"source":"amazon-inspector","sha256":"27be652b7788f48b10d05076a6abf2abd97da8878378034f6c24377fe6522010","import_time":"2026-06-23T16:54:12.109841367Z","id":"IN-MAL-2026-007256","modified_time":"2026-06-23T15:58:44Z","versions":["0.5.6"]},{"source":"amazon-inspector","sha256":"7f7b2710441863a429a2a1833e06f54e9afc23c87d1b40d7ee09e1995c6a65c2","import_time":"2026-06-23T16:54:12.165796378Z","id":"IN-MAL-2026-007257","modified_time":"2026-06-23T15:58:47Z","versions":["0.5.7"]},{"source":"ghsa-malware","sha256":"7989787bb752866c34bd055adeb5327f5b2f049101dc927be3ba9fa7a20bacc8","import_time":"2026-07-06T19:53:47.965599716Z","id":"GHSA-jc9j-qfjm-7m7f","modified_time":"2026-07-06T19:00:32Z","versions":["0.5.7","0.5.6"]}]}}

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