The fake Claude Code extension that put an SSH backdoor on Cursor (and the three-step check)
The short version
On 29 Oct 2026 a trojanized build of the Claude Code extension (anthropic.claude-code) reached Cursor's extension marketplace. Cursor says it was live from about 2:27 am to 1:35 pm PT that day and that at most 5,000 of its users got it. Anthropic did not build it.
Loading it was enough. It added an attacker's SSH key (comment svc-telemetry) to your authorized keys, installed its own startup job, opened a reverse SSH tunnel to the attacker's server and sent a report of your machine, including the names of environment variables that look like keys and tokens.
Deleting the extension does not fix it: the startup job survives removal.
| What | Detail |
|---|---|
| When | 29 Oct 2026, about 2:27 am to 1:35 pm PT |
| Who | Cursor users with Claude Code installed; at most 5,000 got it (Cursor) |
| Versions | StepSecurity: 2.1.313. Cursor: 2.1.312 and 2.1.313 (macOS and Windows) |
| What it left | an SSH key svc-telemetry, a startup job, a reverse SSH tunnel |
| How it got in | Anthropic says the actor used access to Cursor's marketplace; how that access was gained has not been made public |
Sources: StepSecurity write-up · Cursor security notice and scripts
The three steps (about two minutes)
| # | Do this | Why |
|---|---|---|
| 1 | Check for the key (below) | A match means the backdoor is in |
| 2 | Run Cursor's removal script for your system | Removes the extension, the startup jobs, the tunnel and the key; exits non-zero if anything is left |
| 3 | Rotate every credential on that machine, from a trusted computer | The malware reported which ones were present, and a backdoor can read the rest later |
Copy these prompts
Step one, macOS or Linux:
grep svc-telemetry ~/.ssh/authorized_keys
Step one, Windows: open this file and look for svc-telemetry.
%USERPROFILE%\.ssh\authorized_keys
Step two: download the script from Cursor's notice, then run it. macOS as your normal user (not root); Windows in an administrator PowerShell.
bash remediate-macos.sh
powershell -ExecutionPolicy Bypass -File .\remediate-windows.ps1
Step three: rotate these, in this order.
GitHub / GitLab tokens
CI secrets (GitHub Actions, CircleCI, etc.)
Cloud keys (AWS, GCP, Azure)
SSH keys used from this machine
Package registry tokens (npm, PyPI)
Any API keys in your shell environment or .env files
What it leaves behind (StepSecurity)
| System | Look for |
|---|---|
| macOS | LaunchAgent com.apple.sysmond.plist |
| Windows | scheduled task SysMon, Startup\sysmon.cmd |
| macOS / Linux | cron @reboot entries, ~/.config/.smt, .smtk, smt.cmd, $TMPDIR/.stk_* key files |
If the tunnel connected, StepSecurity says rebuilding the machine is safer than cleaning it.
If you are building…
- Treat editor extensions like dependencies: pin them and review updates. An auto-updating extension registry was the delivery route here.
- Reinstall the extension only after cleaning, and only version 2.1.314 or later.
- Keep tokens out of your shell environment where you can. The beacon collected variable names matching KEY, TOKEN, SECRET, PASS, AWS and GCP.
Run this on your codebase
Paste this into Claude Code in any repo you worked on from an affected machine:
List every credential this repo or its tooling can reach from my machine: .env files, shell exports, CI config, cloud CLI profiles, package registry configs and SSH config. For each one, tell me where it lives, what it unlocks and the exact page or command to rotate it. Don't print any secret values.