Why the Cursor Claude Code extension backdoor matters now
Cursor disclosed the incident on October 29, 2026, the same day the malicious versions were live. The window ran from about 2:27 a.m. to 1:35 p.m. Pacific Time, which is about 2:57 p.m. IST on October 29 to 2:05 a.m. IST on October 30. Cursor installs extension updates automatically when updates are enabled, so many users received the bad version without clicking anything. The version number matters more than whether you remember installing it.
The payload itself was a 66 line loader placed in front of the real extension code, so the extension kept working normally while the loader ran. It collected host details such as hostname, username, operating system, home directory path, environment variable names, working directories, configured Git email, and public IP. It also tried to add the attacker's public key to ~/.ssh/authorized_keys, enable the local SSH service, and open a reverse tunnel to an attacker server, retrying about every 60 seconds.
The remote login step mostly failed. Turning on the local SSH service needs administrator rights, and the extension did not have them on most macOS and Windows machines. Cursor also worked with the hosting provider to take the attacker server offline, so the tunnel and the beacon no longer function. The key, the persistence files, and the collected host details are still a problem on machines that ran the bad version, which is why the cleanup below matters even though the server is dead.
On 13 November, Cursor published a post-mortem tracing the incident to an access key it had issued to Fireworks AI, its inference provider. Cursor says Fireworks exposed the key, an attacker used it to copy a storage bucket of historical coding-agent traces, found unredacted credentials in some of them, and used those to place the malicious extension on the marketplace cache. Cursor says the last attacker activity it observed was 1 November and it was blocked. It has moved all inference off Fireworks, rotated credentials, and rebuilt the marketplace. The cleanup steps below are unchanged: the post-mortem does not change who needs to check.
Anthropic did not build the malicious versions and its systems were not compromised. The npm package @anthropic-ai/claude-code, the Open VSX listing, and the Microsoft VS Code Marketplace listing were checked and found clean. Only the copies served through Cursor's marketplace carried the loader. Anthropic published a clean 2.1.314 to Open VSX and the VS Code Marketplace on October 30.
What you need
You need a terminal on the machine where you run Cursor, plus a few minutes. On macOS, use Terminal. On Windows, use PowerShell. On Linux, use your usual terminal. You do not need to install anything. Cursor also publishes remediation scripts for macOS and Windows in its security notice, linked in the sources at the end of this post.
Check your installed extension version
First, find out which version of the Claude Code extension Cursor installed.
Open Cursor, open the Extensions view with Ctrl+Shift+X on Windows and Linux or Cmd+Shift+X on macOS, and search for Claude Code. The version number sits next to the extension name. Versions 2.1.312 and 2.1.313 from Cursor's marketplace are the malicious ones. Any other version is not part of this incident.
If you prefer the terminal, run this command:
cursor --list-extensions --show-versions | grep -i claude-code
Look for a line starting with anthropic.claude-code@2.1.312 or anthropic.claude-code@2.1.313. If the cursor command is not found, open Cursor's Command Palette and run Shell Command: Install 'cursor' command in PATH, then reopen your terminal. The graphical check works just as well, so use whichever you reach first.
Check for the svc-telemetry SSH key
The loader added an attacker controlled public key with the comment svc-telemetry to the SSH authorized keys file. This check looks for that comment.
On macOS, run:
grep -qs svc-telemetry ~/.ssh/authorized_keys && echo "svc-telemetry key found" || echo "No key found; machine not impacted"
On Windows, run this in PowerShell:
$files = "$HOME\.ssh\authorized_keys", "C:\ProgramData\ssh\administrators_authorized_keys" | Where-Object { Test-Path $_ }
if ($files -and (Select-String svc-telemetry $files)) { "svc-telemetry key found" } else { "No key found; machine not impacted" }
On Linux, run the same grep command as macOS. These commands come from Cursor's security notice, so the wording of the result matches what Cursor describes. If the output says the key was found, move to the removal steps below. If it says no key was found and your installed version is not 2.1.312 or 2.1.313, your machine was not touched by this payload.
Remove the key, the persistence files, and the extension
If the key was found, treat the machine as impacted and work through these steps in order.
Remove the malicious extension first. In Cursor's Extensions view, find Claude Code and uninstall it. This stops the loader from running again, but it does not remove what the loader already dropped on disk.
Remove the attacker key next. Open ~/.ssh/authorized_keys in a text editor and delete the line ending in svc-telemetry. The full line starts with ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDdvylCEJ/k2TpezcTfedrkHyFSK9IZ3vmP6vhY4Ss0P. Its fingerprint is SHA256:0Z6R+DF64Do2nwQic8a7kkfDLNNk4IiK+2U2Rci4htk. Save the file and run the grep check again to confirm the label is gone.
Remove the persistence files. On macOS, delete ~/Library/LaunchAgents/com.apple.sysmond.plist and the files ~/.config/.smt and ~/.config/.smtk if they exist. On Windows, delete %USERPROFILE%\.config\smt.cmd and %USERPROFILE%\.config\smtk, and remove the scheduled task named SysMon. On Linux, delete ~/.config/.smt and ~/.config/.smtk, and remove any cron entry that runs /bin/sh "<HOME>/.config/.smt" at reboot. Check for running tunnel processes with ssh -N -R in the command line and stop any you find.
Cursor publishes remediation scripts that do this removal for macOS and Windows. Download them from the security notice linked below. Run the macOS script as the affected user, not as root, with bash remediate-macos.sh. Run the Windows script from PowerShell opened with Run as Administrator, with powershell -ExecutionPolicy Bypass -File .\remediate-windows.ps1. The scripts exit with a non-zero status if anything remains, so a clean exit is your confirmation.
Rotate credentials last. Change passwords, API keys, and tokens that were stored on or reachable from the affected machine, and sign out sessions where the service allows it. Do this from a trusted machine, not from the affected one. The loader collected environment variable names, and Cursor notes that this limited collection does not rule out later credential access over the backdoor, so rotation is part of the fix rather than an extra precaution.
Reinstall a clean version only after the checks pass. Install Claude Code 2.1.314 or later from the official listing, and confirm the version number in the Extensions view after install.
What to do if the check fails or something looks off
If the grep command reports an error instead of a result, check that the file exists. A missing ~/.ssh/authorized_keys file means no key could have been added there, which is a clean result for that path. Run the check against the Windows admin path as well if you are on Windows, since the loader could write to either location.
If you find the key but the remediation script reports that something remains, do not ignore the exit code. Look at the files and tasks listed in the indicators section of Cursor's notice, remove each one by hand, and run the script again. If you are unsure whether the machine is fully clean, back up your work and rebuild the machine. Cursor's notice lists rebuilding as an option to assess for affected hosts.
If you installed the bad version on a shared or work machine, tell your team or your IT contact. The incident affects the whole machine, so other people who use the same host or the same credentials need the same cleanup.
How to avoid the next bad extension
Extension marketplaces are a supply chain, and this incident shows that a familiar name and a routine auto-update can carry a tampered build. A few habits lower the risk without slowing your work down.
Pin versions for the extensions you depend on, and check the version after an update lands. Cursor and VS Code both show the installed version in the Extensions view, and the terminal command above gives you the same list in one line. A version number you do not recognize is worth a minute of checking before you keep working.
Review what an extension can do before you install it. Publisher name, install count, update history, and requested permissions are all visible on the listing page. An extension from an unfamiliar publisher that asks for broad file or network access deserves a second look.
Keep a record of your installed extensions. Export the list with cursor --list-extensions --show-versions or code --list-extensions --show-versions and store it with your dotfiles. When the next incident lands, you can search one file instead of opening every machine you own.
Audit skill files and agent instructions with the same care. PromptStaging's guide to auditing SKILL.md files before install covers the same idea for agent skills: read what you are about to run before you run it. The same habit applies to MCP servers and editor extensions.
Frequently asked questions
No. The payload came with the Claude Code extension versions 2.1.312 and 2.1.313 from Cursor's marketplace. If that extension was never installed on your machine, the loader never ran there. Run the version check above to confirm the extension is absent, and the key check to confirm nothing was added.
No. Microsoft confirmed that the malicious packages were never published to the Microsoft VS Code Marketplace or to npm, and those copies were checked and found clean. The incident is limited to Cursor's marketplace. If you installed Claude Code from VS Code or npm, you were not exposed through this incident, though the key check is still a quick way to be sure.
No. Uninstalling removes the extension and stops the loader, but the attacker key in `authorized_keys` and the persistence files stay on disk. The key check and the removal steps above cover what uninstalling leaves behind. Run Cursor's remediation script or remove the files by hand, then confirm with the grep check.
It is an attacker controlled SSH public key added to your authorized keys file. If the local SSH service were running and reachable, anyone holding the matching private key could log in to your machine. On most macOS and Windows machines the SSH service step failed, and the attacker server is now offline, so remote login through this key is not currently possible. The key should still be removed, because a leftover key is an open door if SSH is ever enabled later.
Yes, if the bad version was installed on your machine. Rotate credentials and sessions that were accessible from the affected host, and do it from a trusted machine. The loader collected environment variable names and host details, and Cursor states that this does not rule out later credential access. If the key check is clean and you never had the bad versions, no rotation is needed for this incident.
Conclusion
The Cursor Claude Code extension backdoor reached at most 5,000 users through two tampered versions served for about 11 hours on October 29, 2026. The fix is short: check the installed version, search for the svc-telemetry key, remove the key and persistence files, and rotate credentials. Do the checks even if you already uninstalled the extension, because uninstalling alone leaves the backdoor pieces behind. A clean 2.1.314 is available, and the version check plus the key check take about a minute. Run them now, then keep the version pinning and extension list habits above so the next marketplace incident is a quick search instead of a scramble.
Related reading on PromptStaging: audit SKILL.md files before you install them and mask secrets before a coding agent sees them. If you build prompts for your own tools, the Skill Builder helps you write the instructions your agent follows.
Sources and references
- Cursor security notice, "Security notice: malicious version of Anthropic.claude-code (2.1.312 and 2.1.313) identified in the Cursor VS Code Extension Marketplace", October 29, 2026, updated October 30, 2026: https://cursor.com/blog/claude-code-extension-security-notice
- Cursor, "An update on our recent security incident", November 13, 2026 (Fireworks key, trace bucket, containment), as summarized by Automater: https://automater.ai/news/cursor-post-mortem-fireworks-key-claude-code-extension/
- Microsoft Security Blog, "Inside a malicious Claude Code-branded extension and its persistent SSH backdoor", October 30, 2026: https://www.microsoft.com/en-us/security/blog/2026/10/30/inside-malicious-claude-code-branded-cursor-extension-persistent-ssh-backdoor/
- OpenSourceMalware, "Trojanized Claude Code Extension Plants an SSH Backdoor", October 30, 2026: https://opensourcemalware.com/blog/trojanized-claude-code-extension-plants-persistent-ssh-backdoor
- Claude Code changelog, version 2.1.314, October 30, 2026: https://code.claude.com/docs/en/changelog
- PromptStaging sitemap checked October 31, 2026 for prior coverage: https://promptstaging.site/sitemap.xml