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

目标: 1000 元 · 已筹: 1336

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

chai-as-deployer

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

Summary

Malicious code in chai-as-deployer (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
265
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
永久样本归档NAS
版本状态大小SHA-256获取方式
2.3.5unavailable
2.3.6unavailable
样本保存在内网 NAS 隔离区,不公开镜像地址;已开通会员可直接从平台下载。同步任务不会解压或执行样本。
受影响版本
EcosystemPackageVersion
npmchai-as-deployer*
npmchai-as-deployer2.3.5
npmchai-as-deployer2.3.6
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-13700","published":"2026-08-10T12:30:35Z","modified":"2026-08-18T12:31:37.064957295Z","aliases":["GHSA-6q3r-v92v-89p4"],"summary":"Malicious code in chai-as-deployer (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c4da130c2818dc609c23c93511a70a6c207cf19cdf9fdd937e369e07b5f1e492)\nThe package is published as `chai-as-deployer` but its tarball contains verbatim pino README/docs/type-definitions while the advertised chai plugin is a no-op Express middleware (`return (_req,_res,next) => { next(); }`). index.js unconditionally executes `require('./lib/config')` at module top level, loading a ~3.5MB single-line obfuscator.io-style bundle (rotated string array, decoder functions, hex-escaped identifiers) that has no relationship to pino or the advertised functionality. The obfuscated body contains `require`, `exec`, `spawn`, and `axios` tokens, indicating the decoded code drives child-process execution and outbound HTTP requests. Any consumer that imports `chai-as-deployer` triggers this payload with no further action. Author metadata is generic (`Harrison Thorn <harrisonthorn@protonmail.com>`, bugs URL `harrisonthorn.com`) and the package description is unrelated boilerplate. The combination of cover-story impersonation, no legitimate functionality, top-level require of a heavily obfuscated bundle, and shell+network primitives inside that bundle is the canonical shape of an import-time stealer/loader.\n\n## Source: ghsa-malware (cb63584d83487c7d7ce3b9d031d79502412fd048c2260a05b0a8ef98aa23ef59)\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-as-deployer","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["2.3.6","2.3.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"},{"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":"f50f58b138120fab51de3d3d98fb96d24bd3cee998f3fcc27895344821910383","tlsh":"e4165f889645c93796ce17a3be0579ecf23aa9a194cca50b80bdbd5c39fc45bc0b0dd4"},{"path":"package.json","sha256":"a67ac415fc949eb5e30a1429ff9af59f7687684df04b6711bbd52f40a85ca3b3","tlsh":"cb014c20ce789d2305dd21525c6a4542b3324d178928fd1932d7a12e4f9f5af55bf15c"}],"package_integrity":[{"filename":"chai-as-deployer-2.3.6.tgz","hashes":{"sha1":"652f5bd2858d9093ccb1e12ecec653f354b45703","sha512_sri":"sha512-XfvA5y9k+fTQ3zQXWn0LmArsYnQVo8OK+lwl4TX1XgfQfFqi5/38f6KOMs39dZy4d1xIylQ+Yebr4wi0Pu32Mw=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-as-deployer/v/2.3.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-as-deployer/v/2.3.5"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-6q3r-v92v-89p4"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-017268","import_time":"2026-08-10T12:51:45.145480902Z","modified_time":"2026-08-10T12:30:35Z","sha256":"5aef4629b3aa0ef2f5afc03676e6b2d749b8b6cc7fa3dc211aebc573997d1727","source":"amazon-inspector","versions":["2.3.6"]},{"id":"IN-MAL-2026-017269","import_time":"2026-08-10T12:51:45.193771277Z","modified_time":"2026-08-10T12:30:47Z","sha256":"c4da130c2818dc609c23c93511a70a6c207cf19cdf9fdd937e369e07b5f1e492","source":"amazon-inspector","versions":["2.3.5"]},{"id":"GHSA-6q3r-v92v-89p4","import_time":"2026-08-18T12:29:51.337602966Z","modified_time":"2026-08-18T11:33:24Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"cb63584d83487c7d7ce3b9d031d79502412fd048c2260a05b0a8ef98aa23ef59","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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