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

目标: 1000 元 · 已筹: 1336

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

chai-as-gateway

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

Summary

Malicious code in chai-as-gateway (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
0
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmchai-as-gateway7.1.5
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-08-19T01:59:46Z","published":"2026-08-19T01:59:46Z","schema_version":"1.7.4","id":"MAL-2026-14200","summary":"Malicious code in chai-as-gateway (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (f90afdde9240783f1f869b875b7967490cf579e1bae0986861498f8c98c0d973)\nThe package advertises itself as a logger (README and type definitions copied wholesale from pinojs/pino) but its exported middleware is a no-op that simply calls next(). index.js unconditionally executes require('./lib/config') at module top level, and lib/config.js is a ~4MB obfuscator.io-style blob (string-array rotate loader, ~24k entries, hex-escaped identifiers) whose only purpose is to run on import. The obfuscated blob contains references to child_process exec/spawn, axios (declared as a runtime dependency in package.json), fs directory traversal via withFileTypes, the path fragment.aws, and the full base64 alphabet — the standard shape of an installer-secret harvester that walks the home directory for AWS credentials and exfiltrates over HTTP. The package name resembles unrelated popular packages, the description string ('vulnerabilities management document') does not match the pino-cloned documentation, and author metadata is a generic hello@jsonspack.com address. Requiring this package auto-executes attacker-controlled code on the installer.\n","affected":[{"package":{"ecosystem":"npm","name":"chai-as-gateway"},"versions":["7.1.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/config.js","sha256":"8397643af68793d57aec3637e79324e9183d6f1168009cd0676432515e88c515","tlsh":"261652d88984d123d3de9b13fe14a9a8f1fa79a6d4cce40b86987d4d29fc847d4a0cd4"},{"path":"package.json","sha256":"8a252b1e5ea35464e9dc2c2d67420bac2b432b911adf07a5d16b7cb0f911fa23","tlsh":"ca017b20de784e6304ed25525c2a064376614c175528fd1932db612c4f9d5ff01bf21d"}],"package_integrity":[{"filename":"chai-as-gateway-7.1.5.tgz","hashes":{"sha1":"28424b4019235b241f14f9760c8f48413437ce3d","sha512_sri":"sha512-x3Dh6gMstuo6X6s1SI9FkWeaCvbEC1k4+TSIpidmtbM9Sl8TwAOdZ+bAZ6JqjWlFIxNtzuN1L0cLy5CSIWgdOQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-as-gateway/v/7.1.5"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-018289","import_time":"2026-08-19T02:31:08.598969158Z","modified_time":"2026-08-19T01:59:46Z","sha256":"f90afdde9240783f1f869b875b7967490cf579e1bae0986861498f8c98c0d973","source":"amazon-inspector","versions":["7.1.5"]}]}}

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