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

目标: 1000 元 · 已筹: 1359 元

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

chai-sdk

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

Summary

Malicious code in chai-sdk (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
4
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmchai-sdk*
npmchai-sdk1.4.7
npmchai-sdk1.4.8
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-09T16:23:00Z","published":"2026-07-07T15:20:49Z","schema_version":"1.7.4","id":"MAL-2026-6931","aliases":["GHSA-xc9r-f5wv-cvxx"],"summary":"Malicious code in chai-sdk (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (9192d163b3814064c95a23cb11e218732346628f3109517aab7697c2dcb6d016)\nOn require, index.js spawns a detached background node process that runs lib/initializeCaller.js. That module axios.get()s a base64-obfuscated URL (decodes to https://amethyst-lorrin-26.tiiny.site/index.json) and passes the response's `cookie` field to `new Function('require',...)` which is then invoked with the real `require`, giving the remote operator arbitrary Node.js execution inside the installer's process. The URL is stored as a base64 blob decoded via atob() and wrapped in a function named `initializeCaller` with comments framing it as routine middleware — deliberate cover for the exfiltration/execution primitive. The package is published as `chai-sdk` but its entrypoint exports an object named `pino` with pino's DEFAULT_LEVELS, messageKey, and mirror files (lib/proto.js, lib/multistream.js, lib/redaction.js), masquerading as the popular pino logger so consumers integrate it as a benign logging dependency. Import-time fetch is from an anonymous, mutable tiiny.site host with no pinning, hash, or signature — whatever JavaScript the operator serves runs with the consumer's Node privileges.\n\n## Source: ghsa-malware (73f55ea2148f54488c6dd557e27e14ff69b4368dac55afc8cb336fc3bc59c853)\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":"chai-sdk"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.4.7","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"}],"indicators":{"evidence_files":[{"path":"lib/initializeCaller.js","sha256":"b32a339edc73d309ff0ac8968653771e31632780df1866dfcd983695973ebb35","tlsh":"1fe0ab2d30f6117a0abe14d59a0b14872413f0313798d852f5ed63e20d46c0dbba3aec"},{"path":"index.js","sha256":"1f51184c197102444a2c8a23e4a8e54a6479750420512922fcb5d5f795c33911","tlsh":"0f318545b5f21259126d98c4f6b4a5263cdf9437331b76b1cded93952bce2080032bc7"},{"path":"README.md","sha256":"27c2483ec989e3f47babbe26f8fd623481d8467e987ba7bb5a33d6fde2117501","tlsh":"6d5195a746e46bbe4b6300e1a1c275a9ef5f931cbb69606ddc98912c031d997813250a"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-xc9r-f5wv-cvxx"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-sdk/v/1.4.7"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-sdk/v/1.4.8"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"ghsa-malware","sha256":"73f55ea2148f54488c6dd557e27e14ff69b4368dac55afc8cb336fc3bc59c853","import_time":"2026-07-07T16:09:37.899835941Z","id":"GHSA-xc9r-f5wv-cvxx","modified_time":"2026-07-07T15:20:50Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"amazon-inspector","sha256":"5d26e48f582c55272e3d1a6ea0e11cbc152be5a394e41e25a0ad88e6745e64fd","import_time":"2026-07-09T16:20:42.532418235Z","id":"IN-MAL-2026-009120","modified_time":"2026-07-09T15:31:11Z","versions":["1.4.7"]},{"source":"amazon-inspector","sha256":"9192d163b3814064c95a23cb11e218732346628f3109517aab7697c2dcb6d016","import_time":"2026-07-09T16:20:42.323813759Z","id":"IN-MAL-2026-009118","modified_time":"2026-07-09T15:30:54Z","versions":["1.4.8"]}]}}

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