Trojanized Claude Code Extension 2.1.313 in Cursor's Marketplace Planted an SSH Key, a Reverse Tunnel and Persistence That Survives Uninstall
Trojanized Claude Code Extension 2.1.313 in Cursor's Marketplace Planted an SSH Key, a Reverse Tunnel and Persistence That Survives Uninstall is a critical-severity supply chain compromise issue in anthropic.claude-code, an IDE extension. Affected: anthropic.claude-code 2.1.313 installed in Cursor from Cursor's extension marketplace (29 October 2026). 2.1.312 and 2.1.314 are reported clean; the Microsoft Marketplace, Open VSX and npm builds were not affected. Updating the extension does not remove the backdoor.. Fixed in 2.1.314.
Is anthropic.claude-code running on your developers' machines? Anomity finds every device with this IDE extension installed, shows the version, and can block it by policy. Detect this across your developers' devices with Anomity →
Key facts
- ID
trojanized-claude-code-extension-2-1-313-in-cursor-s-marketplace- Severity
- critical
- Attack type
- Supply chain compromise
- Component
- Cursor · IDE extension
- Known exploited
- No known exploitation
- Published
- Last verified
What is this vulnerability?
On 29 October 2026, from about 09:27 to 20:35 UTC, Cursor's own extension marketplace served a tampered build of the official Claude Code for VS Code extension, anthropic.claude-code 2.1.313, under the legitimate extension ID; Cursor says at most 5,000 users installed it. A loader of about 66 lines prepended to the real extension code appends an Ed25519 key with the comment svc-telemetry to ~/.ssh/authorized_keys, tries to enable SSH remote login, opens a reverse SSH tunnel to 134.209.82.225 (reported on ports 22 and 8099), and sends host recon including the names, not the values, of up to 40 credential-like environment variables. It installs persistence that runs without the editor: on macOS a LaunchAgent ~/Library/LaunchAgents/com.apple.sysmond.plist (not an Apple component) with ~/.config/.smt and ~/.config/.smtk; on Windows a SysMon scheduled task and a sysmon.cmd Startup script; on Linux an @reboot cron entry. Early reports named Open VSX, but Anthropic says 2.1.313 was never published to Open VSX, the Visual Studio Marketplace or npm, and Microsoft confirmed its Marketplace and npm were clean, so VS Code installs from the Microsoft Marketplace are not affected. Anthropic says its own systems were not compromised and skipped to 2.1.314. Cursor removed the build, rebuilt its marketplace after rotating keys and had the C2 server taken offline. How the attacker got publishing access has not been disclosed.
Affected versions
| Affected | Fixed in |
|---|---|
anthropic.claude-code 2.1.313 installed in Cursor from Cursor's extension marketplace (29 October 2026). 2.1.312 and 2.1.314 are reported clean; the Microsoft Marketplace, Open VSX and npm builds were not affected. Updating the extension does not remove the backdoor. | 2.1.314 |
Am I affected by this vulnerability?
You are affected if you run anthropic.claude-code 2.1.313 installed in Cursor from Cursor's extension marketplace (29 October 2026). 2.1.312 and 2.1.314 are reported clean; the Microsoft Marketplace, Open VSX and npm builds were not affected. Updating the extension does not remove the backdoor.. Versions 2.1.314 and later include the fix.
How do I fix it?
Find every machine where Cursor has anthropic.claude-code 2.1.313 installed, or had it since 29 October, and treat it as compromised. Isolate it and preserve evidence first, then remove the svc-telemetry line from ~/.ssh/authorized_keys, the LaunchAgent, scheduled task, Startup script or cron entry and any running tunnel process, switch Remote Login back off, and update the extension to 2.1.314 or later; Cursor's published removal scripts do these steps and exit non-zero if anything remains. Block 134.209.82.225 at egress and search network logs for past connections. From a clean machine, rotate SSH keys, cloud CLI credentials, Git and registry tokens and AI provider keys the user could read, and review their cloud and Git audit logs from 29 October onward.
How do I find every machine running anthropic.claude-code?
Anomity inventories the AI agents, MCP servers, IDE extensions and skills on each developer device, so you can see which machines run anthropic.claude-code and which version, then enforce a policy on it.