Malicious Claude Code Extension Planted SSH Backdoor on Up to 5,000 Cursor Users

6 Sources

Share

A tampered version of Anthropic's Claude Code extension infiltrated Cursor's marketplace for 11 hours, exposing up to 5,000 developers to malware designed to install persistent SSH backdoors. While coding errors in the malware prevented most remote access attempts, the attack highlights growing vulnerabilities in AI-powered development tools and extension marketplaces.

Malicious Claude Code Extension Exposed Thousands of Developers

A compromised version of Anthropic's Claude Code extension infiltrated the Cursor marketplace for approximately 11 hours on October 29, exposing up to 5,000 developers to malware designed to install a persistent SSH backdoor

1

4

. The malicious versions, identified as 2.1.312 and 2.1.313, were available between 2:27 a.m. and 1:35 p.m. Pacific Time

2

. Cursor, the AI-powered code editor owned by SpaceX, immediately removed the compromised extension and temporarily shut down its entire marketplace to audit other extensions and rotate all access keys

4

.

Source: BleepingComputer

Source: BleepingComputer

Security firm Phorion first detected the supply chain attack after identifying the malicious extension on a customer's Mac

1

. The compromised VS Code extension contained a 66-line malicious JavaScript loader inserted at the beginning of the extension.js file, leaving the legitimate extension code otherwise unchanged

3

. This malicious code executed automatically when the extension loaded, requiring no user interaction with Claude Code

2

.

SSH Backdoor Installation Attempted Across Multiple Platforms

The malicious Claude Code extension performed several dangerous actions on compromised systems. It added an attacker-controlled SSH key labeled "svc-telemetry" to the user's authorized_keys file, attempting to disguise itself as a harmless telemetry service

3

4

. The malware then attempted to enable local SSH access and establish a reverse tunnel to a command-and-control server at 134.209.82[.]225

2

.

To maintain persistent remote access, the extension installed platform-specific persistence mechanisms including scheduled tasks on Windows, crontab entries on Linux, and LaunchAgent configurations on macOS

3

. Microsoft Threat Intelligence analysis revealed the malware collected extensive host reconnaissance data, including machine names, usernames, operating systems, working directories, Git email addresses, and public IP addresses from api.ipify[.]org

3

. The malware also identified names of up to 40 environment variables containing terms like KEY, TOKEN, SECRET, PASS, AWS, or GCP, though it collected only variable names rather than their actual values

2

3

.

Coding Errors Limited Attack Success

Despite the sophisticated nature of the supply chain attack, coding errors in the malware's SSH setup routines likely prevented attackers from gaining remote access to most affected Windows and macOS systems

4

. Phorion researchers discovered critical flaws that undermined the attack's effectiveness. On macOS, the malware attempted to check whether Remote Login was enabled using the systemsetup -getremotelogin command without elevated privileges, causing it to receive an administrator-access error instead of the SSH service status

4

.

Source: The Next Web

Source: The Next Web

On Windows systems, the malware tried to install and start the OpenSSH server through PowerShell but attempted to do so via /bin/sh, a Unix shell unavailable on standard Windows installations

4

. Calum Hall, co-founder and CEO of Phorion, emphasized the fortunate nature of these errors: "Everyone was so lucky here, this was potentially a really dangerous foothold for an attacker"

1

. However, even with failed SSH activation, the malware still installed its SSH keys, established persistence mechanisms, and transmitted reconnaissance data to the attacker's server

4

.

Anthropic Confirms No System Breach

Anthropicquickly clarified that the incident did not involve a compromise of its own systems or employee laptops

1

. Felix Rieseberg, a member of Anthropic's technical staff, stated on X: "A malicious actor used access to Cursor's marketplace to publish a tampered copy of the Claude Code extension, which we didn't build or publish"

1

. David Dworken from Anthropic's security team reinforced this position, confirming that Anthropic was not involved with building, publishing, or hosting the malicious extension

1

.

However, security researcher Luke Roberts from Phorion told Ars Technica that the malicious version was posted to the official Anthropic account on the Cursor marketplace, effectively superseding the legitimate version 2.1.312

5

. Neither Anthropic nor Cursor has explained how the attacker gained access to publish under Anthropic's name

5

. Cursor stated in its security notice that "these malicious versions of the extension were not developed by Anthropic" but did not respond to requests for comment about whether the incident resulted from a breach at Cursor

1

.

Remediation Requires More Than Extension Removal

Security experts warn that simply uninstalling the compromised VS Code extension may not fully remediate affected systems. Steve Povolny, vice president of AI strategy and security research at Exabeam, explained: "Removing the extension only sends the visitor away while the spare key stays on the hook"

2

. The malware placed scripts outside the extension's installation directory, requiring manual removal of persistence mechanisms

2

.

Cursor published detailed remediation steps advising affected users to isolate compromised hosts, remove the unauthorized SSH key from authorized_keys files, eliminate persistence mechanisms, and rotate credentials and sessions

3

. Phorion advised checking for the SSH key's fingerprint rather than relying solely on the "svc-telemetry" comment attached to it

2

. Povolny recommended reviewing logs for logins using unfamiliar keys, noting that developers often have access to source code, cloud accounts, and production systems, making a compromised workstation a potential route to other enterprise resources

2

.

Supply Chain Risks in AI-Powered Development Tools

This incident highlights growing vulnerabilities in AI tooling supply chains and AI-powered development tools. Yash Kadakia, founder and CTO of Security Brigade, emphasized that enterprises should treat extension marketplaces as part of the software supply chain: "When malicious code can reach developers through what appears to be a legitimate, routine update," organizations face significant risk

2

. The attack comes shortly after an unknown attacker replaced release binaries of OVHcloud's official CLI with secret-stealing malware through a hijacked GitHub account

3

.

Source: Wired

Source: Wired

Extensions in the Cursor marketplace update automatically by default, meaning developers who had the Claude Code extension installed would have received the malicious version without any action on their part

5

. Cursor worked with the hosting provider to take the attacker's server offline, disrupting both the reverse SSH connections and the transmission of reconnaissance data

4

. Anthropic has since published a clean version 2.1.314 to both Open VSX and Microsoft VS Code Marketplace

3

. Organizations using AI ecosystems should monitor credential rotation practices, audit extension permissions, and implement additional security controls around developer tooling to protect against similar attacks targeting the expanding surface area of AI-powered development environments.

© 2026 TheOutpost.AI All rights reserved