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

目标: 1000 元 · 已筹: 1359 元

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

chai-as-testkit

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

Summary

Malicious code in chai-as-testkit (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
—
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
永久样本归档NAS
版本状态大小SHA-256获取方式
2.3.5unavailable———
样本保存在内网 NAS 隔离区,不公开镜像地址;已开通会员可直接从平台下载。同步任务不会解压或执行样本。
受影响版本
EcosystemPackageVersion
npmchai-as-testkit*
npmchai-as-testkit2.3.5
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-14371","published":"2026-08-23T03:14:40Z","modified":"2026-09-09T16:30:29.867436989Z","aliases":["GHSA-wg38-qj68-8g87"],"summary":"Malicious code in chai-as-testkit (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (0bf8ab4a811449bd1ba40c637a0eebc0569994d3a3550cf7156c36192abcec31)\nThe package is published as 'chai-as-testkit' with a description referencing vulnerability management, but the tarball ships pino's README, docs/, index.d.ts, and lib/ tree (proto, levels, transport, worker, redaction) under an unrelated author (Robert King <hello@jsonspack.com>, bugs.url jsonspack.com) rather than the real pinojs publisher. The shipped index.js is a synthetic stub whose only effect is `const config = require('./lib/config')`, and lib/config.js is a 4,083,409-byte single-line obfuscator.io-style bundle: a rotated hex-escaped string array of ~23,953 entries with control-flow flattening and dead-code layers (webcrack inlines 40,105 decoded strings across the decoder layers before failing to serialize). This blob runs immediately when any consumer imports the package, executing attacker-controlled code inside the developer or CI Node.js process. The pino impersonation is the social-engineering wrapper around an on-import loader; the shape (name/description/author mismatch + hollow main entry that delegates to a multi-megabyte obfuscated module at require time) is a typosquat-delivered install/import-time RCE vehicle rather than a logging library.\n\n## Source: ghsa-malware (95d5d039dd1913413212411db396e7f1124bf58910447548638c505a05a0e21a)\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-testkit","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["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"}],"indicators":{"evidence_files":[{"path":"lib/config.js","sha256":"ef7a5abedd9be15b8f63cd56aca72913f2858678bcd4148b96030b304e7ca5e4","tlsh":"861672889581c43395ce16a3ff2d6ae8f13a79f1c4c8a54bc569bc9c2dac91fd1a0dd0"},{"path":"package.json","sha256":"9d9df1481c920ec1d01c8cead724dd2ed789c26a411fabee68cd33a6f4414219","tlsh":"51017b20debc4e2301ed25524c2a0643ba614c175628fd1932db512d0f9d5ff41bf21d"}],"package_integrity":[{"filename":"chai-as-testkit-2.3.5.tgz","hashes":{"sha1":"3fde83408d21f4123e9127ed9dc0aaaf1f603dff","sha512_sri":"sha512-cBCciGdISfMyeKC4gwgCu2c9ciADdt+vwq/Wz56V9rL2Tnvx5Q2FNWk7jDLhGLGMxAdd6d+h3sRtqOMfBr9ghg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-as-testkit/v/2.3.5"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-wg38-qj68-8g87"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-018569","import_time":"2026-08-23T03:25:56.212228176Z","modified_time":"2026-08-23T03:14:40Z","sha256":"0bf8ab4a811449bd1ba40c637a0eebc0569994d3a3550cf7156c36192abcec31","source":"amazon-inspector","versions":["2.3.5"]},{"id":"GHSA-wg38-qj68-8g87","import_time":"2026-09-09T16:28:44.884884566Z","modified_time":"2026-09-09T15:26:21Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"95d5d039dd1913413212411db396e7f1124bf58910447548638c505a05a0e21a","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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