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

目标: 1000 元 · 已筹: 1336

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

commonjs-assertion

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

Summary

Malicious code in commonjs-assertion (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
0
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmcommonjs-assertion*
npmcommonjs-assertion1.2.7
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-13719","published":"2026-08-10T15:52:18Z","modified":"2026-08-11T12:24:55.230309142Z","aliases":["GHSA-mfjj-4625-mpvr"],"summary":"Malicious code in commonjs-assertion (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (29c3fd028dc7e2493e59a3f81bb26702030dac0a64a42d845bd23ea116352f94)\nPackage presents itself as a chai-like assertion library. index.js uses hex-encoded strings to hide the identifiers 'child_process' and 'node' and, on require, unconditionally invokes child_process.spawn to launch a detached, stdio-ignored node child running lib/chai/utils/assertion.js. That file is a heavily obfuscated loader (obfuscator.io rotated string array plus a custom base64/URI decoder) whose decoded logic performs an HTTP GET to a URL reconstructed from the encoded string array and passes the response body to new Function(..., body)(require), granting the fetched remote code full Node access. The assertion.js file is not referenced by chai's real code and is only reachable via the hex-hidden spawn in index.js. Importing the package causes remote code execution on the installer's host at load time.\n\n## Source: ghsa-malware (0d9cb8e89c50d78130775904af2df0dc68d2fa17454fcd0c042e273c51e40855)\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":"commonjs-assertion","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.2.7"],"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":"index.js","sha256":"9074c70ce1c225f82083ff9d26a0cd7692eddfa18a44f9d5c354426e5a1c35a1","tlsh":"a501c0d11382b9e01c786be5809a6c06b5e0e43170a009b0fbfc52d3ab02a911123eb8"},{"path":"lib/chai/utils/assertion.js","sha256":"46543bececc793d6150af132e1ba48d0be2b61cc22dc2b2408a1ed3e23eeddfb","tlsh":"a391755cad8021915b8f475b3a27f0c4f4096d9f7fc9148fa111bde4e989a24ead6e30"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-mfjj-4625-mpvr"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/commonjs-assertion/v/1.2.7"}],"database_specific":{"malicious-packages-origins":[{"id":"GHSA-mfjj-4625-mpvr","import_time":"2026-08-11T00:38:01.342733712Z","modified_time":"2026-08-10T15:52:19Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"0d9cb8e89c50d78130775904af2df0dc68d2fa17454fcd0c042e273c51e40855","source":"ghsa-malware"},{"id":"IN-MAL-2026-017282","import_time":"2026-08-11T12:23:04.235371292Z","modified_time":"2026-08-11T11:57:43Z","sha256":"29c3fd028dc7e2493e59a3f81bb26702030dac0a64a42d845bd23ea116352f94","source":"amazon-inspector","versions":["1.2.7"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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