Trojanized Claude Code extension on Cursor's marketplace tried to install a persistent SSH backdoor on up to 5,000 users
A trojanized copy of Anthropic's official Claude Code extension was distributed through Cursor's extension marketplace on October 29, under Anthropic's own publisher identity, according to Cursor and security researchers at OpenSourceMalware. Versions 2.1.312 and 2.1.313 carried a malicious loader inserted ahead of the legitimate extension code. Cursor says at most 5,000 users installed the bad update between about 2:27 a.m. and 1:35 p.m. Pacific time, and it temporarily shut its marketplace down to remove the package.
The loader added an attacker-controlled SSH key labelled "svc-telemetry" to the user's authorized_keys file, tried to enable the local SSH service, opened a reverse tunnel to an attacker server, installed persistence (a LaunchAgent on macOS, a cron entry on Linux, a scheduled task on Windows) and sent host details — hostname, username, operating system, public IP and the names of credential-related environment variables — to that server. Cursor says errors in the code meant the SSH step failed on most macOS and Windows machines unless Cursor had been started with administrator rights, and the attacker server has since been taken offline. Uninstalling the extension does not remove the key or the persistence.
Anthropic says its own systems were not compromised and that the versions on its official channels, including the VS Code and Open VSX marketplaces, are unaffected; the current clean release is 2.1.314. Microsoft confirmed the malicious version never appeared on its Visual Studio Marketplace or in the npm package. How the attacker was able to publish under Anthropic's name on Cursor's marketplace is still not explained.
Update, November 14: Cursor's November 13 incident report answers how the attacker got in — it started at Fireworks. An attacker obtained an access key Cursor had issued to Fireworks, which Cursor says was exposed by Fireworks, and used it to copy data from a read-only storage bucket Cursor used to share data with the vendor. The bucket held limited, mostly-2025 coding-agent traces from sessions not in Privacy Mode: traces were exposed for fewer than 0.05% of users, and fewer than 0.01% of customers had API credentials exposed. A credential stolen from that data was then used on October 29 to place the tampered Claude Code builds directly on the cache serving Cursor's marketplace.
Cursor says the incident is contained — the last attacker activity it saw was on November 1, and it was blocked — and that it has moved all inference traffic off Fireworks, deactivated the key and cut off the vendor's access to the datasets it had shared. Fireworks' own bulletins, last updated November 9, do not mention Cursor.
Sources
- The Hacker News — Official Claude Code Extension on Cursor Marketplace Trojanized with Persistent SSH Backdoor
- Rescana — Trojanized Claude Code 2.1.312 and 2.1.313 in Cursor Marketplace Plants SSH Backdoor
- Cybernoz — Hackers Distribute Malicious Claude Code Extension on Cursor Marketplace
- Cursor — An update on our recent security incident (Nov 13)
- Unite.AI — Cursor traces breach to access key exposed by Fireworks AI (Nov 13)