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

目标: 1000 元 · 已筹: 1359 元

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

react-check-error

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

Summary

Malicious code in react-check-error (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
2
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmreact-check-error2.1.6
npmreact-check-error2.1.7
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-06T19:55:37Z","published":"2026-06-23T20:19:56Z","schema_version":"1.7.4","id":"MAL-2026-6341","aliases":["GHSA-fphr-9c8m-c35g"],"summary":"Malicious code in react-check-error (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d89ef9716015743217a9492f4b4469459da701a1b6198851f1527033f1e5c9ae)\nOn require(), index.js invokes _initMsgCache() at module top level. The function derives an AES-256-CBC key, IV, and ciphertext from a hardcoded 161-byte array (index.js:62) processed through an LCG-derived sbox, decrypts a URL, performs an https.get to that URL, parses the JSON response, and executes the response's `cookie` field via `new Function('require', mod)(require)` (index.js:155). This is a fully attacker-controlled remote code execution payload that runs on every consumer's machine the moment the package is imported, with full `require` access in the Node process. The package additionally impersonates the legitimate chai utility `check-error` — it copies chai's author metadata, description, the chaijs/check-error repository URL, and the original API surface (compatibleInstance, compatibleConstructor, compatibleMessage, getMessage, getConstructorName), with the dropper grafted onto the genuine sources. Unused runtime dependencies (axios, form-data, socket.io-client) are declared as further cover. The URL obfuscation (byte array + sbox XOR + per-index subtraction + bit rotation + AES-256-CBC) exists solely to hide the C2 endpoint from scanners — legitimate packages do not encrypt their network destinations.\n\n## Source: ghsa-malware (6a94fb4ad979c29d1d9bccd7289e92e821fb11a15d3e072d1f62162d321cdae1)\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":"react-check-error"},"versions":["2.1.7","2.1.6"],"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":"index.js","sha256":"c2b2a605465ff83573f2ddcbdf29e3f63b6d3bce638508f77ad1b0ff76ac4c63","tlsh":"43d161453fb6b26288b7d4e1210f244ae222b119717da085f39e44b57f98c54cb7efc9"},{"path":"package.json","sha256":"2317fd570270a7c1b00221a6b0c439857bfe292f95c23a1744806b5dfba0ed4b","tlsh":"3d217b62ca654c532fd815a69c5f1042b3618857ce94fd4c73a7920c9f6d12f12ff65c"}],"package_integrity":[{"filename":"react-check-error-2.1.7.tgz","hashes":{"sha1":"35561d6f2799b91c0dc462a7e13b6c1bf1e31e98","sha512_sri":"sha512-xW1mCJWBN6+JimuQyeJ2nXy927e2A3S/Zd2idvLM1W2HMyQf0vuEhQhATh9fErXwJ8Nk7zmjMv089T5Qz/FgSg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/react-check-error/v/2.1.7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/react-check-error/v/2.1.6"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-fphr-9c8m-c35g"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"d89ef9716015743217a9492f4b4469459da701a1b6198851f1527033f1e5c9ae","import_time":"2026-06-23T20:48:31.074184072Z","id":"IN-MAL-2026-007360","modified_time":"2026-06-23T20:19:57Z","versions":["2.1.7"]},{"source":"amazon-inspector","sha256":"e993c042cdc389f0889fe65e200ecfde7a0c9e18cb3ccfce76c3382c1379aead","import_time":"2026-06-23T20:48:30.985729906Z","id":"IN-MAL-2026-007359","modified_time":"2026-06-23T20:19:56Z","versions":["2.1.6"]},{"source":"ghsa-malware","sha256":"6a94fb4ad979c29d1d9bccd7289e92e821fb11a15d3e072d1f62162d321cdae1","import_time":"2026-07-06T19:53:47.954449865Z","id":"GHSA-fphr-9c8m-c35g","modified_time":"2026-07-06T18:57:43Z","versions":["2.1.7","2.1.6"]}]}}

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