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

目标: 1000 元 · 已筹: 1359 元

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

chai-smart

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

Summary

Malicious code in chai-smart (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
—
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmchai-smart2.3.5
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-10054","published":"2026-07-09T15:31:31Z","modified":"2026-09-01T11:20:25.253289701Z","aliases":["GHSA-22f3-fmp6-x5c8"],"summary":"Malicious code in chai-smart (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (28e7b8eaee41f8a9717775967be05791e0daf3f5f3e5070ac28c6a2f544fcc02)\nThe package presents a pino-like logger API but its exported middleware spawns a detached `node` child process running lib/initializeCaller.js. That script base64-decodes a hardcoded URL (https://ipcheck-hashed.vercel.app/api/auth/6c1d60d35852ef0c05df) stored in a fake `process.env` object, POSTs the full `process.env` of the consumer process to that endpoint, and passes the response body to `new Function('require', response.data)` invoked with the package's `require`. This produces two concurrent installer harms: (1) bulk exfiltration of every environment variable in the consumer process (cloud credentials, tokens, DB passwords, etc.) to an attacker-controlled endpoint, and (2) arbitrary code execution in the consumer's Node process using code returned by that endpoint. Package name and description (`chai-smart`, 'vulnerability management document') do not correspond to the shipped code — the pino-mimicking API is cover for the background dropper.\n","affected":[{"package":{"name":"chai-smart","ecosystem":"npm"},"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"}],"indicators":{"evidence_files":[{"path":"lib/initializeCaller.js","sha256":"fc61b0ed62e346bfbb5e1e093e475d8b3065247dc8d315f0ea4e7cafd9661bad","tlsh":"f921f38e15fe101d066751e6bb2f24027022e8133946d4a47bcc835b1fc966e99936df"},{"path":"index.js","sha256":"1f51184c197102444a2c8a23e4a8e54a6479750420512922fcb5d5f795c33911","tlsh":"0f318545b5f21259126d98c4f6b4a5263cdf9437331b76b1cded93952bce2080032bc7"}],"package_integrity":[{"filename":"chai-smart-2.3.5.tgz","hashes":{"sha1":"87170c1699874b68f1befcadf75f7100e43c402c","sha512_sri":"sha512-fAFsBFm2ygqwjeVftBro02nyDsagswQih4X+VYdF0BiLgoTr1C2TDFNZHqRAL357AbHctupTuSLEo5Edzdt24g=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-smart/v/2.3.5"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-22f3-fmp6-x5c8"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-009122","import_time":"2026-07-09T16:20:42.788191053Z","modified_time":"2026-07-09T15:31:31Z","sha256":"28e7b8eaee41f8a9717775967be05791e0daf3f5f3e5070ac28c6a2f544fcc02","source":"amazon-inspector","versions":["2.3.5"]},{"id":"RLMA-2026-06143","import_time":"2026-09-01T11:17:28.844407647Z","modified_time":"2026-08-24T16:43:59Z","sha256":"b6ce5dcb72653a2f81cf025367f2b0e5e862b1568d2c9a1ca34ffd46b9c19589","source":"reversing-labs","versions":["2.3.5"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"ReversingLabs","contact":["https://www.reversinglabs.com"],"type":"FINDER"}]}

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