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

目标: 1000 元 · 已筹: 1359 元

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

chai-as-disarmed

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

Summary

Malicious code in chai-as-disarmed (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
—
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmchai-as-disarmed3.2.3
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-09T15:31:23Z","published":"2026-07-09T15:31:23Z","schema_version":"1.7.4","id":"MAL-2026-10042","summary":"Malicious code in chai-as-disarmed (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b6d396201a3dd1706d97f7daa880f254c920bbea65ea6b013ed48f78a21a0241)\nPackage name typosquats `chai-as-promised` while the README and keywords impersonate `pino` to bait installs. On `require()`, index.js detach-spawns `lib/caller.js`, which decodes a base64-stored URL to `https://api.jsonstorage.net/v1/json/2ef8c758-.../a179ea35-...`, issues an authenticated GET (header name and value are also base64-hidden inside a local object that shadows `process.env`), and executes the returned `.cookie` string via `new Function.constructor('require', s)(require)` — granting the remote operator arbitrary code execution in the installer's Node.js process with full `require` access. The fetch retries up to 5 times. The remote content sits in a mutable third-party JSON store, so the executed payload can be swapped at any time without republishing the package. None of this behavior corresponds to the advertised chai/pino functionality.\n","affected":[{"package":{"ecosystem":"npm","name":"chai-as-disarmed"},"versions":["3.2.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":"package.json","sha256":"4e8193c9bbf3102012bb1e9575e8296fac350d5af1441c97570f3b988c8daaf2","tlsh":"3b01cb61ceb88e6301dd21828c2e4643b6618c539928fd2932d7522c0f9e9bf11bf21d"},{"path":"lib/caller.js","sha256":"6c87c9848b319c905ed8db467c1b8535c83c4afed4391d6df3b2c0c0f3de76e2","tlsh":"b501c29934fe501c015111e9171fb1326050e4773986d6c8374c87029fa667e6e93adf"}],"package_integrity":[{"filename":"chai-as-disarmed-3.2.3.tgz","hashes":{"sha1":"f4060088659f36923da72cc961b9b6a010efbddb","sha512_sri":"sha512-aKndTvFWthsrdVdfZyGowK/BJ7U8Ku9nsfk1T+6tGJWyESLQ/H6IKOAahfkW8OEjB1Fs7lnBprvzBM29b2jOFQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-as-disarmed/v/3.2.3"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-009121","import_time":"2026-07-09T16:20:42.678266948Z","modified_time":"2026-07-09T15:31:23Z","sha256":"b6d396201a3dd1706d97f7daa880f254c920bbea65ea6b013ed48f78a21a0241","source":"amazon-inspector","versions":["3.2.3"]}]}}

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