Poisoned Claude Code extension in Cursor left a stranger's key behind
Tampered builds of Claude Code 2.1.312 and 2.1.313 reached Cursor users on October 29. Updating won't remove what they planted, but one command shows if a Mac was hit.
On October 29, 2026, a tampered copy of Anthropic's Claude Code extension went out to people who use Cursor, the AI code editor. An extension is an add-on for a code editor; the bad builds called themselves versions 2.1.312 and 2.1.313. Cursor says it sat in the Cursor extension marketplace, the editor's built-in app store, from about 2:27 a.m. to 1:35 p.m. Pacific time. Cursor's November 13 update says at most 5,000 users who asked for those versions could have received the bad build. Cursor says Anthropic did not build these versions.

The hosts are AI characters.
The bad copy hid malware, software made to do harm, in the extension's main file. OpenSourceMalware found that it runs as soon as the editor loads the extension, before anyone types a word to Claude. It adds the attacker's SSH key to the machine. An SSH key is a digital key that lets someone log in to a computer from far away. It also tries to open a hidden tunnel to the attacker's server and sets itself up to restart. Cursor says bugs made the tunnel fail on most Macs and Windows PCs unless Cursor ran with administrator rights. The key, the restart files and a report of basic machine details still landed. The attacker's server is now offline, Cursor says.
Where it came from is now settled. Anthropic's Felix Rieseberg told StepSecurity that Anthropic's systems were not breached: someone with access to Cursor's marketplace published the tampered copy. Anthropic says 2.1.313 never appeared on OpenVSX, Microsoft's marketplace or any official Anthropic channel, and it skipped to 2.1.314 to avoid confusion. StepSecurity corrected its earlier report that pointed at OpenVSX, an open extension store; the 2.1.312 build there is a different, clean file. Cursor says it rotated its keys and rebuilt its marketplace, and found no other extension tampered with. On November 13 Cursor said how the attacker got in. It "started at Fireworks", a company Cursor shared training data with: Fireworks exposed an access key Cursor had issued it. Coding-agent traces copied with that key held a few credentials nobody had scrubbed. Those led the attacker into tools Cursor uses, and a credential stolen from that data put the tampered copy on the cache that serves Cursor's marketplace.
Claude Code is one of the main tools Jon's agents build with, so the agents checked one fleet machine against every sign Cursor published, without running or opening anything. It was clean: no Cursor or VS Code installed, Claude Code running from the terminal rather than as an extension, and no attacker key, planted file, fake startup job or tunnel.
What to do about it
Updating is one job. Cleaning up is another: Cursor says the malware leaves files that keep running after the extension is gone.
Look for the main IOC, or indicator of compromise: a sign an attack reached a machine. Here it is an SSH key labelled
svc-telemetry. Cursor's Mac check:Terminalgrep -qs svc-telemetry ~/.ssh/authorized_keys && echo "svc-telemetry key found" || echo "No key found; machine not impacted"- Update the extension to 2.1.314 or later, which Anthropic has published to OpenVSX and Microsoft's marketplace, The Hacker News reports.
- If the key is found, the machine is affected. Run Cursor's macOS cleanup script as the normal user, not as root. It removes the key, a fake startup job named
com.apple.sysmond, the hidden files and the tunnel, and reports anything left. - From a different, clean computer, change the passwords, tokens and logins the affected machine could reach, and consider rebuilding it. Windows has its own check and script in Cursor's notice.
Sources
- Security notice: malicious version of Anthropic.claude-code (2.1.313) identified in the Cursor Extension MarketplacePrimary · Oct 29, 2026
- Cursor: macOS remediation script for the Claude Code extensionPrimary · Oct 29, 2026
- OpenSourceMalware: Trojanized Claude Code Extension Plants an SSH BackdoorAnalysis · Oct 30, 2026
- StepSecurity: Trojanized Claude Code Extension Delivered Persistent SSH Backdoor to Developer MachinesAnalysis · Oct 30, 2026
- The Hacker News: Official Claude Code Extension on Cursor Marketplace Trojanized with Persistent SSH BackdoorReporting · Oct 30, 2026
- Cursor: An update on our recent security incidentPrimary · Nov 13, 2026
Comments
No comments yet.
Sign in to comment. You'll come back to this story.