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

目标: 1000 元 · 已筹: 1359 元

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

vite-react-toolkit

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

Summary

Malicious code in vite-react-toolkit (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
3
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmvite-react-toolkit*
npmvite-react-toolkit1.0.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-20T13:17:00Z","published":"2026-06-12T16:11:50Z","schema_version":"1.7.4","id":"MAL-2026-5701","aliases":["GHSA-4vwq-cp5w-hx5g"],"summary":"Malicious code in vite-react-toolkit (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (879905a93676f42398cca583eb921d5ee04a7c84068d7aa0123a7cefdf26d995)\nOn import/require of vite-react-toolkit, src/features/extras/config.js (reached via the package main → createConfig.js → features/plugins.js side-effect import chain) fetches https://www.jsonkeeper.com/b/AAON3 with axios, extracts the response's `.config` field, and passes it to `new Function('require', s)(require)` — executing attacker-controlled JavaScript in the installer's Node.js process with full module-loading capability via `createRequire(import.meta.url)`. The fetch retries 5 times and swallows errors silently; `console.log` is saved and restored around the call to suppress output from the injected code. The dropper URL is hidden behind a fake local `process.env` object whose keys are named `DEV_API_KEY`/`DEV_SECRET_KEY`/`DEV_SECRET_VALUE` to look like ordinary environment variable reads. The package advertises itself as a Vite configuration helper, which has no need for network I/O at import time. jsonkeeper.com is an anonymous, mutable paste host — the served bytes can change at any time without any change to the package — so the attacker controls what runs in every consumer's dev/build pipeline whenever this module is imported.\n\n## Source: ghsa-malware (316e2881a83a38ed8663fab07132eae5000d17aa215009a96762f5ec381c1981)\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-react-toolkit"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.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":"src/features/extras/config.js","sha256":"d100938f64c4cc264fd29a4a56d67132ec0d894e860cbfffd4b2fb62f0432422","tlsh":"0b01bd8fa1ac140c057013e7bb1be036f662b1ab390381d5775cc7521fb695ca602ede"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-4vwq-cp5w-hx5g"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/vite-react-toolkit/v/1.0.1"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]},{"name":"ReversingLabs","type":"FINDER","contact":["https://www.reversinglabs.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"ghsa-malware","sha256":"316e2881a83a38ed8663fab07132eae5000d17aa215009a96762f5ec381c1981","import_time":"2026-06-12T17:16:21.751032525Z","id":"GHSA-4vwq-cp5w-hx5g","modified_time":"2026-06-12T16:11:51Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"amazon-inspector","sha256":"879905a93676f42398cca583eb921d5ee04a7c84068d7aa0123a7cefdf26d995","import_time":"2026-06-12T19:44:20.55562149Z","id":"IN-MAL-2026-006213","modified_time":"2026-06-12T19:27:03Z","versions":["1.0.1"]},{"source":"reversing-labs","sha256":"6533ab6f84dfe4ee76a9edb3c01e751eb1cbe47bbe51fb1fce4c7a0c934b7809","import_time":"2026-07-20T13:14:53.32593405Z","id":"RLMA-2026-05646","modified_time":"2026-07-20T11:03:38Z","versions":["1.0.1"]}]}}

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