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

目标: 1000 元 · 已筹: 1359 元

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

@usemosaik/template-react-js

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

Summary

Malicious code in @usemosaik/template-react-js (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
205
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@usemosaik/template-react-js1.0.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-16047","published":"2026-09-08T16:37:43Z","modified":"2026-09-08T19:16:48.125080454Z","aliases":["GHSA-8rcc-9ggm-659p"],"summary":"Malicious code in @usemosaik/template-react-js (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (3174ac7cecbc1869ae5ac87ea585de744f6b7d17b8c089b746384c2b7e2355a3)\nThis template package ships files/vite.config.js which, after a benign Vite header, appends ~26KB of heavily obfuscated code (obfuscator.io-style string-array with rotation dispatcher, hex payloads XOR-decoded at runtime with key 0xA2, arithmetic-hidden numeric literals). When the scaffolded project is run via `vite` / `npm run dev`, the config executes a `run()` routine that queries Ethereum JSON-RPC endpoints (`eth_getBlockByNumber`, `eth_getTransactionCount`) against a hardcoded sender address to resolve a command-and-control IP hidden in on-chain transaction data, fetches an XOR-encrypted payload over HTTP, decrypts it, and passes it to both `eval(...)` and `spawn('node', ['-e', payload], {detached: true, stdio: 'ignore', windowsHide: true})`, yielding a hidden detached Node process on the developer's machine. The package's declared `main` (dist/index.js) is inert, so scanners inspecting only the entry point miss the payload; the obfuscation and EtherHiding indirection exist solely to conceal the remote-execution chain from static review. Execution fires the first time a developer runs the scaffolded project generated from this template, giving full RCE on the developer's host.\n\n## Source: ghsa-malware (9cb614be24802762692ee3d58173981e3c20bdebe4fabd6846ab71671568d4ca)\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":{"name":"@usemosaik/template-react-js","ecosystem":"npm"},"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":"files/vite.config.js","sha256":"58343a4b3690d6af262f06370148799f9a02c09314882948b566ff1a9900352b","tlsh":"c7c23b8d9da230f1e76057eaec058dc2a805ec59252bcc96b12cf8d63f44f5468bb774"}],"package_integrity":[{"filename":"template-react-js-1.0.1.tgz","hashes":{"sha1":"87693d198a595fcff1900dd76aef977b6ec921ad","sha512_sri":"sha512-kvkENoJcUmFnf/V0HXUTbeJp6FPMIJDbcBTAqEB2OIyIIoFe0nxzUEcymdZ3n0zNaaSWd7sVTcsFIuNzJnwCcQ=="}}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-8rcc-9ggm-659p"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@usemosaik/template-react-js/v/1.0.1"}],"database_specific":{"malicious-packages-origins":[{"id":"GHSA-8rcc-9ggm-659p","import_time":"2026-09-08T17:24:59.244326561Z","modified_time":"2026-09-08T16:37:44Z","sha256":"9cb614be24802762692ee3d58173981e3c20bdebe4fabd6846ab71671568d4ca","source":"ghsa-malware","versions":["1.0.1"]},{"id":"IN-MAL-2026-019691","import_time":"2026-09-08T19:15:04.453922255Z","modified_time":"2026-09-08T19:09:58Z","sha256":"3174ac7cecbc1869ae5ac87ea585de744f6b7d17b8c089b746384c2b7e2355a3","source":"amazon-inspector","versions":["1.0.1"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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