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

目标: 1000 元 · 已筹: 1359 元

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

assertion-utils-js

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

Summary

Malicious code in assertion-utils-js (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
4
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmassertion-utils-js*
npmassertion-utils-js2.4.3
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-15T05:02:52Z","published":"2026-07-14T19:53:40Z","schema_version":"1.7.4","id":"MAL-2026-10612","aliases":["GHSA-q727-8h63-fm25"],"summary":"Malicious code in assertion-utils-js (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (311d22d9694863456136cf4f8b69a291fdbb631eda56bafca1959e0c184774a1)\nassertion-utils-js is a typosquat of chai (name, description, and keywords mirror the real package). On require(), index.js spawns a detached Node child process that runs lib/chai/utils/assertion.js in the background with stdio ignored. That file is heavily string-array obfuscated (obfuscator.io style: rotated `_0x1b90` token array plus a custom base64+URI `_0x2dd2` decoder with parseInt-checksum rotation, hex-named identifiers) and its runtime behavior is to reconstruct a URL from the decoded string array, call https.get to fetch a remote response body, then pass that body to `new Function(\"require\", body)` and invoke the resulting function with `require` in scope. The obfuscation exists to hide the fetch destination from static inspection; the fetched code executes with full Node module privileges on every load of the package.\n\n## Source: ghsa-malware (c2684afac6d619d33351e4afc538c40294a1a5b1fd643a4b10489ed12a01f79f)\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":"assertion-utils-js"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["2.4.3"],"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":"lib/chai/utils/assertion.js","sha256":"46543bececc793d6150af132e1ba48d0be2b61cc22dc2b2408a1ed3e23eeddfb","tlsh":"a391755cad8021915b8f475b3a27f0c4f4096d9f7fc9148fa111bde4e989a24ead6e30"}],"package_integrity":[{"filename":"assertion-utils-js-2.4.3.tgz","hashes":{"sha1":"9b040a20681605af778ea8f463f5ab210dd0b964","sha512_sri":"sha512-JyYn8m1gDkXgStwC3XKIEwm4fueG848aNZWHbHCp65KswMf1nmgE6eqSjLOT7HQqgtE0+wNrOv6F0Dgcbf+2yQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/assertion-utils-js/v/2.4.3"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-q727-8h63-fm25"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"311d22d9694863456136cf4f8b69a291fdbb631eda56bafca1959e0c184774a1","import_time":"2026-07-14T20:28:24.377653732Z","id":"IN-MAL-2026-010555","modified_time":"2026-07-14T19:53:40Z","versions":["2.4.3"]},{"source":"ghsa-malware","sha256":"c2684afac6d619d33351e4afc538c40294a1a5b1fd643a4b10489ed12a01f79f","import_time":"2026-07-15T05:00:56.810724037Z","id":"GHSA-q727-8h63-fm25","modified_time":"2026-07-14T23:14:25Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}]}}

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