Cursor 市场官方 Claude Code 扩展遭特洛伊木马化并植入持久化 SSH 后门
Ravie Lakshmanan 2026年10月30日
恶意软件 / 人工智能
网络安全研究人员披露,Anthropic 官方的 Claude Code 扩展的一个被特洛伊木马化的版本通过 Cursor Marketplace 作为合法更新进行分发,试图在受影响的系统上安装持久化 SSH 后门。
该恶意更新版本为 2.1.313,是在该扩展的合法发布者身份下分发的,促使 Cursor 暂时关闭其市场以移除受损的软件包。攻击者引入未经授权更新的确切方法仍不清楚。
Cursor 表示:“我们发现一起安全事件,影响了通过我们的 Cursor IDE 扩展市场访问的修改版 Claude Code VS Code 扩展,最多影响 5,000 名用户。”“该扩展的恶意版本并非由 Anthropic 开发。它不影响从 cursor[.]com/marketplace 下载的其他扩展、Grok Bot、Grok 或我们的其他 SpaceXSI 产品。”
然而,Cursor 声明称该恶意版本“并非由 Anthropic 开发”并未切中要害。攻击者以 Anthropic 合法的 Claude Code 扩展 ID(anthropic.claude-code)将其作为版本 2.1.313 分发,而不是作为一个单独的虚假扩展。
OpenSourceMalware 联合创始人 Jenn Gile 在与 The Hacker News 共享的声明中表示:“该软件包自称是 anthropic.claude-code 版本 2.1.313,但其主 JavaScript 包在合法扩展代码之前包含一个恶意的 66 行加载器。”
该恶意更新仅通过 Cursor 的市场分发,没有证据表明它到达了 Open VSX 或微软官方的 VS Code Marketplace。通过这两个市场安装 Claude Code 的用户据信未受此事件影响。
截至 2026 年 10 月 30 日,恶意版本已被移除,Anthropic 已向 Open VSX 和 Microsoft VS Code Marketplace 发布了版本 2.1.314。
该扩展旨在在 VS Code 启动后及其 webview 打开时激活,然后向用户的 "~/.ssh/authorized_keys" 文件添加一个由攻击者控制的密钥。该密钥被标记为 "svc-telemetry",试图使其看起来无害。
随后,它尝试通过 SSH 使受害者可在 Windows、Linux 和 macOS 上被访问,建立到 "134.209.82[.]225" 的反向隧道,以计划任务、crontab 和 LaunchAgent 的形式安装特定于平台的持久化机制,并通过未加密的 HTTP 请求将主机侦察数据发送到端口 8099 上的 "134.209.82[.]225:8099/beacon"。
SpaceXAI 拥有的公司在其对事件的分析中表示:“启用本地 SSH 服务需要管理员权限,而恶意扩展在大多数 macOS 和 Windows 主机上没有这些权限。”“在这些主机上该步骤失败,攻击者无法通过隧道登录。该扩展仍然添加攻击者的 SSH 密钥、安装持久化机制并向攻击者发送主机详细信息。无论何种情况,请遵循下面的补救步骤。”
收集的数据包括:
来自 api.ipify[.]org 的公共 IP 地址
主机名和本地用户名
操作系统和 CPU 架构
主目录和当前工作目录
git config --global user.email 中的全局 Git 电子邮件
最多 40 个包含 KEY、TOKEN、SECRET、PASS、AWS 或 GCP 的环境变量的名称
安全研究员 Paul McCarty 表示:“环境变量值不会直接放置在初始信标中。”“它们的名称仍然可以揭示配置了哪些云提供商、CI 系统和凭据类型。更重要的是,成功的 SSH 访问将使操作者能够直接检查账户。”
未观察到其他后续载荷。尽管如此,建立反向隧道为受害者SSH服务提供了一条路径,使攻击者能够发出命令或传输文件。
“该恶意软件被迅速下架,但任何将Claude Code实例设置为自动更新的用户都可能已下载并运行了该恶意软件,”Gile表示。
Cursor透露,此次事件影响了最多5,000名用户,这些用户在2026年10月29日太平洋时间凌晨2:27至下午1:35之间安装了恶意版本。该公司还表示,将直接联系受影响的用户。
建议在该时间段内安装受损扩展程序的用户隔离主机、移除未经授权的SSH密钥和持久化机制,并轮换凭据和会话。
此次披露发生在大约一周前,当时一名未知攻击者通过一个合法OVH贡献者(“HassenBF”)的GitHub账户上传了经过篡改的文件,该账户于2026年3月作为GlassWorm行动的一部分被劫持。攻击者用窃取秘密的恶意软件替换了OVHcloud官方CLI(“ovh/ovhcloud-cli”)五个已发布版本的发布二进制文件。
(本故事早期版本称Open VSX注册表上的扩展程序遭到破坏。此后,该事件已被追溯至Cursor VS Code Marketplace遭到入侵。)
觉得这篇文章有趣?请在Google News、Twitter和LinkedIn上关注我们,阅读我们发布的更多独家内容。
SHARE
Tweet
Share
Share
Share
⚡ 本周头条新闻
新的QPACK漏洞可导致HTTP/3服务器崩溃,引发高达4,000倍的内存放大
关键GitLab漏洞(CVSS 10.0)可能允许在12年发布的历史版本中进行未认证的远程代码执行
攻击者劫持超过300个Tor出口中继以拦截SSH连接
关键FortiSIEM漏洞获得公开利用概念验证,可实现未认证的远程代码执行
未修补的Broadcom Wi-Fi漏洞使范围内的攻击者能够在路由器上以root权限运行代码
黑客利用Plex2Shell漏洞安装加密货币矿工和Linux代理后门
Go发布紧急更新,阻止八个CA密钥,原因是不披露的安全问题
PHP2Shell:两个未修补的关键PHP远程代码执行漏洞(CVSS 9.2)触发紧急安全警报
加载更多 ▼
⭐ 精选资源
获取用于管理AI代理的五阶段身份成熟度路线图
尚无利用代码?预览验证CVE暴露的峰会演示
将您的AI风险优先级与1,600名首席信息安全官进行基准测试——下载2026年报告
下载2026年代理安全报告,获取五步风险降低框架
Official Claude Code Extension on Cursor Marketplace Trojanized with Persistent SSH Backdoor
Ravie LakshmananOct 30, 2026
Malware / Artificial Intelligence
Cybersecurity researchers have disclosed that a trojanized version of Anthropic's official Claude Code extension was distributed through the Cursor Marketplace as a legitimate update, attempting to install a persistent SSH backdoor on affected systems.
The malicious update, version 2.1.313, was distributed under the extension's legitimate publisher identity, prompting Cursor to temporarily shut down its marketplace to remove the compromised package. The exact method attackers used to introduce the unauthorized update remains unclear.
"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," Cursor said. "This malicious version of the extension was not developed by Anthropic. It does not impact other extensions downloaded from the cursor[.]com/marketplace, Grok Bot, Grok, or our other SpaceXSI product.
However, Cursor's statement that the malicious version "was not developed by Anthropic" misses the point. The attackers distributed it as version 2.1.313 under Anthropic's legitimate Claude Code extension ID (anthropic.claude-code), rather than as a separate fake extension.
"The package identifies itself as anthropic.claude-code version 2.1.313, but its main JavaScript bundle contains a malicious 66-line loader inserted before the legitimate extension code," Jenn Gile, co-founder of OpenSourceMalware, said in a statement shared with The Hacker News.
The malicious update was distributed only through Cursor's marketplace, with no evidence that it reached Open VSX or Microsoft's official VS Code Marketplace. Users who installed Claude Code through either of those marketplaces are not known to be affected by this incident.
As of October 30, 2026, the malicious version has been removed, and Anthropic has published version 2.1.314 to both Open VSX and Microsoft VS Code Marketplace.
The extension is designed to activate after VS Code startup and when its webview opens, then proceeds to add an attacker-controlled key to the user's "~/.ssh/authorized_keys" file. The key is labeled "svc-telemetry" in an attempt to make it appear harmless.
Subsequently, it attempts to make the victim reachable through SSH across Windows, Linux, and macOS, establishes a reverse tunnel to "134.209.82[.]225," installs platform-specific persistence in the form of a scheduled task, crontab, and LaunchAgent, and transmits host reconnaissance data to "134.209.82[.]225:8099/beacon" on port 8099 over an unencrypted HTTP request.
"Turning on the local SSH service requires admin rights, which the malicious extension does not have on most macOS and Windows hosts," the SpaceXAI-owned company said in its own analysis of the incident.
"On those hosts the step fails and the attacker could not have logged in through the tunnel. The extension still adds the attacker's SSH key, installs persistence, and sends host details to the attacker. Follow the remediation steps below regardless."
The collected data includes -
Public IP address from api.ipify[.]org
Hostname and local username
Operating system and CPU architecture
Home directory and current working directory
Global Git email from git config --global user.email
Names of up to 40 environment variables containing KEY, TOKEN, SECRET, PASS, AWS, or GCP
"Environment-variable values are not placed directly in the initial beacon," security researcher Paul McCarty said. "Their names can still reveal which cloud providers, CI systems, and credential types are configured. More importantly, successful SSH access would allow the operator to inspect the account directly."
No other follow-on payloads have been observed. That said, the establishment of a reverse tunnel provides a pathway to the victim's SSH service, allowing the operator to issue commands or transfer files.
"It was pulled very quickly, but anyone who has their Claude Code instance set to auto-update could have consumed the malware," Gile said.
Cursor has revealed that the incident has affected at most 5,000 users who installed the malicious version between about 2:27 a.m. and 1:35 p.m. PT on October 29, 2026. The company also said that it will be reaching out to impacted users directly.
Users who have installed the compromised extension during the window are advised to isolate the hosts, remove the unauthorized SSH key and persistence mechanisms, and rotate credentials and sessions.
The disclosure comes a little over a week after an unknown attacker replaced the release binaries of five already-published versions of OVHcloud's official CLI ("ovh/ovhcloud-cli") with a secret-stealing malware after uploading them through a GitHub account of a legitimate OVH contributor ("HassenBF") hijacked in March 2026 as part of the GlassWorm operation.
(An earlier version of the story stated that the extension on the Open VSX registry was compromised. The incident has since been traced back to a compromise of the Cursor VS Code Marketplace.)
Found this article interesting? Follow us on Google News, Twitter and LinkedIn to read more exclusive content we post.
SHARE
Tweet
Share
Share
Share
⚡ Top Stories This Week
New QPACK Flaws Can Crash HTTP/3 Servers, Trigger Up to 4,000-Fold Memory Amplification
Critical GitLab Flaw (CVSS 10.0) Could Allow Unauthenticated RCE Across 12 Years of Releases
Attackers Hijacked Over 300 Tor Exit Relays to Intercept SSH Connections
Critical FortiSIEM Flaw Gets Public Exploit PoC for Unauthenticated Remote Code Execution
Unpatched Broadcom Wi-Fi Flaw Lets Attackers in Range Run Code as Root on Routers
Hackers Exploit Plex2Shell Flaws to Install Crypto Miners and Linux Proxy Backdoor
Go Issues Emergency Update Blocking Eight CA Keys Over Undisclosed Security Concerns
PHP2Shell: Two Unpatched Critical PHP RCE Flaws (CVSS 9.2) Trigger Emergency Security Alert
LOAD MORE ▼
⭐ Featured Resources
Get the Five-Stage Identity Maturity Roadmap for Governing AI Agents
No Exploit Yet? Preview the Summit Demo on Validating CVE Exposure
Benchmark Your AI Risk Priorities Against 1,600 CISOs—Download the 2026 Report
Download the 2026 Agent Security Report for a Five-Step Risk Reduction Framework
首次收录 · 2026-10-31 · 9.31 分