Tampered Claude Code Extension 2.1.313 in Cursor: Check and Fix
You're affected if you installed Claude Code extension 2.1.312 or 2.1.313 from Cursor's marketplace on Oct 29 on macOS or Windows. How to check and clean up.
- Affected: macOS and Windows machines that installed or updated Anthropic.claude-code 2.1.312 or 2.1.313 from the Cursor marketplace between 2:27am and 1:35pm PT on 2026-10-29.
- Check ~/.ssh/authorized_keys for a key labeled svc-telemetry. If it's there, the machine is impacted.
- If impacted, isolate the machine, run Cursor's remediation script, and rotate credentials from a trusted system. Uninstalling the extension may not be enough.
You are affected if you installed or updated Anthropic.claude-code 2.1.312 or 2.1.313 from the Cursor VS Code Extension Marketplace on macOS or Windows between about 2:27am and 1:35pm PT on October 29, 2026. To check, look for a key labeled svc-telemetry in ~/.ssh/authorized_keys. If it’s there, run Cursor’s remediation script and rotate the credentials that machine could reach, from a trusted machine.
This article covers only what Cursor’s security notice says (posted 2026-10-29, updated 2026-10-30). We have not run the remediation scripts ourselves.
Who is affected
All three conditions must apply:
- You installed or updated the extension from the Cursor VS Code Extension Marketplace
- The version was Anthropic.claude-code 2.1.312 or 2.1.313, for macOS or Windows
- It happened between about 2:27am and 1:35pm PT on October 29, 2026 (09:27 to 20:35 UTC)
Anthropic did not develop the tampered versions. Cursor says it audited access and confirmed no other extensions in its marketplace were tampered with. Extensions installed from Microsoft’s Visual Studio Marketplace and the npm Claude Code CLI were not affected.
Source: https://cursor.com/blog/claude-code-extension-security-notice, checked 2026-10-31 Source: https://www.microsoft.com/en-us/security/blog/2026/10/30/inside-malicious-claude-code-branded-cursor-extension-persistent-ssh-backdoor/, checked 2026-10-31
Check which version you have
In Cursor, open the Extensions view and select Claude Code to see its version. Editor’s note: extensions usually live in ~/.cursor/extensions, so this also works. The notice doesn’t mention this method.
ls ~/.cursor/extensions | grep -i anthropic.claude-code
A legitimate 2.1.312 also exists on the official registries, so the version alone isn’t proof. The key check below is what decides it.
Check whether you are impacted
The tampered extension appends the attacker’s public key, labeled svc-telemetry, to your SSH authorized keys. These are the commands from the notice.
macOS:
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" }
If you see “svc-telemetry key found”, the machine is impacted.
Source: https://cursor.com/blog/claude-code-extension-security-notice, checked 2026-10-31
What the payload tried to do
- Collect and send host and user details: hostname, username, OS, architecture, home directory path, environment variable names, working directories, configured Git email and public IP
- Add an attacker-controlled SSH key to authorized_keys
- Enable the local SSH service. This needs admin rights, so it failed on most hosts
- Open a reverse SSH tunnel
- Make the tunnel persistent with a LaunchAgent on macOS, or a scheduled task that tries to run as SYSTEM with a Startup-script fallback on Windows, retrying roughly every 60 seconds
The attacker server has been taken offline. The notice still asks you to follow the remediation steps.
Source: https://cursor.com/blog/claude-code-extension-security-notice, checked 2026-10-31
If the key is found
These are the notice’s steps. Download the remediation scripts from the notice page.
- Isolate the machine
- Run the remediation script. On macOS, run it as the affected user, not as root. On Windows, run it from PowerShell opened with Run as Administrator
- Assess whether the host should be rebuilt
- Rotate credentials and sessions reachable from that machine, from a trusted system
bash remediate-macos.sh
powershell -ExecutionPolicy Bypass -File .\remediate-windows.ps1
The scripts remove the tampered extension, the persistence mechanisms, the running tunnel processes and the attacker’s SSH key. They exit with a non-zero status if anything remains. Uninstalling the extension alone may not be enough, because the persistence scripts keep running on their own.
Source: https://cursor.com/blog/claude-code-extension-security-notice, checked 2026-10-31
Files and indicators to look for
| OS | Files and persistence |
|---|---|
| macOS | ~/.config/.smt, ~/.config/.smtk, $TMPDIR/.stk_<10 hex>, ~/Library/LaunchAgents/com.apple.sysmond.plist |
| Windows | %USERPROFILE%\.config\smt.cmd, %USERPROFILE%\.config\smtk, %TEMP%\.stk_<10 hex>, scheduled task SysMon, Startup sysmon.cmd |
The network indicator is 134[.]209[.]82[.]225 on ports 22 and 8099. The key comment is svc-telemetry, and the unauthorized key fingerprint is SHA256:0Z6R+DF64Do2nwQic8a7kkfDLNNk4IiK+2U2Rci4htk. For the full list of indicators, including file hashes, see the notice.
Source: https://cursor.com/blog/claude-code-extension-security-notice, checked 2026-10-31
Update to a legitimate version
When we checked the registries on 2026-10-31, neither Open VSX nor npm had a 2.1.313. Version 2.1.314 was published on 2026-10-30, and the latest is 2.1.316. After cleanup, update to 2.1.314 or later. This comes from the registries, not from an instruction in Cursor’s notice.
Source: https://open-vsx.org/api/Anthropic/claude-code and https://www.npmjs.com/package/@anthropic-ai/claude-code, checked 2026-10-31
Summary
- Affected: macOS and Windows installs of 2.1.312 or 2.1.313 from the Cursor marketplace on October 29
- Microsoft’s marketplace for VS Code and the npm CLI were not affected
- The
svc-telemetrykey decides it. The version alone doesn’t - If the key is there: isolate, run the remediation script, rotate credentials. Uninstalling alone may not be enough
- Then update to 2.1.314 or later
Related articles
FAQ
- I use Claude Code in VS Code, not Cursor. Am I affected?
- No. The extension on Microsoft's Visual Studio Marketplace and the npm Claude Code CLI were not affected. Microsoft says all evidence points to the incident being limited to the Cursor marketplace.
- How do I know if my machine is affected?
- Run the check from Cursor's notice to look for a key labeled svc-telemetry in your SSH authorized keys. If the key is found, the machine is impacted. The extension version alone doesn't tell you.
- Is uninstalling the extension enough?
- It may not be. The payload drops standalone persistence scripts that keep running. Cursor's remediation script removes the extension, the persistence, the tunnel processes and the attacker's key.
- Which version of the Claude Code extension is safe?
- On Open VSX and npm, 2.1.313 doesn't exist, and the latest version is 2.1.316 as of 2026-10-31. Update to 2.1.314 or later. This comes from the registries, not from an instruction in Cursor's notice.