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

目标: 1000 元 · 已筹: 1359 元

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

chai-as-indexed

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

Summary

Malicious code in chai-as-indexed (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理claude-sonnet-4-6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
0
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
永久样本归档NAS
版本状态大小SHA-256获取方式
7.2.8archived——VIP 下载
样本保存在内网 NAS 隔离区,不公开镜像地址;已开通会员可直接从平台下载。同步任务不会解压或执行样本。
受影响版本
EcosystemPackageVersion
npmchai-as-indexed6.0.5
npmchai-as-indexed7.2.8
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-16293","published":"2026-09-18T20:25:47Z","modified":"2026-10-08T03:52:20.380301676Z","summary":"Malicious code in chai-as-indexed (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (6bd158a05893a55a82bee4867772aefbfb3199a443c38e7161db1a71d47ced86)\nchai-as-indexed presents itself as a pino-compatible logger (package.json keywords fast/logger/stream/json, exports module.exports.pino, lib/* filenames mirror pino) but the exported middleware's only real action is to spawn a detached Node child that runs lib/caller.js. lib/caller.js hides its C2 behind a fake local `process.env` object whose values are base64 literals (DEV_API_KEY, DEV_SECRET_KEY, DEV_SECRET_VALUE); at runtime they decode to the URL https://tomato-erminie-2.tiiny.site/index.json and a request header. The decoded URL is fetched and the JSON response's `cookie` field is passed to `new Function.constructor('require', response)(require)`, executing attacker-controlled JavaScript with the host process's full Node privileges and `require` handed in. The destination is an anonymous, author-mutable tiiny.site host with no pinning or integrity check. Any application that requires this package expecting pino and invokes the middleware will fetch and execute whatever the attacker is currently serving.\n","affected":[{"package":{"name":"chai-as-indexed","ecosystem":"npm"},"versions":["7.2.8","6.0.5"],"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/initializeCaller.js","sha256":"e384bffa5e90fb424deb80e2d4f1edf3984f7372cd38943eb63812055b807d93","tlsh":"6af0819d34ba223a42ad64f2b61714551113f42137d5d456f3cd42650f4dd4c6771bc8"}],"package_integrity":[{"filename":"chai-as-indexed-7.2.8.tgz","hashes":{"sha1":"3057a544492379e40ad2761e503492c2623e148a","sha512_sri":"sha512-GJYoViTyWpM0lQTPUBwq5kTrBb4fwVUammsiZdLX/V69R4TsuG8UoXNgQNDp5PIhWrSHZgWgUZq1ngGvRi1lAg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-as-indexed/v/7.2.8"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-as-indexed/v/6.0.5"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-020191","import_time":"2026-09-18T20:38:14.059880859Z","modified_time":"2026-09-18T20:25:47Z","sha256":"424ebdaa04d4f7e8ce306f536421ac65d79467e73b05877caac6b72071bdaef9","source":"amazon-inspector","versions":["7.2.8"]},{"id":"IN-MAL-2026-021118","import_time":"2026-10-08T03:50:29.086797557Z","modified_time":"2026-10-08T03:38:40Z","sha256":"6bd158a05893a55a82bee4867772aefbfb3199a443c38e7161db1a71d47ced86","source":"amazon-inspector","versions":["6.0.5"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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