After installing or updating Anthropic.claude-code 2.1.313 from the Cursor extension marketplace on October 29, developers who opened their computers as usual the next day should not uninstall the extension first, but check their authorized SSH public keys: if an unfamiliar key annotated as svc-telemetry appears, the machine has been compromised. Cursor confirmed that the malicious release was not developed by Anthropic and may have affected up to 5,000 users; although the attacker’s server has been taken down, the remaining scripts and credential risks still require manual remediation.

This is more like having the “door lock changed” because of an extension installation: the malware adds itself to the SSH trusted list and leaves a backdoor task running independently. Removing the extension only takes the handle off the door; the lock and keys may still remain on the system.
Incident

Malicious Claude Code Build Lingers on Cursor Marketplace for 11 Hours 8 Minutes

A package impersonating the official product remained available in the extension marketplace for 11 hours. It did not contain Claude Code code.

On October 29, 2026, Cursor discovered that Anthropic.claude-code 2.1.313 in its VS Code extension marketplace had been maliciously modified. The package was not developed by Anthropic but was listed under the Claude Code name.

It remained downloadable from 2:27 to 13:35 Pacific Time; Anthropic estimates that as many as 5,000 users were affected and will contact them directly.

Developers who installed or updated this specific version should investigate their systems. The official investigation found no evidence that any other versions or Claude Code's official distribution channels were affected.

2.1.313Tampered extension package version
11 hours 8 minutesAvailability window for the malicious build
Up to 5,000Official estimate of affected users

The malicious activity went beyond the extension interface. Once executed, it collected hostnames, usernames, operating systems, architectures, home directory paths, environment variable names, working directories, Git email addresses, and public IP addresses, then attempted to establish a backdoor capable of persisting independently on the machine. Users still saw the familiar Claude Code extension entry point, but the backdoor had already reached the host level.

Cursor promptly removed the version and blocked further distribution, then temporarily shut down the entire extension marketplace. After reviewing access records, the company confirmed that no other extensions had been tampered with, rotated its keys, rebuilt the marketplace, and restored service. Cursor also contacted the cloud provider hosting the attacker's servers, resulting in the servers being taken offline.

With the servers offline, affected hosts may still not be clean. The official team has not released measured results on the number of infected hosts. The figure of "up to 5,000" is its estimate of affected users, not a precise number independently verified through third-party retesting.

Why It Matters

Backdoors Can Remain After the Extension Is Removed

Malicious code can write an attacker-controlled public key into authorized_keys, attempt to establish a reverse SSH tunnel, and leave behind background scripts that run independently. Even after the extension is removed, these entry points may remain active.

According to Cursor's security advisory, the malicious extension collects the hostname, username, system and architecture, home directory path, environment variable names, working directory, configured Git email address, and public IP address. It then sends this information via HTTP POST (a request method for submitting data to a server)to a specified address and port. This information can help attackers identify a target host and reveals identity clues from the code development environment.

How is the backdoor established? Start with SSH. An SSH (a protocol for remote login and secure data transfer)public key is like a lock handed to the server. If an attacker holds the corresponding private key, they can enter the host whenever login is permitted.

The malicious code appends an attacker-controlled public key to authorized_keys (a file specifying which keys may log in to the machine)and labels the key as svc-telemetry. The name is easy to blend into legitimate configuration, and the word “ssh” alone may not trigger any suspicion.

After writing the public key, the code also attempts to start the local SSH service and establish a reverse SSH tunnel. A reverse tunnel can be understood as the host proactively connecting to a remote server and then using that channel to send commands back to the local machine; it is often used to bypass restrictions on inbound connections. The attack chain thus prepares both login credentials and a remote-control channel, rather than merely stealing a set of host details.

Whether the tunnel can be established depends on whether a macOS LaunchAgent (a persistent background task in macOS)or a Windows scheduled task can be successfully installed.

Even if the tunnel fails to connect, the attack chain does not stop there. Cursor explicitly stated in its advisory that the malicious extension would still add the attacker's public key, install persistence mechanisms, and transmit host information. The tunnel is one door, and the public key is another key. Even if the door remains closed, the key and the script left outside it are still there.

The investigation should therefore focus not only on whether the extension is missing from the extension list, but also on whether the host contains independently running persistence scripts, unauthorized public keys, or background tasks. Cursor later said that the attacker’s server had been taken down, meaning that reverse connections and host-information reporting are currently ineffective. However, this does not replace the need to investigate, clean, and rotate credentials on affected hosts.

The sections below break down how the mechanism is deployed, which traces can confirm that a machine was affected, and what steps to take for cleanup after removal.