Tampered Cursor Claude Code Extensions Delivered SSH Backdoor to Developers
What Happened — On October 29 2026, Cursor’s extension marketplace offered two versions of the Claude Code extension (2.1.312 and 2.1.313) that had been silently altered to include a 66‑line malicious JavaScript loader. The loader executed before the legitimate extension code, collected host and user information, and attempted to install an attacker‑controlled SSH key, enable the SSH service, and open a reverse‑tunnel to an external server.
OpenSourceMalware’s forensic analysis showed the malicious code was embedded in the extension.js file while the package retained the authentic anthropic.claude-code identity and bundled binary. The malicious loader ran when the extension started after system boot or when its webview opened.
Microsoft’s parallel investigation confirmed the compromised packages were not distributed through the official Visual Studio Marketplace or the Claude Code npm package, and Anthropic affirmed its own build pipeline was untouched.
On most Windows and macOS machines the SSH‑tunnel step failed because the loader required administrator privileges that were not present. Nevertheless, the loader could still drop an unauthorized SSH key (tvflcf), create persistence artifacts (a macOS LaunchAgent, a Windows scheduled task named SysMon, and a script in the Windows Startup folder), and exfiltrate device metadata.
Cursor responded by temporarily shutting down the marketplace, rotating its signing keys, and rebuilding the extension store. The company also worked with its hosting provider to take the attacker’s command‑and‑control server offline.
Affected users were instructed to follow a detailed remediation guide: delete the compromised extension, run Cursor‑provided cleanup scripts for Windows or macOS, remove any unauthorized SSH keys and persistence files, and rotate all credentials from a trusted, uncompromised system. The notice originally cited “at most 5,000” impacted users, but the figure was later removed from the updated advisory.
Why It Matters for Trust & Control Assurance — The incident underscores the need for continuous third‑party risk monitoring and verifiable supply‑chain controls.
Who Is Affected — Software developers, development teams, and organizations that integrate third‑party IDE extensions into their build environments.
Recommended Actions
- Verify the integrity of all installed Cursor extensions; uninstall versions 2.1.312 and 2.1.313 immediately.
- Execute Cursor’s cleanup scripts, delete any unauthorized SSH keys, and remove persistence artifacts (LaunchAgents, scheduled tasks, startup scripts).
- Rotate all SSH and other privileged credentials from a clean machine.
- Implement a software‑bill‑of‑materials (SBOM) and enforce signed‑package verification for all third‑party tools.
- Strengthen endpoint monitoring to detect anomalous SSH key additions and reverse‑tunnel traffic.
Technical Notes
- Attack vector: Tampered JavaScript loader embedded in a legitimate‑looking VS Code extension.
- Persistence mechanisms: macOS LaunchAgent, Windows scheduled task
SysMon, Windows Startup folder script. - Data exfiltrated: Host OS version, username, device identifiers; no direct credential theft confirmed.
- CVE/ID: No public CVE; the flaw is a supply‑chain compromise rather than a software vulnerability.
Source: HackRead article