Lobsters | 📄 原文链接 | 2026-10-31 收录

Claude Code 官方扩展被植入后门:Cursor 市场版本自带 SSH 持久化

来源:cyberplace.social — 2026-10-30

📋 概述

Phorion 在 Cursor 市场上架的官方 Claude Code for VS Code 扩展包(2.1.313)里发现后门:压缩后的 extension.js 顶部被塞进一段立即执行函数,Node 一加载就运行,向 macOS、Linux、Windows 三类系统投放持久化的 SSH 后门。Cursor 已下架该版本,npm 与 VS Code 市场也同步撤回了 2.1.313。有意思的是恶意代码在 macOS 上有个低级错误:它用 systemsetup -getremotelogin 判断远程登录状态,普通用户执行只会报权限错误并返回状态 0,脚本比对的却是 Off,于是开启 SSH 那步被直接跳过——但密钥投放和持久化照做不误。

🔑 核心要点

💡 金句

The goal of this payload is long-term interactive access, and whilst the SSH backdoor bug minimises impact on macOS, the malware is still a significant threat that installs persistence and beacons host reconnaissance back to the operator.
← 返回 Lobsters 首页