VYPR
researchPublished Oct 30, 2026· Updated Nov 2, 2026· 9 sources

Malicious Claude Code Extension Delivers Persistent Remote Access to Developers

A compromised version of the 'anthropic.claude-code' extension on Open VSX installs an SSH backdoor, enabling attackers to gain persistent remote access to developer systems.

Researchers have uncovered a malicious version of the 'anthropic.claude-code' extension, specifically version 2.1.313, distributed via the Open VSX registry. This tampered extension, identified by OpenSourceMalware, poses a significant risk to developers by establishing a persistent SSH backdoor on their systems. The malicious code is embedded within the extension's JavaScript loader, which executes automatically when the extension is active, even without an active Claude conversation. This allows attackers to maintain a foothold on compromised machines.

The core of the attack involves the implantation of an Ed25519 public key, identified by the comment 'svc-telemetry,' into the ~/.ssh/authorized_keys file. This grants the attacker SSH access to the victim's system. The extension then attempts to establish a reverse tunnel to attacker-controlled infrastructure located at 134.209.82.225 on port 22. This tunnel, facilitated by tools like autossh or standard SSH, effectively routes traffic from the attacker's server directly to the victim's SSH service, bypassing typical network defenses.

To ensure persistence, the malware installs startup scripts tailored for different operating systems. On macOS, it utilizes a user-level LaunchAgent (com.apple.sysmond.plist) for continuous operation. For Linux systems, it adds an @reboot cron entry. The Windows variant attempts to create a SYSTEM-level startup task or a fallback script in the Startup folder. While these persistence mechanisms are implemented, their successful execution depends on the permissions available on the victim's system.

Beyond establishing remote access, the malicious extension also functions as an information-gathering tool. It collects system details such as the hostname, username, operating system, architecture, directory paths, Git email, and a list of up to 40 environment variables. This data is then exfiltrated via unencrypted HTTP requests to the attacker's server on port 8099, alongside the victim's public IP address. The collected information could be used for further targeted attacks or reconnaissance.

It is crucial to note that the discovered malicious artifact was found on Open VSX and does not indicate a compromise of Anthropic's official Visual Studio Marketplace release or their broader distribution channels. The exact method by which the extension package was altered remains unknown. However, the technique of injecting malicious code that runs during normal extension activity, rather than during installation, is a recurring theme observed in previous supply-chain attacks.

Security researchers advise defenders to meticulously inspect their authorized_keys files for the 'svc-telemetry' key, search for the specific persistence files mentioned, and monitor for unusual ssh or autossh processes utilizing reverse forwarding. Indicators of compromise, including file hashes for the altered JavaScript, have been published by OpenSourceMalware.

If an infection is suspected, immediate steps should include isolating the affected host, preserving forensic evidence, and blocking the attacker's IP address (134.209.82.225) on ports 22 and 8099. After evidence collection, persistence mechanisms should be removed, and any exposed credentials rotated from a clean device. Uninstalling the extension alone is insufficient; a thorough review of authentication, shell, editor, process, and network logs is recommended to determine if a full system rebuild is necessary to ensure security.

The attack vector was traced to a compromise of the Cursor Marketplace, which led the AI coding platform Cursor to temporarily disable its service to remove the malware. This incident underscores the significant supply-chain risks associated with AI development tools and the potential for malicious actors to leverage trusted platforms for distribution.

This new report from Help Net Security provides further technical details on the Claude Code extension backdoor, including how the malicious code injects an immediately invoked function expression (IIFE) into the extension's JavaScript bundle. It also elaborates on the persistence mechanisms employed across macOS, Linux, and Windows, and details the specific reconnaissance data exfiltrated to the attacker's server, such as environment variables that might contain credentials.

Anthropic has officially denied any compromise of its own systems, stating that the malicious Claude Code extension was uploaded to Cursor's marketplace by an unknown actor, not through a breach at Anthropic. The company clarified that only versions distributed through official Anthropic channels remain unaffected, and the incident specifically impacted Cursor users who downloaded the tampered extension.

The official Claude Code VS Code extension, distributed via the Cursor Marketplace, has been confirmed by Cursor to have been backdoored. This malicious extension, which granted attackers persistent SSH access to compromised systems, was downloaded by approximately 5,000 users. The compromised extension was specifically for the Cursor IDE, not the general VS Code marketplace.

This new report details a second, unrelated vulnerability in Cursor, discovered on the same day as the trojanized Claude Code extension incident. This separate exploit allows arbitrary code execution through Cursor's built-in browser, highlighting a broader pattern of security risks in AI-integrated development tools. While the Claude Code extension issue was resolved by taking the marketplace offline and rebuilding it, this browser vulnerability was quietly patched by Cursor on October 1st.

This new report from Microsoft Security details the specific attack chain employed by the malicious Claude Code extension, including host reconnaissance, SSH key installation, reverse SSH tunneling, and persistence mechanisms. It confirms that the malicious packages were never distributed via Microsoft Visual Studio Marketplace or npm, and that Anthropic's systems were not compromised, limiting the incident's scope to the Cursor marketplace.

Cursor has confirmed that malicious versions of the Anthropic.claude-code extension, specifically versions 2.1.312 and 2.1.313, were available on its marketplace for over 11 hours. The company stated that these packages were not developed by Anthropic and contained code designed to exfiltrate host data and attempt to install an SSH backdoor. While elevated privileges limited the backdoor's success on most systems, data collection and persistence mechanisms were deployed, and Cursor has since removed the malicious packages and disrupted the attacker's server.

The new article specifies that the malicious Claude Code extension was distributed via the Cursor VS Code Extension Marketplace, affecting versions 2.1.312 and 2.1.313 for approximately 11 hours. It also details that while the extension attempted to establish a reverse SSH tunnel, the step failed due to insufficient admin privileges on most macOS and Windows systems, preventing attackers from gaining access. Anthropic has since updated its legitimate extension to version 2.1.314, and Cursor has removed the malicious versions and reopened its marketplace after an investigation.

Synthesized by Vypr AI