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

目标: 1000 元 · 已筹: 1336

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

chai-foundry

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

Summary

Malicious code in chai-foundry (npm)

凭据/密钥窃取安装阶段执行
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
311
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
永久样本归档NAS
版本状态大小SHA-256获取方式
7.0.2unavailable
7.0.3unavailable
样本保存在内网 NAS 隔离区,不公开镜像地址;已开通会员可直接从平台下载。同步任务不会解压或执行样本。
受影响版本
EcosystemPackageVersion
npmchai-foundry*
npmchai-foundry7.0.2
npmchai-foundry7.0.3
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-13356","published":"2026-08-05T16:37:52Z","modified":"2026-08-18T12:31:37.070260238Z","aliases":["GHSA-x29h-74hf-jq7x"],"summary":"Malicious code in chai-foundry (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (94e40493af5310c6ee769911bff65e55538911ae3f286fba2a3474f9f8a38940)\nchai-foundry@7.0.2 is a trojan package presenting itself as a chai plugin (README shows `chai.use(chaiLeaf)`) while its badges, documentation, and internal version metadata (`lib/meta.js` exports version `9.6.0`) are copied from the pino logger. The package's main entry `index.js` immediately loads `./lib/config`, a 3.5MB file that is heavily obfuscated with obfuscator.io-class transforms: a rotated string array of 20,855 entries, two runtime decoder functions, tens of thousands of decoder-wrapper indirections, and control-flow flattening (104,934 deobfuscation changes reported by webcrack). The file begins with a top-level IIFE, so its opaque body runs automatically the moment any consumer calls `require('chai-foundry')`. All destinations and string constants are reconstructed at runtime, so the payload's network endpoints and behaviors are hidden from static inspection. The combination of identity impersonation, mismatched metadata, and a multi-megabyte control-flow-flattened import-time loader in a package advertised as a small chai plugin is the canonical shape of a hostile npm dropper/stealer.\n\n## Source: ghsa-malware (7493f27a9dde87cd284125de3d582e1cd94870a2c4bac65ae9c6f1d764dfbee0)\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":"chai-foundry","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["7.0.3","7.0.2"],"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":"4e6c4e61a7019ab0affe9c2d20e36701b330ec357be205930355bac1464f9316","tlsh":"0421149124d560ce9938dac0f6306115acdbc677260752b3bdfc97c927860080161fba"},{"path":"lib/config.js","sha256":"8397643af68793d57aec3637e79324e9183d6f1168009cd0676432515e88c515","tlsh":"261652d88984d123d3de9b13fe14a9a8f1fa79a6d4cce40b86987d4d29fc847d4a0cd4"},{"path":"package.json","sha256":"8f82750cc52cd72a3f3f941a3474b192a18cac0c56acdfbe35bfd6d8cf602d10","tlsh":"c0019e24de789e2304fd25524c2a06037a614c175528fc2932db612c4f5d5ff41ff21d"}],"package_integrity":[{"filename":"chai-foundry-7.0.3.tgz","hashes":{"sha1":"16fad30993d42f54098d3873a08527f0e3057aaa","sha512_sri":"sha512-98Lhn+hs8c34dV82aVYJYuuJJ6PcoUQpi3lJr9Zp156eSXA5YEHpt6lt+tRzhQemoxCbNvn49bWPVixqpXATmA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-foundry/v/7.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-foundry/v/7.0.2"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-x29h-74hf-jq7x"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-015827","import_time":"2026-08-05T17:04:49.368060143Z","modified_time":"2026-08-05T16:37:52Z","sha256":"47d799affc9421116994671c24da24cabadfb12a42d5b12ac54b2fce2aa1afe2","source":"amazon-inspector","versions":["7.0.3"]},{"id":"IN-MAL-2026-015828","import_time":"2026-08-05T17:04:49.46756877Z","modified_time":"2026-08-05T16:38:06Z","sha256":"94e40493af5310c6ee769911bff65e55538911ae3f286fba2a3474f9f8a38940","source":"amazon-inspector","versions":["7.0.2"]},{"id":"GHSA-x29h-74hf-jq7x","import_time":"2026-08-18T12:29:51.356706018Z","modified_time":"2026-08-18T11:34:04Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"7493f27a9dde87cd284125de3d582e1cd94870a2c4bac65ae9c6f1d764dfbee0","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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