Backdoored Claude Code Extension on Cursor Marketplace: Enterprise Response Playbook
A backdoored Claude Code extension hit the Cursor marketplace on Oct 29. Here's how to check exposure, clean hosts, and lock down IDE extensions.
TLDR: On October 29, 2026, a tampered Claude Code extension (versions 2.1.312 and 2.1.313) sat on the Cursor marketplace for roughly 11 hours, auto-updating onto developer machines and dropping a persistent SSH backdoor plus host reconnaissance. Cursor pulled it, killed the marketplace temporarily, and got the attacker’s server taken offline. But uninstalling the extension doesn’t remove the persistence. If your developers run Cursor, audit for the svc-telemetry SSH key today, remediate or rebuild affected hosts, rotate exposed credentials, and use this incident to finally put IDE extensions behind an allowlist.
Why This Matters Now
Your developers install IDE extensions the way the rest of us install phone apps - quickly, on trust, and with auto-update on. On October 29, that trust got exploited. A malicious actor published a tampered build of Anthropic’s Claude Code extension to the Cursor marketplace as versions 2.1.312 and 2.1.313, and it sat there from about 2:27am PT to 1:35pm PT. Cursor says around 5,000 developer systems picked it up.
But here’s the catch: this isn’t really a story about Cursor, or Claude Code, or even this specific backdoor. It’s about a blank page in almost every enterprise security policy. Extensions run with the full permissions of the IDE and the user behind it. A malicious one reads your source code, your SSH keys, your cloud credentials in environment variables, and your session tokens - the moment it loads, no clicks required. And most IT teams have no inventory of what’s installed, no approval process, and no way to push back. If that description fits your org, this week is your forcing function.
At-a-Glance: What Happened
| Item | Detail |
|---|---|
| Compromised package | Anthropic.claude-code versions 2.1.312 and 2.1.313, macOS and Windows builds |
| Distribution point | Cursor VS Code Extension Marketplace (a malicious 2.1.313 also surfaced on Open VSX) |
| Exposure window | Oct 29, 2026, ~2:27am PT to ~1:35pm PT (roughly 11 hours) |
| Delivery | Auto-update - no user action needed beyond having auto-update enabled |
| Payload | Attacker SSH key (svc-telemetry) in authorized_keys, reverse SSH tunnel to 134.209.82[.]225, host recon beacon |
| Persistence | macOS LaunchAgent, Linux crontab, Windows scheduled task / Startup folder |
| Attacker infrastructure | Taken offline via the hosting provider; C2 no longer functional |
| Official VS Code marketplace | Not affected, per Anthropic (only Cursor’s marketplace builds were tampered) |
| Estimated impact | ~5,000 developer systems installed a malicious version (per Cursor, via Beaumont) |
| Fix version | 2.1.314 removes the backdoor from the extension - but does not clean already-infected hosts |
Sources: Cursor security notice (cursor.com/blog/claude-code-extension-security-notice); Phorion technical analysis (phorion.io/blog/offical-claude-code-vsx-compromise/); Kevin Beaumont / DoublePulsar incident writeup. All verified October 30, 2026.
How the Backdoor Actually Works
Phorion’s teardown is the best public analysis, and it’s worth understanding because the details shape your response. The tampered extension.js starts with an injected immediately-invoked function expression prepended to the otherwise normal minified bundle. It pulls in standard Node modules - child_process, fs, os, path, http, crypto - and executes the instant Node loads the file. That’s before the extension’s normal activate callback runs. You don’t click anything. You don’t even open a Claude Code panel.
Stage 1: the SSH key lands first
The payload creates ~/.ssh if needed and appends an attacker-controlled Ed25519 public key to ~/.ssh/authorized_keys, tagged with the comment svc-telemetry. Then it tries to make sure the local SSH daemon is actually running: systemctl on Linux, Remote Login on macOS, OpenSSH Server on Windows.
Earned insight: The attacker’s operational security was sloppy in a way that saved most victims from the worst outcome. On macOS, the script checks Remote Login status by running systemsetup -getremotelogin without elevation - but macOS refuses that call for standard users, printing “You need administrator access” and exiting 0. The script’s regex only looks for the string “Off”, doesn’t find it in the error text, and concludes SSH must already be on. It skips the enablement step entirely. Same story on Windows, where the setup command gets routed through a helper that hardcodes /bin/sh - which goes nowhere on Windows. Translation: on a typical developer Mac or PC without admin-privileged Cursor, the inbound access path was broken even though the key and persistence landed fine.
Don’t misread that as good news. The key is still in authorized_keys. The persistence is still installed. The recon beacon still fired. Anyone who already had Remote Login enabled - common on engineering Macs used for remote builds - was fully exposed.
Stage 2: the reverse tunnel calls home
The script decodes an embedded private key (comment svc-telemetry-tun), writes it to a dotfile in the OS temp directory, and opens a reverse SSH tunnel to 134.209.82[.]225 with -R *:0:localhost:22. That asks the attacker’s server to allocate a port and forward traffic back through the tunnel to the victim’s localhost:22. It prefers autossh when available, wraps everything in a detached retry loop firing every 60 seconds, and survives IDE restarts.
Stage 3: persistence that outlives the extension
This is the part your team most needs to hear. The payload installs OS-native persistence alongside the tunnel: a LaunchAgent disguised as com.apple.sysmond.plist on macOS, an @reboot crontab entry on Linux, a SysMon scheduled task (with a Startup-folder fallback) on Windows. Uninstalling the extension, updating to 2.1.314, even deleting Cursor - none of that touches these artifacts. They keep running.
Warning: Cursor’s 2.1.314 update removes the backdoor from the extension bundle but does nothing to hosts already infected. If your response plan is “push the update and move on,” you’ve patched the installer and left the implant. Every affected host needs the remediation script or a rebuild.
Stage 4: the recon beacon
Finally, the script POSTs host reconnaissance to the attacker’s server on port 8099: hostname, username, OS and architecture, home directory, working directory, global Git email, public IP, per-stage status flags - and up to 40 environment variable names matching /KEY|TOKEN|SE/. Names, not values. But treat that distinction as thin comfort: with a planted SSH key and persistent tunnel, values were one connection away.
Your Exposure Map: Who’s Actually at Risk
Not every org is equally exposed. Work through this honestly.
Directly exposed: any macOS or Windows machine that installed or auto-updated Anthropic.claude-code to 2.1.312 or 2.1.313 from the Cursor marketplace during the window. Cursor is the primary vector. Cursor auto-updates extensions by default, so “nobody installed anything new yesterday” is not a defense - check versions, not memories.
Possibly exposed: machines pulling from Open VSX. Security researcher Paul McCarty (6mile) confirmed a malicious 2.1.313 on the Open VSX registry as well. If your team runs VSCodium, Gitpod, or anything else fed by Open VSX, include those hosts in the audit.
Not exposed by this incident: the official Microsoft VS Code marketplace builds. Anthropic confirmed the tampering was limited to Cursor’s marketplace pipeline. Standard VS Code users who never touched Cursor or Open VSX builds are clear of this specific payload.
The uncomfortable middle: contractors, acquisitions, and shadow Cursor installs. The developers most likely to run Cursor are senior individual contributors who adopted it on their own - exactly the population least visible to IT asset inventories. If you don’t have endpoint telemetry covering extension installs, assume your inventory is incomplete and hunt broadly.
Earned insight: In every org I’ve watched deal with a developer-tooling incident, the official laptop fleet is clean and the exposure sits with two groups: contractors on unmanaged devices with VPN access to source control, and full-time engineers running a personal Cursor setup alongside the sanctioned IDE. Scope your audit to identities and repo access, not just MDM-enrolled hardware. The question isn’t “which managed laptops had Cursor” - it’s “which credentials touched our code from an unmanaged endpoint.”
Detection and Response Checklist
Do this in order. Skip nothing.
1. Hunt for the key (minutes, fleet-wide)
The fastest high-signal check. On macOS:
grep -qs svc-telemetry ~/.ssh/authorized_keys && echo "svc-telemetry key found" || echo "No key found; machine not impacted"
On 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" }
Push this through your MDM or endpoint tool today. Phorion notes the check should ideally verify the key fingerprint, not just the svc-telemetry comment string - the comment is trivially changeable, the key ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDdvylCEJ/k2TpezcTfedrkHyFSK9IZ3vmP6vhY4Ss0P with fingerprint SHA256:0Z6R+DF64Do is the durable indicator. Full VSIX hashes and network IoCs are in Cursor’s notice - hand those to your SOC for network-telemetry sweeps (egress to 134.209.82[.]225 on TCP 22, HTTP POSTs to port 8099 /beacon).
2. Isolate positives (same day)
Any host with the key gets isolated from source control, VPN, and shared credentials immediately. The attacker’s server is offline, which kills the tunnel - but assume recon data (hostnames, usernames, Git emails, env var names) already left the building during the ~11-hour window and any time between install and remediation.
3. Remediate or rebuild (this week)
Cursor published per-platform remediation scripts that remove the extension, the persistence mechanisms, the tunnel processes, and the planted key - and exit non-zero if anything remains. Run the macOS script as the affected user (not root); run the Windows script from an elevated PowerShell. Verify the exit code. Don’t eyeball it.
Remediation script strengths:
- Fast - minutes per host, scriptable across the fleet
- Verifies its own work with a non-zero exit on leftovers
- Official, matches the exact persistence artifacts of this payload
Remediation script weaknesses:
- Only removes what this payload is known to drop - no second-stage hunting
- Can’t confirm nothing else ran during the exposure window
- Leaves the “was anything exfiltrated beyond the beacon” question open
For hosts with access to production secrets, customer data, or signing infrastructure: rebuild. The script is fine for a standard dev laptop; it is not sufficient for a machine that held keys to the kingdom during an 11-hour window when an attacker’s tunnel may have been live. Your CISO will back you on this.
4. Rotate credentials (within 72 hours of confirmation)
From a trusted system, rotate everything reachable from an affected host: SSH keys, cloud access keys, Git hosting tokens, package-registry tokens, SaaS sessions. The beacon only exfiltrated env var names - but the planted SSH key plus persistence meant full interactive access was possible on hosts where the SSH path worked. Rotate as though values were taken. Because on some machines, they could have been.
Tip: Prioritize rotation by blast radius, not by certainty of theft. Cloud admin keys and source-control tokens first (they unlock everything else), then package registries, then SaaS sessions. A developer’s personal GitHub token with repo scope to your org matters more than their expired staging password - sequence accordingly.
Pricing Reality: What This Costs You
There’s no vendor price tag on this incident, so here’s the honest math: the cost ledger of a supply-chain scare versus the cost of the controls that prevent the next one.
| Cost item | Typical range | Notes |
|---|---|---|
| Emergency audit (1-2 SOC/IR days) | $5,000-$15,000 in loaded labor | Fleet-wide key hunt, network IoC sweep, triage - mostly staff time |
| Host rebuilds (per machine) | 2-4 hours of eng downtime each | Only for high-value hosts; script-remediation covers the rest at near-zero cost |
| Credential rotation | Half day of platform-team time | Plus developer friction re-authenticating; batch it, don’t dribble it out |
| Extension allowlisting rollout | Near-zero marginal cost | VS Code extensions.allowed policy via MDM + settings sync; Cursor respects VS Code policy keys - you’re configuring, not buying |
| macOS EDR with extension-visibility (if you lack it) | $8-$15/endpoint/month | Phorion, CrowdStrike, SentinelOne tier - the detectors that caught this first were endpoint tools, not marketplace scanners |
| Doing nothing until the next one | One real breach: $4M+ average (IBM Cost of a Data Breach) | Developer-laptop supply chain is now a proven initial-access path, not a theoretical one |
The takeaway: the preventive controls are configuration, not procurement. Allowlisting costs policy effort. The expensive line item is always the incident you didn’t prepare for. Verification date for EDR pricing bands: October 30, 2026, via vendor published list pricing.
Who Should Act Today - and Who Can Watch
Act today if: your org allows Cursor (sanctioned or tolerated), developers have local admin, you lack extension-install telemetry, or contractors access source control from unmanaged devices. That’s most mid-market tech companies. Start with the key hunt.
Schedule it this sprint if: you’re a standardized VS Code + Microsoft-marketplace shop with extension governance already in place. Verify the negative - confirm no Open VSX mirrors in your supply chain, confirm your policy actually blocks sideloading - then fold Cursor-marketplace rules into the same control.
Who should NOT spin up a war room: teams with no Cursor, no Open VSX, no AI-coding extensions, and enforced allowlists. Read the teardown, file it under “why our policy exists,” and move on. But if you’re in this group, you’re the minority - and today’s a good day to confirm it with data rather than assumption.
The Policy Fix: Extension Allowlisting That Developers Won’t Hate
Detection cleans up this incident. Policy prevents the next one. The good news: you don’t need new tooling, and you don’t need to declare war on your developers.
Inventory first. Pull installed-extension lists from endpoints before you restrict anything. You’ll discover the long tail - themes, formatters, and three different AI assistants per developer. That’s your negotiation baseline.
Allowlist by publisher, not by extension. Approving anthropic.*, ms-python.*, and a vetted set of AI-coding publishers is maintainable; approving 400 individual extension IDs is not. Pin versions for anything with network or filesystem access beyond the workspace.
Cover every marketplace, not just Microsoft’s. This incident is the proof: Cursor runs its own marketplace with its own pipeline, and Open VSX is a third. Your policy must name all three explicitly. VS Code’s extensions.allowed and extensions.gallery policies, pushed via MDM with settings sync enforced, cover the mechanism - but only if someone writes down which galleries are permitted.
Give developers a fast lane. The reason engineers bypass extension policy is latency: a two-week ticket to approve a formatter. Stand up a 48-hour review SLA for new extension requests with a lightweight rubric (publisher identity, marketplace source, requested permissions). You’ll get compliance because the legal path is faster than the workaround.
Earned insight: The single most effective control I’ve seen for this isn’t technical at all - it’s making the approved-extension catalog worth using. One platform team I worked with pre-approved 60 extensions covering 95% of requests, published the list with one-line justifications, and saw unapproved installs drop to near zero without blocking a single thing. Developers don’t bypass policy for fun; they bypass it when policy has nothing they need. Stock the catalog before you lock the door.
Bottom Line
A tampered Claude Code extension rode Cursor’s auto-update into roughly 5,000 developer machines and planted SSH persistence that survives uninstallation. Sloppy attacker tradecraft limited the worst-case inbound access on most hosts, but the recon beacon fired everywhere and the keys are still sitting in authorized_keys files right now. Cursor did the right things - pulled the build, shut the marketplace, rotated keys, killed the C2 - but none of that cleans your fleet.
The bigger story is structural. IDE extensions execute with user privileges on machines holding your most sensitive credentials, distributed through marketplaces with uneven vetting and installed with zero friction. There is no universe where that stays ungoverned. This incident is your budget justification, your policy mandate, and your tabletop exercise rolled into one.
Your 30-day action: hunt the svc-telemetry key across every endpoint this week, remediate or rebuild positives, rotate exposed credentials, and ship a v1 extension allowlist covering the Microsoft, Cursor, and Open VSX marketplaces before November ends.
FAQ
Does this affect regular VS Code users or only Cursor?
Only Cursor marketplace users (plus potentially Open VSX) are affected by this specific payload. Anthropic confirmed the official Microsoft VS Code marketplace builds were not tampered with. Standard VS Code installs pulling Anthropic.claude-code from Microsoft’s gallery are clear. But verify where your builds actually come from - developers running Cursor, VSCodium, or Gitpod-backed environments may be on the Cursor or Open VSX supply chain without IT realizing it.
Does uninstalling the extension remove the backdoor?
No. The payload drops OS-native persistence - a macOS LaunchAgent (com.apple.sysmond.plist), a Linux crontab @reboot entry, a Windows scheduled task plus Startup-folder script - that runs independently of the extension or the IDE. Updating to the fixed 2.1.314 removes the malicious code from the extension bundle but leaves every persistence artifact in place. You need Cursor’s remediation script or a full host rebuild.
How do I check if a machine is impacted?
Run grep -qs svc-telemetry ~/.ssh/authorized_keys on macOS/Linux or the equivalent PowerShell check on Windows (see the Detection section above). A hit means impacted. For fleet scale, push the check via MDM or EDR, and have your SOC sweep network telemetry for egress to 134.209.82[.]225 on TCP port 22 and HTTP POSTs to port 8099 /beacon. Full hash and network IoCs are published in Cursor’s security notice.
We don’t allow Cursor - are we in the clear?
Probably, but verify rather than assume. “Don’t allow” and “nobody runs” are different statements, especially with developers who install their own tooling. Check endpoint telemetry for Cursor binaries and Open VSX-sourced extensions, and audit source-control access logs for commits from unmanaged devices during the October 29 window. Contractor and BYOD endpoints are the classic gap.
Should affected laptops be rebuilt or just remediated?
Remediation scripts suffice for standard developer laptops: they remove the extension, persistence, tunnel processes, and planted key, and fail loudly if anything remains. Rebuild hosts that held production secrets, signing keys, customer data access, or cloud admin credentials during the exposure window. The beacon exfiltrated host details everywhere; on hosts where the SSH path worked, interactive access was possible. Match the response to the data at risk.
What credentials need rotating after exposure?
Everything reachable from an affected host, sequenced by blast radius: cloud provider access keys, source-control tokens (GitHub, GitLab), package-registry tokens, SSH keys, then SaaS sessions and staging secrets. The confirmed exfiltration was limited to env var names (not values), hostnames, usernames, and Git emails - but the planted SSH key meant values were obtainable on hosts where inbound SSH worked. Rotate from a trusted, clean system, not from the affected host itself.
How do I stop this class of incident with extension allowlisting?
Enforce VS Code’s extensions.allowed policy via MDM with settings sync, keyed on publisher identity rather than individual extension IDs. Name every marketplace explicitly - Microsoft, Cursor, and Open VSX - since each has its own publishing pipeline and vetting bar. Pre-approve a generous catalog (60+ extensions covers ~95% of requests in practice) and offer a 48-hour review SLA for additions. Developers comply with fast legal paths; they bypass slow ones.
Is the attacker’s server still active?
No. Cursor worked with the cloud provider hosting 134.209.82[.]225 to take it offline, so the reverse tunnel and recon beacon are no longer functional. That stops ongoing command-and-control but changes nothing about cleanup: persistence artifacts, planted SSH keys, and already-exfiltrated recon data remain. Treat the takedown as containment of future access, not remediation of past exposure.
Discussion