Cursor disclosed that two modified builds of the Anthropic.claude-code extension, versioned 2.1.312 and 2.1.313, were distributed through its VS Code Extension Marketplace for Windows and macOS. Per Cursor’s security notice, the tampered versions were available for roughly 11 hours on October 29, 2026, from about 2:27 a.m. to 1:35 p.m. Pacific.
The malicious code gathered host and user details, including hostname, OS, architecture, home directory, environment variable names, Git email, and public IP, then tried to add an attacker-controlled SSH key to authorized_keys, enable the SSH service, and open a reverse SSH tunnel, retrying about every 60 seconds via a LaunchAgent or scheduled task. Cursor states the SSH-enablement step would fail on most machines without administrator privileges, though this is Cursor’s own assessment rather than a measured count of successful compromises.
BleepingComputer reports up to 5,000 developers were affected, a figure not stated in Cursor’s own notice.
Sources: Security notice Coverage: Malicious Claude Code extension on Cursor planted SSH backdoors
Related on this blog: [AUTO] Cursor Agent Deployed in Ransomware Exploitation • [AUTO] Claude Code auto-executes repository configuration • [AUTO] Unauthorized Relay Disables AI Sandboxes