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

目标: 1000 元 · 已筹: 1359 元

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

chai-as-operated

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

Summary

Malicious code in chai-as-operated (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
—
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmchai-as-operated6.0.3
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-06-23T21:50:24Z","published":"2026-06-23T21:50:24Z","schema_version":"1.7.4","id":"MAL-2026-6350","summary":"Malicious code in chai-as-operated (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (927e5f9d908ce243e10ddf51e2463ac96c6f685790ec9f35dcc7309c90ad8407)\nPackage name impersonates the widely-used `chai-as-promised` (README instructs `chai.use(chaiAsOperated)`) and the README badges further impersonate `pino` (npm/GitHub Actions shields point at pinojs/pino). On `require('chai-as-operated')`, `index.js` exposes a middleware factory that spawns a detached `node./lib/initializeCaller.js`. That script defines a fake `process` object containing base64-obfuscated values (`DEV_API_KEY` decodes to `https://amethyst-lorrin-26.tiiny.site/index.json`, plus obfuscated `x-secret-key` header credentials), then performs `axios.get(apiEndpoint,...)` and executes the response body via `new Function.constructor('require', response)(require)` with retry logic. The remote payload runs with full Node `require` access in a detached background process. The destination is a free `tiiny.site` host — author-mutable, anonymous infrastructure — and the URL is hidden behind base64 to evade casual review and string scanners. This is a classic typosquat + remote-execution dropper.\n","affected":[{"package":{"ecosystem":"npm","name":"chai-as-operated"},"versions":["6.0.3"],"database_specific":{"cwes":[{"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":"2a41c6b7c5e256d70f884c613c6412ef73d86f8cd8a65afe6afb64fabaf4e022","tlsh":"f111008d61fc200c056512e6b22f18116022e4273d4ad4e47adc83470f9627fbd536df"},{"path":"package.json","sha256":"f38235eb42aad0173030d67ae67ef047c2accb391012044a3171bd9ff84fbe71","tlsh":"b3019c60ce788e2300ed25824c2a064376619c139928fc1933db512c0f9d5bf11bf21d"}],"package_integrity":[{"filename":"chai-as-operated-6.0.3.tgz","hashes":{"sha1":"bb070802a72fbb1a56595f4642910afa1ffbdc6b","sha512_sri":"sha512-WMWbFsfn4K50LrwMlDQBNWlaC5PLR9vaDQ+ES7HNAiU7Vqd7BMtU5sbyLIFMj5JlUbCaFX/6ADGSW3gkWu1UJQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-as-operated/v/6.0.3"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-007379","import_time":"2026-06-23T22:31:27.867166588Z","modified_time":"2026-06-23T21:50:24Z","sha256":"927e5f9d908ce243e10ddf51e2463ac96c6f685790ec9f35dcc7309c90ad8407","source":"amazon-inspector","versions":["6.0.3"]}]}}

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