Cursor marketplace briefly shipped malicious Anthropic.claude-code 2.1.312 and 2.1.313
Brief
Malicious builds of Anthropic's Claude Code extension were distributed through the Cursor VS Code Extension Marketplace for about 11 hours on October 29, 2026, attempting to install a persistent SSH backdoor.
What happened
- Affected package: Anthropic.claude-code versions 2.1.312 and 2.1.313 for Windows and macOS; these versions were not developed by Anthropic.
- Window: roughly 2:27am PT to 1:35pm PT on October 29, 2026.
- The extension collected hostname, username, OS, architecture, home directory path, environment variable names, working directories, configured Git email and public IP, then attempted to add an attacker SSH key (svc-telemetry) to authorized_keys, enable local SSH and open a reverse SSH tunnel.
- Persistence: LaunchAgent on macOS or a scheduled task attempting to run as SYSTEM with a Startup-script fallback on Windows; scripts retried the tunnel about every 60 seconds.
- Enabling local SSH needs admin rights the extension usually lacks, so the tunnel step would fail on most hosts; the attacker server has been taken offline, so the reverse shell and host-detail POST no longer function.
What Cursor did
- Removed the malicious version immediately, blocked further distribution, and shut down the marketplace out of caution.
- Audited access and confirmed no other extensions were tampered with.
- Rotated keys, rebuilt the marketplace, and brought it back online.
- Worked with the hosting provider to take the malicious server offline.
What you should do
- If you installed or updated to 2.1.312 or 2.1.313 from the Cursor marketplace on macOS or Windows during the window, run the validation script and search endpoint, network and extension-installation telemetry for the indicators.
- Isolate hosts showing payload execution or backdoor installation; remove the unauthorized SSH key, persistence mechanisms and tunnel processes, and assess whether the host should be rebuilt.
- Uninstalling the extension may not be enough — the payload drops standalone persistence scripts that keep running.
- Rotate credentials and sessions reachable from affected hosts from a trusted system.
Detection and remediation
- macOS check: grep -qs svc-telemetry ~/.ssh/authorized_keys && echo "svc-telemetry key found" || echo "No key found; machine not impacted".
- Windows check: PowerShell search of $HOME\.ssh\authorized_keys and C:\ProgramData\ssh\administrators_authorized_keys for svc-telemetry.
- Remediation: download remediate-macos.sh and run as the affected user (not root), or remediate-windows.ps1 from an Administrator PowerShell.
- IOC examples: attacker endpoint 134.209.82.225, beacon port 8099, payload SHA-256 ecb58cb29078d9646ad1dcdbe51526f2d9cfea06be5fb2ab183e8ecc3ab6bf15, key comment svc-telemetry, macOS plist com.apple.sysmond.plist, Windows scheduled task SysMon.
- Questions can be sent to security@cursor.com.
Generated by AI from the original article. Check the source for full details.