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

目标: 1000 元 · 已筹: 1359 元

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

assertcore

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

Summary

Malicious code in assertcore (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
2
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmassertcore*
npmassertcore3.1.7
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-15T05:02:52Z","published":"2026-06-24T03:50:42Z","schema_version":"1.7.4","id":"MAL-2026-6365","aliases":["GHSA-8f9p-rcjg-hhx4"],"summary":"Malicious code in assertcore (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (4bd2844909a6dd6db77af2d47b2d9a16ff126d892998282f4df4c7ed1f61a4af)\nPackage `assertcore` impersonates the popular `chai` assertion library (ships a copy of chai source as cover; author and homepage differ from the genuine project). On `require('assertcore')` / `import 'assertcore'`, `index.js` spawns a detached `node` subprocess running `lib/chai/utils/addAssertion.js` with stdio set to ignore: `const chaiBinding = spawn(\"node\", [addAssertion, JSON.stringify(args)], {detached: true, stdio: \"ignore\"})`. The spawned script is heavily obfuscated using obfuscator.io string-array rotation, a base64-with-substitution decoder, and hex-arithmetic indexing to hide that it `require`s http(s), performs a GET to a URL assembled from obfuscated literals, and passes the response body into `new Function('require', body)(require)` — executing attacker-supplied JavaScript with full Node privileges on every install or require. The combination of name impersonation, chai-source cover, detached/silenced subprocess, obfuscated network destination, and import-time fetch-and-eval is an unambiguous supply-chain attack on installers.\n\n## Source: ghsa-malware (4b9c1b24c21140b120efceeccb9ced05c56a580dca792d07c43cffa1e24d7ca8)\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":"assertcore"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["3.1.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":"e045f0b4ff409bcc00b1c2e74f687501740197295b26b41587f94c7d2f39c3d3","tlsh":"19f0dcfa02c1aa286d31bbf18007442623e3c172f24040a8fafd90d26657b835233cbd"},{"path":"lib/chai/utils/addAssertion.js","sha256":"2eb589375bedac37eca772ed22457616cda763b7c0b2fff5f8b9ea7135598e3b","tlsh":"2c81002522c01541275bcbfb2e27f1d6d4269c4a7e9c445bea0dbcd8ed65616cbc2b30"}],"package_integrity":[{"filename":"assertcore-3.1.7.tgz","hashes":{"sha1":"cb306d3c18ee2b391234f721c01d936f6f2ab4fd","sha512_sri":"sha512-1ya3GEfSwXyQJgbCypvYYvetxqYY3Vk0f0qWOCZngjWhxxqqsMuCje57bAsYv5XwqkzqG93zuwYvUnUpQtyDJQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/assertcore/v/3.1.7"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-8f9p-rcjg-hhx4"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"4bd2844909a6dd6db77af2d47b2d9a16ff126d892998282f4df4c7ed1f61a4af","import_time":"2026-06-24T04:54:33.779968737Z","id":"IN-MAL-2026-007415","modified_time":"2026-06-24T03:50:42Z","versions":["3.1.7"]},{"source":"ghsa-malware","sha256":"4b9c1b24c21140b120efceeccb9ced05c56a580dca792d07c43cffa1e24d7ca8","import_time":"2026-07-15T05:00:56.79332848Z","id":"GHSA-8f9p-rcjg-hhx4","modified_time":"2026-07-14T23:14:24Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}]}}

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