Cursor, the AI coding tool owned by SpaceX, said on Friday that a maliciously modified version of Anthropic's Claude Code extension was distributed through its extension marketplace on Thursday, affecting at most 5,000 users.

The tampered build, version 2.1.313 of the extension published under Anthropic's legitimate publisher identity, was live for about 11 hours, from around 2:27 a.m. to 1:35 p.m. Pacific Time on October 29. Cursor stressed that the malicious version was not developed by Anthropic, and said it has since been removed and the marketplace rebuilt.

The incident is a reminder of how much trust developers place in the extension marketplaces built into their editors, where a single compromised update can reach thousands of machines before anyone notices.

What the tampered version did

According to security researchers, the package identified itself as the legitimate anthropic.claude-code extension, but its main JavaScript bundle carried a malicious 66-line loader inserted before the real extension code. That code collected host details including the hostname, username, operating system, architecture, home directory, environment variable names, working directories, Git email and public IP address.

It then attempted to add an attacker-controlled SSH key, labelled svc-telemetry, to the user's authorized_keys file, enable the local SSH service and open a reverse SSH tunnel back to the attacker. Cursor said a key step in that chain would have failed on most machines, because enabling SSH requires administrator rights that the extension does not normally hold on macOS and Windows.

Researchers warned, however, that simply uninstalling the extension does not remove the backdoor, since background persistence scripts retry the tunnel roughly every 60 seconds. How the modified build reached the marketplace is not yet established: one research firm traced it to Open VSX, the open marketplace that Cursor mirrors, while another account says it sat in Cursor's own marketplace instead.

How Cursor responded

Upon detection, Cursor removed the malicious version and blocked further distribution, then shut down its entire extension marketplace as a precaution while it audited access and confirmed that no other extensions had been tampered with.

It rotated its keys, rebuilt the marketplace and brought it back online after confirming there was no further risk. The company also worked with the cloud provider hosting the attacker's server to take it offline, so the reverse tunnel and the host-detail reports no longer function.

Cursor said the incident did not affect other extensions downloaded from its marketplace, nor Grok Bot, Grok or its other SpaceX products, and that it will contact affected users directly. Anthropic has published a clean version, 2.1.314, to both Open VSX and Microsoft's Visual Studio Marketplace, where no malicious version has been reported.

What affected users should do

Only users who installed or updated to version 2.1.313 on October 29 are affected. Cursor is asking all customers to update to Claude Code for VS Code version 2.1.314.

Users should also check their SSH authorized_keys file for an entry labelled svc-telemetry, run Cursor's official check and remediation scripts, isolate any affected system, and rotate credentials accessible from those machines from a clean device.

The episode lands as AI coding assistants become central to software development, and as the supply chain behind them, from marketplaces to mirrored packages, becomes a target in its own right.