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

目标: 1000 元 · 已筹: 1359 元

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

clsx-tailwind

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

Summary

Malicious code in clsx-tailwind (npm)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
3
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmclsx-tailwind*
npmclsx-tailwind1.0.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-06-12T19:46:13Z","published":"2026-06-11T09:35:12Z","schema_version":"1.7.4","id":"MAL-2026-5625","aliases":["GHSA-373j-j35f-q4gx"],"summary":"Malicious code in clsx-tailwind (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (6e1efb9d7593baede89024227d99cc6ca9fc0c86e1f0faf8dd78560174cf1b39)\nPackage advertises a trivial Tailwind class-name merger (a 5-line `cn()` helper) but its main entry `dist/index.js` unconditionally requires `dist/lib/lib.min.js`, which runs at import time. That file (a) assigns `require` and `module` onto the global object so subsequently-evaluated code can resolve modules without containing literal `require`/`module` tokens, (b) reconstructs method names and an executable body via a hand-rolled string-shuffle decoder (`YWG`), and (c) resolves `YWG[OSN]` to `Function.constructor` and immediately invokes it on the decoded blob, evaluating obfuscated code on every consumer's `require('clsx-tailwind')`. The combination of heavy string-shuffle obfuscation, dynamic `Function()` evaluation of the decoded output, leaking `require`/`module` to the global namespace, and a payload entirely unrelated to the package's advertised purpose is the canonical malicious-payload shape. Any process that imports this package executes attacker-controlled code with the privileges of the host application.\n\n## Source: ghsa-malware (25973e59fcbbe092c0fd9d1f868fb37c1b1492fb830a534806e51bbbc795935c)\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":"clsx-tailwind"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.1"],"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":{"domains":["api.trongrid.io","bsc-dataseed.binance.org","fullnode.mainnet.aptoslabs.com","bootstrap.pypa.io"],"evidence_files":[{"path":"dist/lib/lib.min.js","sha256":"294f1d358f4ec049372757af801789c84c43ff2d758f55a6eeadcab3a6fb05f5","tlsh":"9c915dd96395f9897d8041744387509f1c9405f3947ff2cc498e96ea9e4221a0bbcaff"}]}}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-373j-j35f-q4gx"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/clsx-tailwind/v/1.0.1"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"ghsa-malware","sha256":"25973e59fcbbe092c0fd9d1f868fb37c1b1492fb830a534806e51bbbc795935c","import_time":"2026-06-11T09:45:30.593439385Z","id":"GHSA-373j-j35f-q4gx","modified_time":"2026-06-11T09:35:22Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"amazon-inspector","sha256":"6e1efb9d7593baede89024227d99cc6ca9fc0c86e1f0faf8dd78560174cf1b39","import_time":"2026-06-12T19:44:13.325371504Z","id":"IN-MAL-2026-006147","modified_time":"2026-06-12T19:09:58Z","versions":["1.0.1"]},{"source":"amazon-inspector","sha256":"f2be93a4dfc80ed7a86a957a9b0ef86e8f9b8c62a80b130c15c58d8aed34f75f","import_time":"2026-06-12T19:44:13.410890181Z","id":"IN-MAL-2026-006148","modified_time":"2026-06-12T19:09:58Z","versions":["1.0.1"]}]}}

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