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

目标: 1000 元 · 已筹: 1359 元

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

clsx-js

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

Summary

Malicious code in clsx-js (npm)

凭据/密钥窃取安装阶段执行
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
6
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmclsx-js*
npmclsx-js1.0.3
npmclsx-js1.0.4
npmclsx-js1.0.5
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-06-09T15:24:28Z","published":"2026-05-19T19:05:59Z","schema_version":"1.7.4","id":"MAL-2026-4531","aliases":["GHSA-8jmh-pvvx-wjrf"],"summary":"Malicious code in clsx-js (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (23e4e85f63d161234d84c774fdff696827934a27282be2ce9ff362a756246ee6)\nOn `npm install`, dist/postinstall.js base64-decodes the URL https://api.npoint.io/984b75c022a70cf00c39, fetches JSON from this anonymous mutable JSON-hosting service via axios, and pipes the response's `data.content` into a detached `node` child process's stdin for execution. The fetch has no version pin, no hash/signature verification, and the source is operator-mutable — the attacker can swap the executed payload at any time. The package additionally typosquats the widely-used `clsx` utility (by Luke Edwards): name is a one-token edit, and the description, author name, email, and homepage are copied verbatim from the legitimate `clsx` to impersonate the upstream maintainer. The genuine `clsx` ships no postinstall; this fork adds one whose only purpose is the remote-code dropper. A malformed `Dependencies` (capital-D) field also lists `child_process`, a known squat name. Installing this package on any machine results in arbitrary attacker-controlled code execution under the installer's user account.\n\n## Source: ghsa-malware (64650ce568f6dcb32276c86bc8e12ed0ea072a19425670e47310e7f4b3b01715)\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-js"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["1.0.4","1.0.3","1.0.5"],"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"},{"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":"dist/postinstall.js","sha256":"5f56892ba3e5445aeef5969d124d114477512fefd77a309082e3d77381c03d00","tlsh":"17e0e52f723a67792f7009c4993296374d12d021f2c2e1e0a95d44576e87746450bfd8"},{"path":"package.json","sha256":"f26866b6014efa39781457ef33410973c3129aae5f3356dd8cd7a4bd4c9b75f8","tlsh":"8b21f328d4a44d6322da66e9a82e4157e960090b4b587e2833de416c8f4d69f90ff3de"}],"package_integrity":[{"filename":"clsx-js-1.0.4.tgz","hashes":{"sha1":"75b0b4f73ec69708208258980071807772ecfd84","sha512_sri":"sha512-Uff8NiMf4/IPKA5kXpZxR6TUoa56QOrfT65DUzL/taNBgsrwD97tN1/YZV7tPr9sHlz1AiBhtPN+p3RiT3bTxQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/clsx-js/v/1.0.4"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/clsx-js/v/1.0.3"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/clsx-js/v/1.0.5"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-8jmh-pvvx-wjrf"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["actran@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"23e4e85f63d161234d84c774fdff696827934a27282be2ce9ff362a756246ee6","import_time":"2026-05-26T05:51:07.855735683Z","id":"IN-MAL-2026-003696","modified_time":"2026-05-21T01:34:43Z","versions":["1.0.4"]},{"source":"amazon-inspector","sha256":"2bc88378968921e5e583cd044040b7ac4c6a516c16741aa082d8e080c18329c0","import_time":"2026-05-26T05:50:17.815063977Z","id":"IN-MAL-2026-003252","modified_time":"2026-05-19T19:05:59Z","versions":["1.0.3"]},{"source":"amazon-inspector","sha256":"e280d8130a74a6db6f6960780c8e181e1abfcc2c759d9c31a3d987fa282d27bf","import_time":"2026-05-26T05:51:07.639262727Z","id":"IN-MAL-2026-003694","modified_time":"2026-05-21T01:33:56Z","versions":["1.0.5"]},{"source":"ghsa-malware","sha256":"64650ce568f6dcb32276c86bc8e12ed0ea072a19425670e47310e7f4b3b01715","import_time":"2026-06-09T15:22:39.843009832Z","id":"GHSA-8jmh-pvvx-wjrf","modified_time":"2026-06-09T14:47:43Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}]}}

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