Skip to content
VibeSafeDaily

Secrets

Your Cursor Claude Code extension may still be a tampered Oct 29 build

Cataloged November 6, 2026 · Cursor

Symptom

Claude Code still opens and answers. Nothing in Cursor says the extension was swapped. If you installed or updated Anthropic.claude-code from the Cursor VS Code Extension Marketplace on macOS or Windows between about 2:27am PT and 1:35pm PT on October 29, 2026, that copy may be version 2.1.312 or 2.1.313. Cursor says those versions were maliciously modified and were not developed by Anthropic. Microsoft's write-up says the extension keeps working, so the editor looks fine. Uninstalling the extension is not enough. Cursor says the payload drops standalone persistence scripts that keep running. The check on your own machine is whether an SSH authorized-keys entry is labeled svc-telemetry.

Root cause

On October 29, 2026 Cursor published a security notice. An update on October 30, 2026 at 11:30am PT says Cursor refreshed the indicators of compromise and clarified the affected versions. Between about 2:27am PT and 1:35pm PT on October 29, the Cursor VS Code Extension Marketplace served Anthropic.claude-code 2.1.312 and 2.1.313 for Windows and macOS. Cursor says those builds were a maliciously modified copy of Anthropic's Claude Code extension and were not developed by Anthropic. The code runs when the extension module loads. Microsoft's analysis of the injected JavaScript says that function runs before normal initialization and can use Node.js APIs to collect host information, change files, and run operating-system commands, while the rest of the extension keeps working. Cursor says the extension does not have administrator rights on most macOS and Windows hosts. The Windows scheduled task attempts to run as SYSTEM, and the fallback is a Startup script in the user profile. Cursor says it collects and reports the hostname, username, OS, architecture, home directory path, environment variable names, working directories, configured Git email, and public IP. Microsoft says the report sends matching environment-variable names, not the values in those variables. The extension appends an attacker SSH public key labeled svc-telemetry to authorized_keys. It attempts to enable the local SSH service and open a reverse SSH tunnel, and it attempts to keep that tunnel across restarts with a LaunchAgent on macOS, or a scheduled task that attempts to run as SYSTEM with a Startup-script fallback on Windows. Background scripts retry the tunnel roughly every 60 seconds. Cursor says that outside highly unusual cases where Cursor was started with administrator privileges, errors in the malicious code make the tunnel step fail. Enabling local SSH also needs administrator rights the extension does not have on most of those hosts, so on those hosts the attacker could not have logged in through the tunnel. Cursor says the extension still added the attacker's SSH key, installed persistence, and sent host details to the attacker, and that you should follow the remediation steps regardless. Cursor and the hosting provider took the attacker server offline, so the reverse shell and the host-detail POST no longer work. That takedown does not delete files already on the machine. Microsoft says the same. Cursor removed the malicious versions, shut the marketplace down, audited access and confirmed no other extensions were tampered with, rotated its keys, rebuilt the marketplace, and brought it back online. Cursor says these findings concern that package, that it has no evidence other versions of the extension or the official distribution are affected, and that this does not affect other extensions downloaded from cursor.com/marketplace. Microsoft says it confirmed the malicious packages were never published or distributed from the Microsoft Visual Studio Marketplace or from npm @anthropic-ai/claude-code, that Anthropic confirmed its systems were not compromised and that Anthropic did not develop the package posted in the Cursor marketplace, and that the evidence Microsoft has limits the incident to the Cursor marketplace. Anthropic's GitHub release v2.1.314 was published October 30, 2026 at 01:06 UTC. That tag is Anthropic's release, not one of the two versions Cursor named. Anthropic's later tag v2.1.318 was published November 4, 2026 at 00:01 UTC. Cursor's notice lists indicators of compromise, including the svc-telemetry label. This card does not copy those indicators. Read them on the notice. Cursor's published check is the svc-telemetry search below. If that search finds the label, Cursor says the machine is impacted. Microsoft says a missing marker, by itself, should not replace a review of installation and persistence evidence when the named versions were installed.

Before and after

The version in Cursor's Extensions panel for Anthropic.claude-code. 2.1.313 is one of the two versions Cursor says were maliciously modified in the Cursor marketplace on October 29, 2026. The other is 2.1.312. 2.1.314 is Anthropic's GitHub release published October 30, 2026 at 01:06 UTC. A later official Anthropic release, such as 2.1.318 from November 4, 2026, is also outside those two versions. Do not downgrade a later official version. If svc-telemetry is in authorized_keys, changing the version is not the whole fix. Run the remediation script on Cursor's notice.

Before

Anthropic.claude-code 2.1.313

After

Anthropic.claude-code 2.1.314

Fix prompt

On this machine only. Do not scan, log in to, or check anyone else's computer. Do not print secrets, SSH private keys, tokens, passwords, authorized_keys contents, or environment variable values.

1. In Cursor on this machine, open Extensions and find Anthropic.claude-code, the Claude Code extension. Tell me the installed version exactly as the panel shows it. If Claude Code is not installed in Cursor on this machine, say so and stop.

2. If the version is 2.1.312 or 2.1.313, or the panel does not show a version and this machine may have installed or updated that extension from the Cursor marketplace on October 29, 2026, run the check Cursor published and paste only the one-line result. Do not print the key file.

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. It checks $HOME\.ssh\authorized_keys and C:\ProgramData\ssh\administrators_authorized_keys:
$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" }

Those are the commands on Cursor's notice. If this machine is Linux, stop and tell me to read the notice. Do not adapt the command into a scan of other hosts.

3. If the result is "svc-telemetry key found", Cursor says this machine is impacted. Do not clean it by editing authorized_keys yourself in this step. Tell me to open Cursor's notice, download the remediation script for this platform, read it, and run it. On macOS the script is remediate-macos.sh, run as the affected user, not as root. On Windows the script is remediate-windows.ps1, run from PowerShell opened with Run as Administrator. The notice is https://cursor.com/blog/claude-code-extension-security-notice. Cursor says the scripts remove the malicious extension, the persistence mechanisms, the running tunnel processes, and the attacker's SSH key, and that they exit with a non-zero status if anything remains. Uninstalling the extension is not enough. Cursor says the payload drops standalone persistence scripts that keep running.

4. If this Cursor install is on 2.1.312 or 2.1.313, update it off those versions even when the key check says no key was found. Anthropic published v2.1.314 on October 30, 2026 at 01:06 UTC: https://github.com/anthropics/claude-code/releases/tag/v2.1.314. A later official tag, v2.1.318, was published November 4, 2026 at 00:01 UTC. Install 2.1.314 or a later official Anthropic release. Do not downgrade a later official version to 2.1.314. Cursor says it has no evidence that other versions or the official distribution are affected. After the update, tell me the version in the Extensions panel. If the installed version was 2.1.312 or 2.1.313 and the key was not found, also tell me to read the persistence section of Cursor's notice before treating the machine as finished. Microsoft says a missing marker alone should not replace that review.

5. If this machine is impacted, rotate credentials and sessions that were accessible from it. Do that from a different machine you trust. Cursor says the limited environment-variable collection does not rule out later credential access over the backdoor. Do not print the old values or the new values. If the key was not found and this Cursor install was never 2.1.312 or 2.1.313, do not rotate anything unless I ask.

Do not edit this project's application code. Do not print keys.

Paste this into the coding tool that has your own project open.

2-minute self-check

These steps are for an app you own. Do not run them against someone else's project.

  1. On your own machine, open Cursor, then Extensions, and read the version of Anthropic.claude-code. Cursor says 2.1.312 and 2.1.313 for Windows and macOS were the maliciously modified copies in the Cursor VS Code Extension Marketplace between about 2:27am PT and 1:35pm PT on October 29, 2026.
  2. On your own Mac, run: grep -qs svc-telemetry ~/.ssh/authorized_keys && echo "svc-telemetry key found" || echo "No key found; machine not impacted". On your own Windows PC, run Cursor's PowerShell check against $HOME\.ssh\authorized_keys and C:\ProgramData\ssh\administrators_authorized_keys. Cursor says "svc-telemetry key found" means that machine is impacted. Do not run either command on someone else's computer, and do not paste the key file anywhere.
  3. If the key is found on your own machine, download the remediation script from Cursor's notice and run it the way the notice says: remediate-macos.sh as your user, not as root, or remediate-windows.ps1 from PowerShell opened with Run as Administrator. Uninstalling the extension leaves the standalone persistence scripts Cursor describes.
  4. After that, confirm Extensions on your own machine shows Anthropic's release 2.1.314 or a later official Anthropic release, not 2.1.312 or 2.1.313. v2.1.314 was published October 30, 2026 at 01:06 UTC. v2.1.318 was published November 4, 2026 at 00:01 UTC. Do not downgrade a later official version. If your machine was impacted, rotate credentials and sessions from a trusted system, and do not print them. If you did install 2.1.312 or 2.1.313 and the key line says no key was found, Microsoft says that missing marker alone should not replace a look at the persistence paths on Cursor's notice.

Common questions

I installed Claude Code from npm or the Microsoft VS Code Marketplace. Am I affected?

Microsoft says no. It confirmed the malicious packages found on the Cursor marketplace were never published or distributed from the Microsoft Visual Studio Marketplace or from npm @anthropic-ai/claude-code. Anthropic confirmed to Microsoft that its systems were not compromised and that it did not develop the package posted in the Cursor marketplace. Microsoft says the evidence it has limits the incident to the Cursor marketplace. Cursor says it has no evidence that other versions of the extension or the official distribution are affected.

I uninstalled the Claude Code extension. Am I done?

No. Cursor says uninstalling the extension may not be sufficient, because the payload drops standalone persistence scripts that keep running. Microsoft says removing or updating the extension does not remove artifacts written outside its folder, and that taking the attacker server offline does not delete files already on the machine. On your own machine, run Cursor's svc-telemetry check. If the key is found, run the remediation script linked from Cursor's notice: remediate-macos.sh as your user, not as root, or remediate-windows.ps1 from an Administrator PowerShell. Then update off 2.1.312 and 2.1.313.

Does this mean Anthropic was hacked?

No. Cursor says the malicious versions were not developed by Anthropic. Microsoft says Anthropic confirmed that its systems were not compromised and that Anthropic did not develop the malicious package posted in the Cursor marketplace.

Sources

Same symptom

Same platform