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

目标: 1000 元 · 已筹: 1359 元

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

chai-leaf

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

Summary

Malicious code in chai-leaf (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
209
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmchai-leaf*
npmchai-leaf1.4.5
npmchai-leaf1.4.6
npmchai-leaf1.4.7
npmchai-leaf1.4.8
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-10940","published":"2026-07-21T00:47:19Z","modified":"2026-09-24T08:52:56.159035428Z","aliases":["GHSA-m3c7-2j38-rjh7"],"summary":"Malicious code in chai-leaf (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (77cc7562a27df348fafc455124fd845dfc2e5774c42279ee6e3dd8f1cfb1f05b)\nchai-leaf@1.4.5's main entry index.js unconditionally requires./lib/config, which is a single 3,546,568-byte obfuscator.io-encoded file (20,721-entry string array with self-defending routines) that runs immediately on require(). The decoded string table inside lib/config.js contains literals for.ssh and.aws (installer credential directories) alongside axios, spawn, exec, Function, and require — the shape of a load-time credential stealer that reads secrets from the installer's home directory and exfiltrates via HTTP. package.json declares axios as a runtime dependency. The package presents itself with inconsistent cover stories: package.json describes it as vulnerability-management documentation while the README impersonates pino (badges, prose, and docs/api.md copied verbatim from pinojs/pino) and the lib/ tree mirrors pino's file names (proto.js, redaction.js, tools.js, transport.js, worker.js) with the extra obfuscated config.js that has no analog in real pino. The package name and README also allude to chai, unrelated to either declared purpose. A logger/chai plugin has no legitimate need for a multi-megabyte self-defending obfuscated blob that executes at import, and no legitimate need to reference ~/.ssh and ~/.aws.\n\n## Source: ghsa-malware (38312fd425c2921477fe6eecb5036500bcdbc1735dee43f3a84cfcbf2ba3002f)\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-leaf","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.4.5","1.4.7","1.4.6","1.4.8"],"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"},{"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/config.js","sha256":"1e3f9c43442ed0d25dcaa88833a12cf68ab3865c55031308fe4b5e8ec29c3a92","tlsh":"70f5b8487971e03783dd1767be4a1fece63a186694c8a52b8558bd9f39bc107c1a3ce0"},{"path":"package.json","sha256":"95dc27fda05b43b8c59a7004a84ecd04660e92a40d8edecd7aba066bf6c69e46","tlsh":"30019e30de788e6304ed25524c2a064376614c175528fd1932db512c4f9d5ff41ff21d"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-m3c7-2j38-rjh7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-leaf/v/1.4.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-leaf/v/1.4.7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-leaf/v/1.4.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-leaf/v/1.4.8"}],"database_specific":{"malicious-packages-origins":[{"id":"GHSA-m3c7-2j38-rjh7","import_time":"2026-07-21T00:54:05.876216607Z","modified_time":"2026-07-21T00:47:19Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"38312fd425c2921477fe6eecb5036500bcdbc1735dee43f3a84cfcbf2ba3002f","source":"ghsa-malware"},{"id":"IN-MAL-2026-011174","import_time":"2026-08-04T22:30:03.279468461Z","modified_time":"2026-08-04T21:43:15Z","sha256":"77cc7562a27df348fafc455124fd845dfc2e5774c42279ee6e3dd8f1cfb1f05b","source":"amazon-inspector","versions":["1.4.5"]},{"id":"IN-MAL-2026-011171","import_time":"2026-08-04T22:30:03.15989374Z","modified_time":"2026-08-04T21:42:48Z","sha256":"7b42379dc087ff6a77d9553b861f8f8b92fc9e41d74080114963743fb49370b0","source":"amazon-inspector","versions":["1.4.7"]},{"id":"IN-MAL-2026-011173","import_time":"2026-08-04T22:30:03.238968792Z","modified_time":"2026-08-04T21:43:03Z","sha256":"536f7f71b711742269dcb7f7bfea03b04d7e58152bb6be07212d36c946a96998","source":"amazon-inspector","versions":["1.4.6"]},{"id":"IN-MAL-2026-013056","import_time":"2026-08-05T06:00:36.143091687Z","modified_time":"2026-08-05T05:27:41Z","sha256":"465847573542d374be7a407bd440a3fecb27a643b0bbff5dd32daa187490c4bc","source":"amazon-inspector","versions":["1.4.8"]},{"id":"RLMA-2026-06142","import_time":"2026-09-01T11:17:28.759437949Z","modified_time":"2026-08-24T16:43:59Z","sha256":"9c2c2fae2d137822c5bbcdc2c90efff51f6dfbb5c53b5409e2a30cc70207c253","source":"reversing-labs","versions":["1.4.5","1.4.6","1.4.7"]},{"id":"RLUA-2026-10706","import_time":"2026-09-24T08:50:53.405952965Z","modified_time":"2026-09-22T17:20:19Z","sha256":"abce4ab77a939990c495ec2dca5dc70a6765508f1ec83db6edd59f883d8d5e6f","source":"reversing-labs","versions":["1.4.8"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"ReversingLabs","contact":["https://www.reversinglabs.com"],"type":"FINDER"}]}

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