←新闻详情

The Elec更新于 11月3日 11:18

伪装成 Claude Code 的恶意扩展在 Cursor 市场传播,或影响最多 5000 名开发者

Up to 5,000 Developers Infected by Malware on SpaceX-Owned Cursor Marketplace

AI 导读

10 月 29 日,伪装成 Anthropic Claude Code 扩展的恶意插件被上传至 Cursor 市场,以 Anthropic.claude-code v2.1.312 和 v2.1.313 版本名义列出约 11 小时,据 The Register 报道最多 5000 名开发者受影响。该插件会写入攻击者 SSH 公钥并通过 macOS LaunchAgents、Windows Task Scheduler 或 Linux Cron 实现重启后持久化,还收集主机名、用户名、Git 邮箱、公网 IP 及环境变量名称。Cursor 已下架恶意版本、暂停整个 VS Code 扩展市场并轮换密钥,Anthropic 称事件并非其系统或员工电脑被攻破所致。

推荐理由

AI 评分 77

事件披露了恶意扩展绕过市场审核的路径与持久化后门细节,对使用 AI 编码工具的开发者有直接参考价值。

主题

标签

正文

The malware, disguised as Anthropic’s Claude Code extension, was officially listed on Cursor’s marketplace and remained available for download for approximately half a day. Cursor has issued security guidance. (Source: Cursor)

PC본문_6월 Mouser (in Article)//

AD Manager | AD178089411676 //

// AD Manager | AD178089411676

A malicious extension disguised as Anthropic’s Claude Code was uploaded to the marketplace of artificial intelligence (AI) development tool Cursor on Oct. 29, local time, potentially infecting up to 5,000 developers. The extension was designed to install an SSH backdoor, prompting warnings for developers.

Cursor is a popular AI coding editor. In August 2026, SpaceX attracted attention by acquiring Cursor developer Anysphere for $60 billion. According to Stack Overflow’s 2026 Developer Survey, released in early October, Cursor accounted for 26% of the AI coding tools or AI agents used by surveyed developers.

According to Cursor, the malware masqueraded as updates to the official Claude Code extension for Microsoft’s Visual Studio Code (VS Code), under the versions Anthropic.claude-code v2.1.312 and Anthropic.claude-code v2.1.313. The malicious versions remained officially listed on the Cursor marketplace for approximately 11 hours before being discovered by security firm Phorion and subsequently removed. According to The Register, up to 5,000 developers were infected.

The malware contained a persistent SSH backdoor capable of operating across Windows, macOS and Linux. It collected information from users’ systems and attempted to establish reverse SSH tunnels. However, the scripts responsible for creating the SSH tunnels required administrator privileges on macOS and Windows. In most environments, the malware failed to obtain those privileges, preventing the connections from being established.

Anthropic engineer Felix Rieseberg said on X that the company is investigating the incident with Cursor, but that the breach did not result from the compromise of Anthropic’s systems or employees’ laptops.

Nevertheless, The Register reported that information already stolen had been transmitted to an attacker-controlled server, while mechanisms for inserting the attacker’s SSH key and maintaining malware execution after system reboots had been observed. Users who downloaded the extension therefore need to investigate and remove the threat regardless of whether the SSH tunnel was successfully established.

Cursor said it removed the malicious versions from its marketplace and blocked their distribution immediately after becoming aware of them. As a precaution, the company also temporarily suspended its entire VS Code extension marketplace. It subsequently examined other extensions for potential compromise, rotated its own keys and resumed service. Cursor added that it worked with the hosting provider of the attacker’s server to take the server offline.

According to Cursor, the malicious extension was designed to install a backdoor deep within the system immediately upon execution. Once launched, it added the attacker’s SSH public key to the user’s SSH authorized_keys file, registered hidden files through macOS LaunchAgents, Windows Task Scheduler or Linux Cron to execute malicious scripts after every reboot, and collected information including the hostname, username, operating system, working directory, configured Git email address and public IP address before transmitting it to the attacker’s server.

The malware also collected the names of environment variables. Such variables can contain API keys, authentication tokens and cloud account credentials. Cursor confirmed that environment variable names had been collected but said it could not determine whether the actual credential values stored in those variables had also been transmitted.

The possibility of subsequent access through the SSH backdoor cannot be ruled out. The Register warned that simply updating the extension to the latest version would not remove malicious scripts already installed on the system.

Cursor has published detailed response instructions and remediation scripts in an official advisory. It recommends rotating or revoking credentials and authenticated sessions that may have been accessible from infected systems, using a separate trusted device. Simply uninstalling the extension may not remove backdoors and persistence mechanisms that have already been installed.

Some industry observers raised the possibility that the malicious extension had resulted from a breach of Anthropic’s systems. Anthropic responded in an official statement that hackers had exploited permissions on the Cursor marketplace to upload counterfeit versions that Anthropic had neither created nor distributed.

Anthropic added that it was investigating the incident in cooperation with Cursor. The company said existing versions distributed through official channels remained safe and that the impact of the malware was limited to Cursor users.

However, neither Cursor nor Anthropic has yet disclosed specific details of how the malicious packages bypassed verification and were listed on the official marketplace.

Anthropic engineer Felix Rieseberg said on X that the company was investigating the incident with Cursor, but that the breach did not result from the compromise of Anthropic’s systems or employees’ laptops.

来源

The Elec