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

目标: 1000 元 · 已筹: 1359 元

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

chai-as-forgeted

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

Summary

Malicious code in chai-as-forgeted (npm)

文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
—
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmchai-as-forgeted9.24.6
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-06-19T14:10:27Z","published":"2026-06-19T14:10:27Z","schema_version":"1.7.4","id":"MAL-2026-6219","summary":"Malicious code in chai-as-forgeted (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b6b32b714919c755532ed3d2695d1966568c24878e9721a5d756896d81881020)\nPackage name impersonates the popular chai-as-promised assertion library, but its package.json description and keywords are copied from pino and the code is unrelated to chai. The package's main entry exports a middleware factory that spawns lib/caller.js as a detached node child process. lib/caller.js base64-decodes a hardcoded URL pointing at api.jsonstorage.net (a mutable third-party JSON storage service), GETs the JSON document, extracts the `cookie` field, and executes its contents via `new Function.constructor('require', s)(require)` with full access to `require`. The C2 URL and request headers are stored as base64 strings inside a locally redefined `process` object that shadows the real process global, then decoded with `atob` at runtime. Any consumer who installs and invokes the exported middleware triggers arbitrary attacker-controlled code execution; the attacker can rotate the payload served by the JSON storage endpoint at will.\n","affected":[{"package":{"ecosystem":"npm","name":"chai-as-forgeted"},"versions":["9.24.6"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"lib/caller.js","sha256":"37e9dde0f35864e2ea8dcd4c8b5324ef50e3798195d04c30ba6938352af702db","tlsh":"1b01af9934fe541c015112e9171fa1326050e4673d86e6c83b4c87129fa667e6e93adf"},{"path":"package.json","sha256":"842a296220c20e1ad41ccff4bbaf394d574704b14b6731989b1d7f0708840a1c","tlsh":"7e019c60ce788e2304ed25824c2e0643b6659c139928fc1932d7512c0f9d9bf15bf25d"}],"package_integrity":[{"filename":"chai-as-forgeted-9.24.6.tgz","hashes":{"sha1":"8dcc2abb4ef93b067275f49f1789d685ec1d6975","sha512_sri":"sha512-QD0MAM/tH4wen/cwZEPYwtuG2KMatHpoZwHNJKyirzP0wew4gkGDs6lMUF7n7cuzTSd+Cr5R5GrV7iiveIxzFQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-as-forgeted/v/9.24.6"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-007065","import_time":"2026-06-19T15:41:54.804687325Z","modified_time":"2026-06-19T14:10:27Z","sha256":"b6b32b714919c755532ed3d2695d1966568c24878e9721a5d756896d81881020","source":"amazon-inspector","versions":["9.24.6"]}]}}

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