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

目标: 1000 元 · 已筹: 1359 元

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

@vite-js/ui

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

Summary

Malicious code in @vite-js/ui (npm)

凭据/密钥窃取远程访问后门
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
166
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@vite-js/ui*
npm@vite-js/ui7.15.10
npm@vite-js/ui7.15.16
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-20T00:58:42Z","published":"2026-07-08T20:37:36Z","schema_version":"1.7.4","id":"MAL-2026-7021","aliases":["GHSA-x4cp-w826-x466"],"summary":"Malicious code in @vite-js/ui (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (476576198de86a58304788ac79ac3c8ca21b5029d9e824e3ffab41f539146c3b)\nPackage `@vite-js/ui` impersonates the official `vite` package: package.json declares author 'Evan You', homepage 'https://vitejs.dev', ships an unmodified Vite README and a near-verbatim Vite `dist/` tree, and exposes `bin.vite` pointing at `bin/vite.js` — so any developer who installs this and runs the documented `vite` command executes this package's CLI. Appended to the legitimate Vite bin code in `bin/vite.js` is a heavily obfuscated IIFE that reconstructs strings from a packed blob via a custom shuffler (keyed by 4606094, with `%`/`#1`/`#0` substitutions) to hide the identifiers `http`, `child_process`, `JSON`, `eval`, and `spawn`. At runtime it issues a JSON-RPC HTTP fetch, XOR-decodes the response using a key derived from a remote field, passes the decoded buffer to `eval(r)`, and then calls `child_process.spawn` with `{detached:true, stdio:..., windowsHide:true}` on a second fetched-and-decoded payload — a hidden, detached process that outlives the CLI invocation and provides a persistent execution channel. A short time-gate throttles re-trigger. Legitimate Vite has no such bootstrap; the custom string-array obfuscator covers only the network/eval/spawn surface, which is the canonical dropper-plus-backdoor shape.\n\n## Source: ghsa-malware (2a50c8b2f094ae17cba108b06050cbe0f67744af814caa7a3e834e5f6653aaee)\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-js/ui"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["7.15.16","7.15.10"],"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"}],"indicators":{"evidence_files":[{"path":"bin/vite.js","sha256":"16ac3a574bd4bd9836918033852cc1528a50ac2fc9231ab9605bc2b20e8bea7b","tlsh":"89e15c41e1dcb8561ba0b59ab49e49096c799423ef4cc984f3bcf2506fdb12852850f9"},{"path":"package.json","sha256":"af314d461d5ac49b9133bac01746842996e7f4636a6fa2e3d6541eadf67f391b","tlsh":"c9a1bc21cea88da31ad424e9ec790142f13485578e65fc18339d57ad0f4d26f327ebae"}],"package_integrity":[{"filename":"ui-7.15.16.tgz","hashes":{"sha1":"8950e9cff4e641854d7e736213fe7b934b132d99","sha512_sri":"sha512-EUmASs+yOowDRmiuBystWtkyYL8w3h2oyBoFitr5ogAcWuFzLZDnfPCXjMAiWwDaKl8Up8i3t5li1yg5wavnaA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@vite-js/ui/v/7.15.16"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@vite-js/ui/v/7.15.10"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-x4cp-w826-x466"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"914257e4d1eecae3fc48e98c8a2a406ed8021ed159c4a43a96c57453d0a1f320","import_time":"2026-07-08T21:27:50.06242356Z","id":"IN-MAL-2026-008609","modified_time":"2026-07-08T20:37:36Z","versions":["7.15.16"]},{"source":"amazon-inspector","sha256":"476576198de86a58304788ac79ac3c8ca21b5029d9e824e3ffab41f539146c3b","import_time":"2026-07-14T04:31:58.959303925Z","id":"IN-MAL-2026-010363","modified_time":"2026-07-14T03:33:24Z","versions":["7.15.10"]},{"source":"ghsa-malware","sha256":"2a50c8b2f094ae17cba108b06050cbe0f67744af814caa7a3e834e5f6653aaee","import_time":"2026-07-20T00:57:10.771536244Z","id":"GHSA-x4cp-w826-x466","modified_time":"2026-07-20T00:19:28Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}]}}

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