Skip to content
VibecodeZero

Cursor's fake Claude Code extension (2.1.313): how to check if you're affected

Updated

On this page (4)
  1. Symptom
  2. Cause
  3. Prompt to paste
  4. How not to burn credits

Symptom

You use Cursor with the Claude Code extension and saw Cursor's security notice about version 2.1.313, or you got a message from Cursor about it, or you're not sure whether the fake version reached your computer.

Cause

This page is for you if you use Cursor with the Claude Code extension, or you’re not sure. The facts below come from Cursor’s security notice, dated October 29, 2026, Cursor’s post on X from October 30, and Anthropic’s official Claude Code changelog, all checked October 30, 2026. As of that day, only Cursor had spoken officially about this incident, so its blog post is the source to follow for updates.

What happened?

Cursor says a malicious version of the Claude Code extension, Anthropic.claude-code version 2.1.313, was published in Cursor’s VS Code extension marketplace. That version was not made by Anthropic.

  • When: October 29, 2026, from about 2:27am to 1:35pm PT (09:27 to 20:35 UTC).
  • Who: at most 5,000 users, according to Cursor. Cursor says it will contact them directly.
  • What Cursor did: it removed the version, took the whole marketplace down, rotated its keys, rebuilt the marketplace and turned it back on. It says the attacker’s server was taken down and no longer works.
  • Other extensions: Cursor says it audited the marketplace and that no other extension was tampered with. Its post on X says this doesn’t affect other extensions, Grok Bot, Grok or other products.

How to check if you’re affected

Cursor’s check looks inside your SSH settings. SSH is a way to control a computer from another place by typing commands, and an SSH key is a file that works like a password for that access. The file authorized_keys lists the keys allowed in. The fake extension tried to put the attacker’s key there, and the check looks for svc-telemetry to spot it.

On a Mac, open Terminal (search for “Terminal” in Spotlight), paste this line exactly as it is, and press Enter:

grep -qs svc-telemetry ~/.ssh/authorized_keys && echo "svc-telemetry key found" || echo "No key found; machine not impacted"

On Windows, follow the PowerShell check in Cursor’s blog post. This is the command from the blog, copied exactly:

$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" }

What the result means:

  1. “No key found; machine not impacted”. Cursor says your machine was not affected. Update the extension to 2.1.314 (below) and you’re done.
  2. “svc-telemetry key found”. Your computer has the attacker’s key. Follow the steps in the next section.

Whatever the result, Cursor asks everyone to update Claude Code for VS Code to 2.1.314. The Claude Code changelog lists version 2.1.314.

If the check finds the key

Cursor’s steps, in short. The full instructions and the fix scripts are in Cursor’s blog post:

  1. Isolate the computer, so it isn’t connected to anything while you fix it.
  2. Run Cursor’s fix script. On macOS it’s remediate-macos.sh, run as your normal user, not as root. On Windows it’s remediate-windows.ps1, run as Administrator.
  3. Consider reinstalling the computer from scratch.
  4. Change your passwords, credentials and sessions from another trusted device, not from the affected one. For API keys, How to keep API keys safe explains how to replace a key and limit what a leaked one can spend.

Uninstalling the extension may not be enough. Cursor says the fake extension tried to set itself up to start again on its own. Cursor lists these files: on macOS, ~/Library/LaunchAgents/com.apple.sysmond.plist, ~/.config/.smt and ~/.config/.smtk. On Windows, a scheduled task called SysMon, %USERPROFILE%\.config\smt.cmd and sysmon.cmd in the Startup folder. Cursor’s fix script is the way to deal with them. For questions, Cursor’s contact is security@cursor.com.

What did the fake extension do?

According to Cursor, it:

  • Collected your computer’s name, your username, operating system, processor type, home folder, the names of your environment variables, your work folders, your Git email and your public IP address.
  • Sent that data out over the internet.
  • Tried to add the attacker’s SSH key to authorized_keys, turn on SSH on your computer and open a reverse SSH tunnel, a hidden connection back to the attacker.
  • Set itself up to start again on its own: a LaunchAgent on macOS, a scheduled task on Windows.

Turning on SSH needs administrator rights. Cursor says that on most Macs and Windows computers that step fails, so the attacker couldn’t get in through the tunnel. But the key, the self-starting setup and the data sending still happen, so follow the fix steps anyway if the check finds the key.

Is Claude Code in the terminal affected?

Claude Code in the terminal, the one you install with npm or Anthropic’s installer, is not the same thing as this extension from Cursor’s marketplace. Cursor’s blog says there’s no evidence that other versions or the official distribution were affected.

Other editors. Posts on X say different things about whether the fake version also reached Open VSX, Windsurf or VSCodium. None of that is confirmed. As of October 30, only Cursor had spoken officially, and its blog post is the official source.

What isn’t known yet

Cursor’s notice doesn’t say how the fake version got into the marketplace. This page doesn’t guess. Check Cursor’s blog post for updates.

If you also used OpenCode and saved an AI provider key there, see what to do after the OpenCode Console breach.

Prompt to paste

Copy the text below, replace what’s in brackets and send it in the chat of the tool you’re using.

Paste into the AI
I want to check whether my computer was affected by the fake Claude Code extension (version 2.1.313) in Cursor's extension marketplace.

Only check. Don't install, uninstall, update, change, move or delete anything.
1. Find out which version of the Claude Code extension (Anthropic.claude-code) is installed in Cursor on this computer, if any, and tell me the version number.
2. Run Cursor's official check for my system, exactly as written below, and show me the output.
   macOS (Terminal):
   grep -qs svc-telemetry ~/.ssh/authorized_keys && echo "svc-telemetry key found" || echo "No key found; machine not impacted"
   Windows (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" }
3. Explain the result in plain English. Cursor says "No key found; machine not impacted" means the machine was not affected. If it says "svc-telemetry key found", just tell me. Don't try to fix anything.
Then wait for my answer before doing anything else.

How not to burn credits

  • Run the one-line check yourself before asking an AI to "scan" or "clean" your computer. It's a single command, it's free, and it gives Cursor's official answer.
  • Don't let an AI agent delete files or run fix scripts on its own. If the key is found, follow the steps in Cursor's blog post and run Cursor's own fix script the way the blog says.
  • Never paste passwords, API keys or the contents of your .ssh folder into an AI chat. To check, the command's one-line result is all you need.
  • If you have to change passwords and keys, do it from another trusted device, as Cursor says, and set a spending limit on any new API key before you use it.

How Lovable counts credits, and what the free plan includes: Lovable credits explained.

Questions people ask

How do I know if I installed the fake Claude Code 2.1.313?

Run Cursor's check. On a Mac, paste grep -qs svc-telemetry ~/.ssh/authorized_keys && echo "svc-telemetry key found" || echo "No key found; machine not impacted" into Terminal. On Windows, use the PowerShell check from Cursor's blog post. If it prints "No key found; machine not impacted", Cursor says your machine was not affected. Cursor also says it will contact the affected users directly, and that there were at most 5,000.

What is svc-telemetry?

It's what Cursor's check looks for. SSH is a way to control a computer from another place by typing commands, and an SSH key works like a password for that access. The file authorized_keys lists the keys allowed in. The fake extension tried to add the attacker's SSH key to that file, and Cursor's check looks for svc-telemetry there to spot it.

I use Claude Code in the terminal. Am I affected?

Claude Code in the terminal, installed with npm or the installer, is not the same thing as this extension from Cursor's marketplace. Cursor's blog says there's no evidence that other versions or the official distribution were affected. If you also have the Claude Code extension in Cursor, run the check and update it to 2.1.314.

Is uninstalling the extension enough?

It may not be. Cursor says the fake extension tried to set itself up to start again on its own (a LaunchAgent on macOS, a scheduled task on Windows). If the check finds the key, isolate the computer, run Cursor's fix script, consider reinstalling the computer and change your passwords, credentials and sessions from another trusted device. If the check says "No key found; machine not impacted", Cursor says your machine was not affected, and you just update to 2.1.314.

Were Open VSX, Windsurf or VSCodium affected too?

We can't confirm that. As of October 30, 2026, only Cursor had spoken officially about this incident. Posts on X say different things about Open VSX and other editors, so treat them as unconfirmed. The official source is Cursor's blog post.

What did the fake extension do?

Cursor says it collected your computer's name, your username, operating system, processor type, home folder, the names of your environment variables, your work folders, your Git email and your public IP address, and sent them out over the internet. It also tried to add the attacker's SSH key, turn on SSH on your computer and open a reverse SSH tunnel, a hidden connection back to the attacker.

Is it still dangerous right now?

Cursor says the attacker's server was taken down and no longer works, and that it removed the fake version, took the whole marketplace down, rotated its keys, rebuilt it and turned it back on. If the check finds the key on your computer, still follow Cursor's fix steps, because the key and the self-starting files can stay on your machine.

New guides by email. An email when we publish a new guide, error fix or chapter, in plain English. Subscribe