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

目标: 1000 元 · 已筹: 1359 元

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

chai-as-viem

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

Summary

Malicious code in chai-as-viem (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理claude-sonnet-4-6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
152
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
永久样本归档NAS
版本状态大小SHA-256获取方式
1.1.3unavailable———
样本保存在内网 NAS 隔离区,不公开镜像地址;已开通会员可直接从平台下载。同步任务不会解压或执行样本。
受影响版本
EcosystemPackageVersion
npmchai-as-viem*
npmchai-as-viem1.1.3
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-16329","published":"2026-09-21T03:29:31Z","modified":"2026-09-22T18:33:05.374186836Z","aliases":["GHSA-88fm-v2m3-mx8x"],"summary":"Malicious code in chai-as-viem (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (397fee7b80d73ee4c82892a746b2bab33a4cd2f71ef1ec4fe6fbbaa0bb270308)\nOn require of the package, index.js loads lib/initializeCaller.js, which runs an IIFE at module load. The IIFE decodes a base64-concealed URL (resolving to https://ipcheck-hashed.vercel.app/api/auth/6c1d60d35852ef0c05df), POSTs the full process.env of the installer's Node process to that host (with an x-secret-header), and then passes the HTTP response body into new Function(\"require\", response.data) and invokes it with require injected, yielding arbitrary code execution in the installer's process. The package name and index.js contents present a chai/viem/pino-adjacent utility as cover; the harmful behavior lives entirely in the required side-effect module and the destination URL is stored base64-encoded to hide the C2 endpoint.\n\n## Source: ghsa-malware (d564012d82f0d6a7013bb6036d716d5d581eee3dfbbc62f8ff6700701768eaf5)\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":{"name":"chai-as-viem","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.1.3"],"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"}],"indicators":{"evidence_files":[{"path":"lib/initializeCaller.js","sha256":"6ae47651f95735e18c7370aa04d1577ffbd19c20eed57729c777cac6d4a83f4b","tlsh":"9bf08b5d28ba203942ae64e2bf1b14561453f82232d5d865f7cc836a0f8dd4daaa36d8"}],"package_integrity":[{"filename":"chai-as-viem-1.1.3.tgz","hashes":{"sha1":"b00d66ee2dd7d36c6f8048c0a378da9e4b46985d","sha512_sri":"sha512-uFgjDoLlgU1Hl8yejrhW3ruNstb1AtLC/Ln8W21w+LX8Dog6d7uBgkmTGRTXGsYBOxf1nkE0yEGpLhm/7WDoPg=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-as-viem/v/1.1.3"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-88fm-v2m3-mx8x"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-020222","import_time":"2026-09-21T03:46:37.255716139Z","modified_time":"2026-09-21T03:29:31Z","sha256":"397fee7b80d73ee4c82892a746b2bab33a4cd2f71ef1ec4fe6fbbaa0bb270308","source":"amazon-inspector","versions":["1.1.3"]},{"id":"GHSA-88fm-v2m3-mx8x","import_time":"2026-09-22T18:31:21.169026623Z","modified_time":"2026-09-22T18:20:40Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"d564012d82f0d6a7013bb6036d716d5d581eee3dfbbc62f8ff6700701768eaf5","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}

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