Trojanized Claude Code Extension on Cursor: Check Now
A tampered build of the Claude Code extension was live in Cursor's extension marketplace on October 29, 2026. If you use Cursor and the extension updated that day, check your machine for a leftover SSH key. Removing the extension does not remove it.
What happened
Cursor's security notice says versions 2.1.312 and 2.1.313 of anthropic.claude-code were malicious and were not developed by Anthropic. The affected builds were the macOS (Apple silicon) and Windows ones. Cursor puts the window at about 2:27 a.m. to 1:35 p.m. Pacific time on October 29. In Bali time (WITA) that is roughly 17:30 on October 29 to 04:35 on October 30.
The Hacker News and Help Net Security both report Cursor's estimate of at most 5,000 affected users. Cursor's own notice, as published, does not give that number, so treat the figure as reported rather than confirmed by the notice.
What the code did
Microsoft's analysis describes a small loader injected into the extension that ran when the extension loaded and then let the extension work normally. It did several things:
- Collected the hostname, username, OS, architecture, home and working directories, and global Git email. It also listed the names (not values) of up to 40 environment variables containing words such as KEY, TOKEN or SECRET.
- Added an attacker SSH public key labeled
svc-telemetrytoauthorized_keysand tried to turn on the local SSH service. - Started a reverse SSH tunnel, which would let the attacker reach port 22 on the machine, and wrote persistence so the tunnel would relaunch.
Cursor says most hosts likely blocked the SSH step because it needs admin rights. The key and persistence files may still have been written. Microsoft says the loader does not download a second program. Cursor says the attacker's server is now offline, but that does not clean up your computer.
Check your machine
Cursor's published check for macOS:
grep -qs svc-telemetry ~/.ssh/authorized_keys && echo "svc-telemetry key found" || echo "No key found; machine not impacted"
On Windows, Cursor checks both $HOME\.ssh\authorized_keys and C:\ProgramData\ssh\administrators_authorized_keys for the same label. Its page links ready-made PowerShell and shell remediation scripts.
Microsoft lists the persistence files to look for. On macOS, this command only lists them and changes nothing:
ls -la ~/Library/LaunchAgents/com.apple.sysmond.plist ~/.config/.smt ~/.config/.smtk 2>/dev/null
On Windows, look for a scheduled task named SysMon and a sysmon.cmd file in the Startup folder. If you find anything, preserve the files first, then isolate the machine and use Cursor's remediation steps. Cursor suggests considering a full rebuild, and rotating any credentials or sessions the machine could reach, done from a trusted device.
Who is probably fine
Microsoft confirms the malicious packages did not go through the Visual Studio Marketplace or npm, and Anthropic is quoted by The Hacker News as saying its own systems were not compromised. Reports conflict on Open VSX: Help Net Security says one researcher found the package there, while another disputes it and says the bad listing was in Cursor's marketplace only. Cursor's notice and Microsoft cover only the Cursor marketplace, so that is what this post treats as confirmed.
What this means for you
Microsoft's post, pointing to Cursor's hardening guidance, advises allowing only approved publishers and setting an installation cooldown for newly published extension versions, so a bad release has time to be caught before it reaches you. Cursor's notice does not say how the attacker published under the Anthropic name, and that question was still open when this was written.
Sources
- Cursor: security notice on malicious Anthropic.claude-code versions (updated October 30, 2026)
- Microsoft Security Blog: Inside the malicious Claude Code branded Cursor extension (October 30, 2026)
- Help Net Security: Claude Code extension poisoned with persistent SSH backdoor (October 30, 2026)
- The Hacker News: official Claude Code VS Code extension (October 2026)
Comments
Post a Comment