Claude Code Extension Infected with SSH Backdoor: 5,000 Cursor Users Affected

Claude Code extension 2.1.313 was implanted with an SSH backdoor, listed for 11 hours and potentially affecting 5,000 developers.
Version 2.1.313 of the Claude Code extension in the Cursor extension marketplace was maliciously tampered with and implanted with an SSH backdoor, listed for about 11 hours and potentially affecting up to 5,000 developers. The attacker did not replace the entire extension but inserted loader code at the beginning of extension.js, which executes upon extension load, secretly enabling the SSH service, establishing a reverse tunnel, exfiltrating host information, and setting up auto-start on boot for persistence. Cursor confirmed the version was not an official Anthropic build and stated that SSH enablement failed on most Mac and Windows systems, but the related mechanisms were still installed, and merely uninstalling the extension is insufficient to remove them. The article provides a three-step troubleshooting method: checking the version, searching for keys tagged "SVC Telemetry" in authorized_keys, and checking auto-start items on each platform, and recommends running the removal script, changing all credentials, and ideally reinstalling the OS. The incident highlights the security risks of the third-party extension ecosystem.
According to disclosures from a YouTube channel, the Claude Code extension (version 2.1.313) in the Cursor editor was maliciously tampered with and implanted with an SSH backdoor, potentially affecting up to 5,000 developers. The malicious version was listed on the Cursor extension marketplace for approximately 11 hours. Cursor officially confirmed the incident and emphasized that this version was not an official Anthropic build.
Incident Overview: Extension Implanted with SSH Backdoor
The attacker did not replace the entire extension but instead preserved the original build, inserting only a loader code snippet at the beginning of the extension.js file.
As soon as the editor loads the extension, the loader executes immediately. It secretly enables the SSH service, establishes a reverse tunnel connection to an external server, sends host information, and sets up auto-start on boot, thereby achieving persistent control.
Cursor stated that on most Mac and Windows systems, the step to enable SSH failed, so the attacker was unable to successfully infiltrate via the tunnel. However, the SSH service and auto-start mechanism were still installed, and merely uninstalling the extension is not sufficient to remove the threat.
SSH reverse tunnel is a connection method actively initiated from the inside out: the infected machine acts as a client, actively connecting to an external server controlled by the attacker and opening a port on that server to forward traffic back to the internal host. Because the connection direction is outbound, it can typically bypass firewall restrictions on inbound ports and does not require the target machine to have a public IP. The attacker thereby gains a remotely accessible shell channel, maintaining access even when the target is behind NAT or a corporate intranet. Reverse tunnels are often used in conjunction with KeepAlive heartbeats and automatic reconnection to maintain long-term control; detection should focus on anomalous outbound SSH connections, unfamiliar remote addresses, and port 22 traffic not used for administrative purposes.
extension.js is the entry file for extensions in VS Code-based editors (Cursor is based on VS Code), specified by the main field in the extension manifest package.json. The editor loads and executes this file when activating the extension, making it the most ideal injection point for attackers: simply adding a few lines of loader code at the top of the file allows arbitrary logic to run before the extension's normal functionality starts, while the rest of the extension's code remains unchanged, making it difficult for users and routine code reviews to detect. This also explains why the attacker did not replace the entire extension package—preserving the original build maintains the extension's signature and functional behavior, reducing the probability of detection.
Scope of Impact and Official Response
According to Cursor's statement, the malicious version 2.1.313 was present on the extension marketplace for approximately 11 hours, and up to 5,000 users may have been affected. The version has now been taken down, and the latest clean version is 2.1.
As of the video's release, Anthropic had not issued any statement on the matter. Questions such as how the malicious version passed review and the identity of the attacker remain unclear.
How to Check and Remove the Threat
If you have ever installed the Claude Code extension, it is recommended to follow these steps to check:
Step 1: Check the Extension Version
Check the installed version of the Claude Code extension. If version 2.1.313 was ever installed, proceed with the subsequent checks.
Step 2: Check Authorized Keys
Look in the authorized_keys file for SSH keys tagged with "SVC Telemetry". If present, the system has been compromised.
authorized_keys is the authorization file used by OpenSSH for public key authentication, typically located at ~/.ssh/authorized_keys in the user's home directory (or /root/.ssh/authorized_keys for the root user). Each line in the file is a public key that permits passwordless login to the account, and may include restriction options such as command=, from=, and end-of-line comments. Once an attacker writes their own public key, they can repeatedly log in without knowing the password. Therefore, checks should focus on unfamiliar public keys, anomalous comment tags (such as "SVC Telemetry" in this case), and uncommon key types or lengths. Upon discovering suspicious entries, back up the file first, then delete the corresponding lines and restart the SSH service.
Step 3: Check Auto-Start Items
Look for anomalous auto-start tasks: on Mac, check LaunchAgents/LaunchDaemons; on Windows, check scheduled tasks or registry startup entries; on Linux, check crontab for reboot entries.
If signs of infection are found, run the removal script provided by Cursor, then change all passwords, tokens, and sessions from a clean device. The safest approach is to reinstall the operating system.
LaunchAgents and LaunchDaemons are the way macOS's launchd mechanism manages background programs and auto-start tasks. LaunchAgents run as the logged-in user and are stored in ~/Library/LaunchAgents or /Library/LaunchAgents; LaunchDaemons run as root at system startup and are stored in /Library/LaunchDaemons. Both are plist files that can specify program paths, runtime parameters, and trigger conditions (such as boot, scheduled time, or file changes). Malware often uses these for persistence, so when investigating, check whether these directories contain plist entries pointing to unfamiliar executables, disguised as system services, or with anomalous load timing.
Security Recommendations and Reflections
This incident highlights the security risks of the third-party extension ecosystem. Developers should regularly review installed extensions, pay attention to official security advisories, and follow the principle of least privilege. For sensitive projects, it is recommended to use extensions in isolated environments and enable multi-factor authentication.
Cursor has provided detailed detection and removal guidelines, which users can obtain through official channels. Staying vigilant and updating promptly are key to defending against such threats.
Related articles

Amodei Should Tear Down This Wall: Mandatory Public Deployment Is More Urgent Than Pausing AI
An AI commentator amends Dario Amodei's pacing proposal: models must be publicly deployed for 90 days before recursive self-improvement. The article analyzes the hidden risks of internal RSI, the alignment value of iterative deployment, and how mandatory public deployment breaks the winner-takes-all race logic.

Redis Launches Agent Memory Stack but Runs Into Identity Authentication Challenges
Redis launches Iris, an AI agent memory toolkit with a layered memory architecture, but Redis AI GM Simba Khadder admits agent authorization and identity authentication still lack industry standards, becoming a key bottleneck for memory stack deployment.

Perplexity Hit by Autonomous AI Hacker Attack: Open-Source Tool Cairn Attempted Token Theft
AI search engine Perplexity suffered an autonomous AI hacker attack using the open-source framework Cairn to attempt token theft. This article analyzes the incident details, Cairn's relationship to the Artex tool, and the implications of autonomous AI attacks for AI product security systems.