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

目标: 1000 元 · 已筹: 1359 元

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

chai-as-tuned

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

Summary

Malicious code in chai-as-tuned (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
5
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmchai-as-tuned*
npmchai-as-tuned7.2.2
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-05-29T22:45:20Z","published":"2026-05-21T18:09:55Z","schema_version":"1.7.4","id":"MAL-2026-4513","aliases":["GHSA-2f37-mh3q-7394"],"summary":"Malicious code in chai-as-tuned (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (f7e00f81e117716cfd7fd3565cf8b04073cd494a6da2c23749669133806a7473)\nPackage name `chai-as-tuned` impersonates `chai-as-promised` and ships a README copy-pasted from the unrelated pino project (npm/CI badges point at pinojs/pino). The advertised middleware in `index.js` spawns `lib/initializeCaller.js` as a detached node process whenever the exported function is invoked. That script constructs a fake local `process` object whose `DEV_API_KEY` is a base64 literal decoding to `https://aqua-margit-84.tiiny.site/index.json` (tiiny.site is an anonymous static-hosting service), GETs the JSON via axios, and passes the `response.cookie` field to `new Function.constructor('require', response)(require)` — executing attacker-controlled JavaScript with full Node privileges and access to the host's `require`. The combination of name-confusion, copied README, base64-hidden C2 URL, `Function.constructor` indirection to defeat static review, and remote-fetch-and-eval is an unambiguous supply-chain attack: any consumer who follows the README and uses the main export will execute whatever code the attacker serves at runtime.\n\n## Source: ghsa-malware (456afd075e2df98b9a07a876eb8b1e26cff0afe3f517d7b0f226f654e3e22bed)\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":{"ecosystem":"npm","name":"chai-as-tuned"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["7.2.2"],"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":"c228e2f20e0dec3cf4e151033fdb13715c2f43975ee5ccf58caf059e104a5266","tlsh":"6911cc8d61fd201c056652e6b62f18126022e4673d86d4e47acc83471fe526fbd536df"},{"path":"package.json","sha256":"8e0be12f9b53dca3836302ddd139ae33384a8690c6bfbacd350e2f0243b519bd","tlsh":"75019c20ce789e2304ed25824c2a064376618c539928fc1932db512c0f9d5ff05bf21e"}],"package_integrity":[{"filename":"chai-as-tuned-7.2.2.tgz","hashes":{"sha1":"4ce120c4c0ce3e76dc1b86e55adef11dda127499","sha512_sri":"sha512-YcB6WVzcYRq6IEaW1ltqGTSHY8lcuVD4DRNmViwxBQjOvgXJy/idV2N760oeqaw9hbhu5/pDkfa+ManvSxNsXQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/chai-as-tuned/v/7.2.2"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-2f37-mh3q-7394"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["actran@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"f7e00f81e117716cfd7fd3565cf8b04073cd494a6da2c23749669133806a7473","import_time":"2026-05-26T05:51:40.378097795Z","id":"IN-MAL-2026-003965","modified_time":"2026-05-21T18:09:55Z","versions":["7.2.2"]},{"source":"ghsa-malware","sha256":"456afd075e2df98b9a07a876eb8b1e26cff0afe3f517d7b0f226f654e3e22bed","import_time":"2026-05-29T22:44:05.948831068Z","id":"GHSA-2f37-mh3q-7394","modified_time":"2026-05-29T22:09:20Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}]}}

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