THE SHORT VERSION
- A malicious build of Anthropic's Claude Code extension was distributed through Cursor's extension marketplace for about 11 hours on October 29, exposing up to 5,000 developers.10 月 29 日,一个被篡改的 Anthropic Claude Code 扩展通过 Cursor 扩展市场上架约 11 小时,最多波及 5000 名开发者。
- The malware added an SSH key labelled svc-telemetry, installed persistence and sent host reconnaissance data, but coding errors stopped it enabling SSH on many machines.该恶意版本会写入名为 svc-telemetry 的 SSH 密钥、安装持久化并回传主机侦察数据,但因代码错误,很多机器上的 SSH 并未被打开。
- Cursor pulled the extension, shut its marketplace to audit other packages and rotated access keys; Open VSX and Microsoft's marketplace were not affected.Cursor 已下架该扩展、暂时关闭整个市场审计并轮换访问密钥;Open VSX 与微软市场并非分发源。
Eleven hours on a marketplace在一个市场上停留了十一小时
A malicious version of Anthropic's Claude Code extension for Visual Studio Code was distributed through Cursor's extension marketplace for roughly 11 hours on October 29, according to BleepingComputer, which put the exposure at up to 5,000 developers. The package carried version number 2.1.313 and was available between about 2:27 a.m. and 1:35 p.m. Pacific Time.据BleepingComputer 报道,10 月 29 日,一个被篡改的 Anthropic Claude Code 扩展(面向 Visual Studio Code)通过 Cursor 扩展市场分发了约 11 小时,受影响开发者最多 5000 人。该包版本号为 2.1.313,可下载时间约为太平洋时间凌晨 2:27 至下午 1:35。
Cursor is an AI-powered code editor built from Microsoft's open-source Visual Studio Code, and it accepts VS Code extensions. That makes its marketplace a distribution channel for tools that developers install with the same trust they give the editor itself. Anthropic's Claude Code extension puts its coding assistant inside compatible editors, and anyone with auto-update enabled could have taken the malicious build without doing anything unusual.Cursor 是基于微软开源 Visual Studio Code 构建的 AI 代码编辑器,并接受 VS Code 扩展。这让它的市场成为开发者获取工具的渠道,而开发者对这些工具给予的信任,与对编辑器本身的信任相同。Anthropic 的 Claude Code 扩展把编程助手放进兼容编辑器里,任何开启自动更新的人,都不需要做任何异常操作就可能装上这个恶意版本。
It was not a fake extension它不是仿冒扩展
The important detail is that the package did not impersonate Anthropic with a lookalike name. The Hacker News reported that it was distributed under Anthropic's legitimate extension identifier, anthropic.claude-code, as version 2.1.313. Researchers at OpenSourceMalware told the outlet that the bundle contained a malicious 66-line loader inserted at the start of the extension's main JavaScript file, with the legitimate code otherwise unchanged.关键细节是:这个包并没有用相似名称冒充 Anthropic。The Hacker News 报道称,它以 Anthropic 合法的扩展标识 anthropic.claude-code、版本 2.1.313 分发。OpenSourceMalware 的研究人员对该媒体表示,包的 JavaScript 主文件开头被插入了一段 66 行的恶意加载器,其余合法代码未变。
Cursor said the malicious version was not developed by Anthropic, which is true and does not answer the interesting question. Cursor has not explained how attackers managed to publish an update under Anthropic's publisher identity inside its marketplace. BleepingComputer reported that Cursor says Anthropic did not develop the malicious package but has not explained how the compromised version was distributed under Anthropic's name.Cursor 表示这个恶意版本并非 Anthropic 开发。这句话是对的,却没有回答关键问题:攻击者究竟如何在 Cursor 市场里以 Anthropic 的发布者身份提交了一次更新。BleepingComputer 报道称,Cursor 只说明 Anthropic 未开发该恶意包,并未解释被篡改版本为何能以 Anthropic 之名分发。
What the malicious build did恶意版本做了什么
The payload activated after the editor started and its webview opened. It added an attacker-controlled key to the developer's ~/.ssh/authorized_keys file, labelling it svc-telemetry so it would look like ordinary monitoring, then tried to make the machine reachable over SSH and establish a reverse tunnel to a remote server. It installed persistence through a Windows scheduled task or startup script, a crontab entry, or a macOS LaunchAgent, and it retried the tunnel about once a minute.载荷在编辑器启动并打开其 webview 后激活。它把一个攻击者控制的密钥写入开发者的 ~/.ssh/authorized_keys,并标成 svc-telemetry 使其看起来像常规监控;随后尝试让机器可被 SSH 访问,并与远程服务器建立反向隧道。它通过 Windows 计划任务或启动脚本、crontab、或 macOS LaunchAgent 实现持久化,并大约每分钟重试一次隧道。
Even when the tunnel failed, the malware sent reconnaissance data to an attacker-controlled address, including the victim's username, hostname, public IP address, Git email address and the names of environment variables associated with sensitive credentials. BleepingComputer reported that the script does not directly steal credentials, which suggests the plan was to retrieve data by hand once access worked.即使隧道失败,恶意代码仍会把侦察数据发往攻击者控制的地址,包括用户名、主机名、公网 IP、Git 邮箱,以及与敏感凭据相关的环境变量名称。BleepingComputer 报道称该脚本并未直接窃取凭据,这说明其计划是一旦打通访问,再手工取数据。
Why the backdoor often did not work为什么后门多数没生效
Much of the attack failed for ordinary programming reasons. On macOS the malware checked whether Remote Login was enabled by running a system command without elevated privileges, so the command returned an administrator-access error instead of the SSH status, and the code that would have switched SSH on never ran. On Windows it tried to install and start the OpenSSH server through a Unix shell that standard Windows installations do not have.这次攻击的很大一部分败在普通的编程错误上。在 macOS 上,恶意代码用一条未提权的系统命令检查 Remote Login 是否开启,结果返回的是管理员权限错误,而不是 SSH 状态,于是那段本该打开 SSH 的代码从未执行。在 Windows 上,它试图通过一个标准 Windows 并不存在的 Unix shell 来安装并启动 OpenSSH 服务。
Because the malware only tried to enable SSH in one narrow condition, it left many machines with the key and the persistence but without a working tunnel. That is a smaller incident than the payload suggests and not a reassurance: the key, the persistence and the reconnaissance data still landed, and a machine that already had SSH enabled would have been reachable.由于恶意代码只在一个很窄的条件下尝试开启 SSH,很多机器最终留下了密钥与持久化,却没有可用的隧道。这使事件比载荷看起来要小,但并不令人安心:密钥、持久化和侦察数据都已落地,而本就开启 SSH 的机器是可被访问的。
What Cursor did, and what developers should checkCursor 做了什么,开发者该查什么
Cursor removed the malicious extension and temporarily shut down its entire marketplace to audit other packages and rotate access keys before reopening it. It also worked with the hosting provider to take the attacker's server offline, which cut both the reverse connections and the outbound reconnaissance. The company said its investigation found no evidence that other extension versions or its official distribution were affected.Cursor 下架了恶意扩展,并暂时关闭整个市场,以审计其他包、轮换访问密钥后重新开放。它还配合托管商把攻击者服务器下线,切断了反向连接与外发侦察。公司称内部调查未发现其他扩展版本或其官方分发受到影响。
Developers who installed the extension during the window should look for an SSH key labelled svc-telemetry in their authorized_keys file. BleepingComputer's remediation advice is to isolate affected machines, rotate accessible secrets, invalidate sessions and rebuild the environment from a known-good backup. Cursor said it would contact affected users directly, and the same outlet reported that earlier claims about npm, Open VSX and Microsoft's marketplace were later narrowed: Cursor was the only source distributing the malicious build. This site has covered a hardware hack that produced dangerous answers and Anthropic's three-tier cyber verification plan.在暴露窗口内安装过该扩展的开发者,应检查 authorized_keys 中是否存在名为 svc-telemetry 的 SSH 密钥。BleepingComputer 的处置建议是:隔离受影响机器、轮换可访问的密钥、使会话失效,并从可信备份重建环境。Cursor 表示会直接联系受影响用户;同一媒体还报道,早前关于 npm、Open VSX 与微软市场也受影响的说法后来被收窄:Cursor 是唯一的分发源。本站曾报道一起硬件被攻击后产生危险回答的事件与Anthropic 的三档网络安全验证计划。
What is established, and what is not哪些已经确定,哪些还没有
Established: a malicious build with version 2.1.313 was available on Cursor's marketplace for about 11 hours on October 29; it targeted up to 5,000 users; it added an SSH key, installed persistence and sent reconnaissance data; Cursor pulled it and shut the marketplace; the other major marketplaces were not the source. Not established: how the attackers published under Anthropic's publisher identity, whether Cursor's or Anthropic's systems were compromised to do it, and whether any attacker did get in through a machine that already ran SSH.已经确定的:版本 2.1.313 的恶意构建在 10 月 29 日于 Cursor 市场上架约 11 小时;最多针对 5000 名用户;它会写入 SSH 密钥、安装持久化并回传侦察数据;Cursor 已下架并关闭市场;其他主要市场并非分发源。尚未确定的:攻击者如何以 Anthropic 的发布者身份提交更新、是否为此攻破了 Cursor 或 Anthropic 的系统,以及是否有攻击者通过本就开启 SSH 的机器真正进入。
The lesson is about where trust sits in a modern editor. A plugin marketplace is a software supply chain with write access to developers' machines, and its review process is the only barrier between a legitimate publisher identity and a malicious update. This site's coverage of the Justice Department's questions about Nvidia's Hugging Face deal follows a different thread, but both stories turn on the same question: who controls a distribution point that other people's software depends on.教训在于现代编辑器里的信任位置。插件市场是一条对开发者机器拥有写权限的软件供应链,而它的审核流程,是合法发布者身份与恶意更新之间唯一的屏障。本站关于美国司法部就英伟达收购 Hugging Face 提出问询的报道走的是另一条线,但两件事都落在同一个问题上:谁控制着别人软件所依赖的分发入口。
Sources & reporting limits来源与核查范围
Follow Industry to find related stories on your next visit.关注产业动态,下次访问时阅读相关文章。



