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

目标: 1000 元 · 已筹: 1359 元

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

chai-as-repaired

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

Summary

Malicious code in chai-as-repaired (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
4
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmchai-as-repaired*
npmchai-as-repaired5.32.10
npmchai-as-repaired5.32.9
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-05-27T09:29:31Z","published":"2026-05-22T23:58:28Z","schema_version":"1.7.4","id":"MAL-2026-4512","aliases":["GHSA-fpr5-4jhx-2qw9"],"summary":"Malicious code in chai-as-repaired (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (949b90bd3c157955d029f9ea08bc32aea893e452c4ded78df98b80c1b831be76)\nPackage name 'chai-as-repaired' is a 1-edit typosquat of the popular 'chai-as-promised' chai plugin (>1M weekly downloads). The published code is unrelated to the advertised purpose: it ships pino-logger-derived source with mismatched metadata (description='vulnerability management', keywords=['logger','stream']). The exported middleware factory in index.js invokes runJobA, which at lines 32-39 calls `spawn('node', [script, JSON.stringify(args)], { detached: true, stdio: 'ignore' })` followed by `child.unref()` — a detached, output-suppressed child process designed to outlive the parent on every consumer invocation. The spawned script `./lib/caller.js` is absent from this version, so the spawn fails silently in 5.32.9, but the loader scaffold is in place. Separately, lib/const.js declares `DEV_API_KEY` whose value base64-decodes to `https://api.jsonstorage.net/v1/json/2ef8c758-a96f-459e-b036-b3b90379a165/a179ea35-b962-4722-b3f1-e28316d1a44a` — an anonymous public JSON-store endpoint commonly abused as mutable C2, deliberately named to look like a credential rather than a URL. The combination of typosquat name + purpose/metadata mismatch + detached-child stager + hidden base64-encoded anonymous-JSON-store endpoint is a coherent attack scaffold awaiting the missing payload file.\n\n## Source: ghsa-malware (6200ca18f04d2ebd704bc9ed0c91ec7e338ca315a3b42d71158a66bafdea7ba2)\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-as-repaired"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["5.32.9","5.32.10"],"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":"index.js","sha256":"2956b023858d706a5e241cd28b845088e5f414c5f70bd5d8cb73cb427d081065","tlsh":"5d213c81b9f11188065cd9c8b569e53a38e3c4377207b9b0e9ec87862bcf2080272ad7"},{"path":"lib/const.js","sha256":"a025a28f111db50770d91c8174b0b6803fb62539305856a05cc14ede212510b2","tlsh":"20d0c7e228baa61e05240222060db200f1d0c16f18c227893aea0d05c92256d2982eab"}],"package_integrity":[{"filename":"chai-as-repaired-5.32.9.tgz","hashes":{"sha1":"e48f375ae7673ca5dc38e5e2792b1947e7d5f1a9","sha512_sri":"sha512-T+9JUZPG5RjntEeTJeYIToiSUY0vLRIzHb2VzKje+woBXIxwSdfO34oAIYNSRqHSLmHuVVlrFtc1BTyBmrdaMQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-as-repaired/v/5.32.9"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-as-repaired/v/5.32.10"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-fpr5-4jhx-2qw9"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["actran@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"949b90bd3c157955d029f9ea08bc32aea893e452c4ded78df98b80c1b831be76","import_time":"2026-05-26T05:52:16.997722093Z","id":"IN-MAL-2026-004274","modified_time":"2026-05-22T23:58:28Z","versions":["5.32.9"]},{"source":"amazon-inspector","sha256":"c58af77607d3c50236fe8a0177a4c41c0b82699c3c550fc24eb4d7678e7cf1f6","import_time":"2026-05-26T05:53:17.819239513Z","id":"IN-MAL-2026-004796","modified_time":"2026-05-25T23:17:04Z","versions":["5.32.10"]},{"source":"ghsa-malware","sha256":"6200ca18f04d2ebd704bc9ed0c91ec7e338ca315a3b42d71158a66bafdea7ba2","import_time":"2026-05-27T09:27:52.187696002Z","id":"GHSA-fpr5-4jhx-2qw9","modified_time":"2026-05-27T08:53:18Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}]}}

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