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

目标: 1000 元 · 已筹: 1359 元

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

@vite-ln/build-ts

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

Summary

Malicious code in @vite-ln/build-ts (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
14
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@vite-ln/build-ts*
npm@vite-ln/build-ts5.15.10
npm@vite-ln/build-ts5.17.0
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-09T22:58:17Z","published":"2026-07-08T15:04:55Z","schema_version":"1.7.4","id":"MAL-2026-6984","aliases":["GHSA-p85w-qq28-35h6"],"summary":"Malicious code in @vite-ln/build-ts (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (8972bbfdd55ad200dd49b08501d7391beca99841f0c36479806f2b1e329950a2)\nPackage @vite-ln/build-ts copies the legitimate vite package's manifest verbatim (description 'Native-ESM powered web dev build tool', author 'Evan You', repository vitejs/vite, bin name 'vite') but is published under the unofficial scope @vite-ln rather than @vitejs. The tarball appends an obfuscated payload to the CLI entry bin/vite.js after the legitimate Vite bootstrap. The payload uses a shuffled, character-substituted string array decoded at runtime to recover endpoint hostnames, HTTP methods, and Node API names, then performs an HTTP(S) GET followed by a JSON-RPC 2.0 POST (an 'EtherHiding'-style retrieval where the payload is pulled from a blockchain RPC so the operator can rotate it without republishing), XOR-decodes the response with an embedded key, and executes the decoded bytes both via eval(r) and via a detached, hidden child_process.spawn('node', [..., r], {detached:true, stdio:'ignore', windowsHide:true}). Any developer who runs the vite CLI from this package (e.g., npx vite, npm run dev/build) executes attacker-controlled, dynamically rotated code on their machine with full developer privileges and a persisted detached process. Additional base64-decode-then-toString patterns appear in dist/node/chunks/dep-SDtFYyy1.js and dist/node/runtime.js, consistent with the same obfuscation family.\n\n## Source: ghsa-malware (0b380eb60df5dc8d12ad64fe26e5c1ca08c4fa39505400ba90ea1a2d305121ff)\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-ln/build-ts"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["5.15.10","5.17.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"}],"indicators":{"evidence_files":[{"path":"package.json","sha256":"84f2a51c571d90aa65b09cf794ca64c94f915f4150d8d77f2f4624050f6f56fd","tlsh":"32a19b21cda88da30ad420e9ec791142f13485578e65fc18339d57ad4f4e26f327ebae"},{"path":"bin/vite.js","sha256":"f68356f47cb30a279be846ebebf45e3418c073d0bbcf2c4d790bd59f9f3bd235","tlsh":"31f14034b6fc38680f2c34b9bd9f090b24a54b11aec94149727cfe902bfdb17865d966"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-p85w-qq28-35h6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@vite-ln/build-ts/v/5.15.10"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@vite-ln/build-ts/v/5.17.0"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"ghsa-malware","sha256":"0b380eb60df5dc8d12ad64fe26e5c1ca08c4fa39505400ba90ea1a2d305121ff","import_time":"2026-07-08T15:56:06.79532039Z","id":"GHSA-p85w-qq28-35h6","modified_time":"2026-07-08T15:04:55Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"amazon-inspector","sha256":"8972bbfdd55ad200dd49b08501d7391beca99841f0c36479806f2b1e329950a2","import_time":"2026-07-09T17:19:29.957985483Z","id":"IN-MAL-2026-009368","modified_time":"2026-07-09T17:02:08Z","versions":["5.15.10"]},{"source":"amazon-inspector","sha256":"da83aebf307df3b1570739f5dfac71e48f8ca4482152d789145da109772c3fa3","import_time":"2026-07-09T22:56:31.28083255Z","id":"IN-MAL-2026-009527","modified_time":"2026-07-09T22:08:35Z","versions":["5.17.0"]}]}}

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