Cursor 披露扩展市场遭植入:恶意 Claude Code 2.1.313 试图装 SSH 后门,最多约 5000 用户受影响
Cursor 称其 VS Code 扩展市场曾短暂分发非 Anthropic 出品的 Claude Code 2.1.313,该包试图植入持久 SSH 后门;公司已下架重建市场,并要求受影响用户按公告排查与升级到 2.1.314。
Cursor 于 2026 年 10 月 29 日发布安全通告:其自建 VS Code 扩展市场曾短暂提供被篡改的 Anthropic.claude-code 2.1.313。官方明确该恶意版本并非 Anthropic 开发,窗口约在当日太平洋时间 02:27 至 13:35,估计最多约 5000 名用户可能受影响,并将直接联系相关账号。
据通告,恶意代码会采集主机名、用户名、操作系统、架构、主目录、部分环境变量名、工作目录、Git 邮箱与公网 IP 等信息;尝试把攻击者 SSH 公钥写入 authorized_keys、启用本机 SSH,并建立反向隧道。Cursor 写道,开启本机 SSH 通常需要管理员权限,在多数 macOS/Windows 常规账户上该步骤会失败,因此攻击者往往无法经隧道登录;但密钥写入、持久化脚本与主机信息上报仍可能发生。公司已与托管方协作关闭攻击端服务器。
处置上,Cursor 立即下架该版本并阻断分发,出于谨慎整站关闭市场后轮换密钥、重建并重新上线;同时审计称未发现其他扩展被篡改。受影响用户被要求:检查 ~/.ssh/authorized_keys 是否出现标记为 svc-telemetry 的密钥;按公告脚本清理持久化与隧道;在可信设备上轮换凭据;并将 Claude Code for VS Code 升级到 2.1.314。官方提醒仅卸载扩展可能不够,因为载荷会留下独立持久化脚本。
对日常使用 Cursor 扩展市场与第三方编码代理扩展的团队,这是一起典型的开发者工具供应链事件:市场信任边界与扩展签名/来源核验需要纳入变更与终端安全流程。
Security incident: malicious Claude Code extension in Cursor marketplace
We identified a security incident affecting a modified Claude Code VS Code extension accessed through our Cursor IDE extension marketplace, impacting at most 5,000 users. This malicious version of the extension was not developed by Anthropic. It does not impact other extensions.
In response, we took down our extension marketplace this afternoon, worked with relevant providers to neutralize the malware, and have reinstated the marketplace after confirming there is no further risk.
If affected, please review instructions in this blog post to understand how to find the malicious package and establish a path to mitigate any potential impact. We are asking all customers update to Claude Code for VS Code version 2.1.314: https://t.co/ESqf7YEtHZ