For eleven hours on 29 October, Cursor’s marketplace served a backdoored copy of the Claude Code extension. The backdoor mostly failed. What it left behind did not. A week on, Cursor has not said how the attacker got in, and the setting that would have skipped it is still off.
Picture a developer who opened Cursor on the morning of 29 October, did a day’s work and closed the lid. Somewhere in that day, with no dialog and no click, the editor fetched version 2.1.313 of the Claude Code extension, the official one, published under Anthropic’s name, and ran it. That copy had been tampered with. Before the extension even activated, a loader stitched to the front of its JavaScript bundle added an attacker’s SSH key to the machine, tried to switch on the SSH service, dialled out to a server the attacker controlled and posted a summary of the machine back to it.[1][2][3]
That is the whole incident in a paragraph, and the most important word in it is “fetched”. Nobody chose this. An auto-update did what auto-updates are for: it noticed a newer version of something you already trusted and installed it. The trust was real. Anthropic does publish this extension. The version number was plausible. The code was mostly Anthropic’s. The eleven hours it took for someone to notice were not a failure of anyone being careless; they were the ordinary speed of a marketplace doing its job. This is not a story about a dodgy download. It is a story about the plumbing.
Cursor’s notice puts the window at roughly 2:27am to 1:35pm Pacific on 29 October and says the tampered versions, 2.1.312 and 2.1.313, were built for Windows and macOS.[1] In a statement quoted by The Hacker News, Cursor put the exposure at “at most 5,000 users”.[3] Phorion, the endpoint-security firm whose teardown I lean on below, found the loader also carried Linux logic.[2] Anthropic says its systems were not breached,[6][7] there is no evidence the versions reached Open VSX or Microsoft’s marketplace, and by 30 October the latest version on both was 2.1.314.[3] Microsoft confirmed that its own marketplace and the npm package were untouched.[3][7] Cursor has not said how the attacker got access to its marketplace, and as of 5 November that sentence has not changed.
A backdoor that mostly failed
The details are where the lessons hide, so read this part slowly. Phorion’s teardown walks through it in order. The loader made sure ~/.ssh existed and appended a public key, labelled svc-telemetry, to authorized_keys, then tried to switch on the machine’s SSH service. It opened a reverse SSH connection to an attacker-controlled host, asking that server to allocate a port forwarding back to the victim’s port 22, with a retry loop every sixty seconds. It installed persistence: a LaunchAgent on macOS, a scheduled task on Windows, a cron entry on Linux. Then, about a second and a half later, it sent a beacon over plain HTTP: hostname, username, operating system, home directory, working directory, the global Git email, public IP, and the names, not the values, of up to forty environment variables matching words like KEY, TOKEN, SECRET, PASS, AWS and GCP.[2]
Here is the part that surprised me. Switching on SSH mostly did not work, and the reasons are almost slapstick. On macOS the script checked whether Remote Login was on by running a system tool that needs administrator rights. Without them the tool printed an error and exited cleanly, the script read that as “already on” and never tried to enable anything. On Windows the PowerShell command to install an SSH server was passed through a helper that hardcodes /bin/sh, which a standard Windows machine does not have. And there was no privilege escalation anywhere: as Phorion notes, a non-interactive sudo fails unless passwordless sudo is already configured.[2] Cursor’s own notice says the same: enabling SSH requires rights the extension usually lacks, so that step likely failed on most hosts.[1]
It would be a mistake to relax at that point. A backdoor that mostly failed is still a backdoor. The key is in authorized_keys. The persistence is installed. The tunnel keeps dialling out every minute. If Remote Login is ever enabled on that Mac later, for an ordinary reason, the door is already unlocked.[2] And the beacon succeeded regardless: the attacker now holds a list of machines, who uses them, which cloud providers they talk to and which secrets they hold, by name. Phorion also notes a bug in the Linux cron handling that can wipe a user’s existing cron jobs on repeat runs, which is what code written in a hurry does.[2]
Cursor’s advice follows from all this. Uninstalling the extension does not remove what it left behind. Check authorized_keys for the svc-telemetry key, remove the LaunchAgent, scheduled task or cron entry, kill the tunnel processes, rotate any credentials reachable from that machine using a different, trusted machine, and consider a rebuild. Cursor published scripts for macOS and Windows, and says to follow the remediation steps regardless of whether the SSH step succeeded.[1]
What ran on a Cursor user’s machine on 29 October
The sequence reported by Cursor and Phorion for the tampered 2.1.313 extension. Window times are from Cursor’s notice, converted to UTC; the order of the loader’s stages is from Phorion’s analysis.
09:27 UTC · Cursor marketplaceLive
Tampered 2.1.312 and 2.1.313 become available. Microsoft’s marketplace is untouched; no evidence they reached Open VSX.
During the day · EditorInstalled
Auto-update installs the new version. The loader runs when the file loads, before the extension activates. No click, no dialog.
Seconds later · LoaderKey placed
Appends the svc-telemetry key to authorized_keys, installs persistence, starts a reverse SSH tunnel retrying every 60 seconds.
Same moment · LoaderSSH not enabled
Tries to switch on SSH. macOS: needs admin, reads the error as “already on”. Windows: calls /bin/sh. Mostly fails.
+1.5 s · LoaderBeacon sent
Posts hostname, user, Git email, public IP and the names of up to 40 secret-looking environment variables over plain HTTP.
20:35 UTC · CursorRemoved
Removes the versions. Later: shuts the marketplace, rotates keys, rebuilds it, has the attacker’s server taken offline. Root cause not yet published.
Everything from “Installed” onwards happened without the developer doing anything. A marketplace install cooldown of 24 hours would have prevented the second step; the default in Cursor is zero.
What the two companies have said, and what they have not
Cursor’s notice is a good document about what Cursor did and a silent one about what happened to Cursor. It did a lot: removed the versions, blocked further distribution, shut the whole marketplace down as a precaution, audited access and found no other tampered extensions, rotated its keys, rebuilt the marketplace and had the hosting provider take the attacker’s server offline.[1] Then it stops. The notice says the version “was made available” during the window, which is the passive voice you reach for when the active voice would name a cause.
Anthropic’s account came from its engineers posting on X, which The Register treated as the company’s statement: it was not a compromise of Anthropic’s systems or employee laptops, a malicious actor used access to Cursor’s marketplace to publish a tampered copy, and the official channels were unaffected.[3][6] Anthropic also confirmed to Microsoft that its systems were not compromised and that it did not build the package.[7] Cursor has not said how the build reached its marketplace, and some security commentators had initially alleged a breach at Anthropic, which is the claim Anthropic is answering.[6] One company says “not us”, the other says “we fixed it”, and the gap between them is exactly the shape of the question everyone is asking.
Cursor’s own documentation sharpens that question. Open VSX is the registry for third-party extensions, Cursor says, but searches and downloads go through Cursor’s own marketplace proxy, which runs malware and supply-chain analysis before offering an extension.[4] Open VSX, as far as anyone can tell, never had the tampered build.[3] So the bad artefact appears to have entered somewhere between the registry and the editor, in the layer Cursor runs, and whatever analysis that layer ran, a loader built to edit authorized_keys was offered anyway. Until Cursor explains that, the honest status is: contained, remediated, unexplained. I would treat the 5,000 figure with the same care. It is Cursor’s upper bound, not a count of compromised machines. Cursor’s own test is whether the key is present,[1] and Microsoft notes that even a running SSH process does not by itself mean the attacker got in.[7]
The setting that would have skipped it
Now the useful part. The tampered build lived for about eleven hours. That number matters because both editors involved already have a control built around exactly that kind of window, and in Cursor it is off by default.
VS Code added a delay to automatic extension updates earlier this year, and version 1.125, released in June, made it configurable through extensions.autoUpdateDelay: by default VS Code waits two hours before installing an automatic extension update, and you can set the delay in hours.[5] Cursor has its own version. Team owners and admins can set a Marketplace Install Cooldown in hours, which defers installs and updates until a version has been published for at least that long, and once set it applies to the whole team and overrides individual settings. Individuals can set extensions.installCooldownHours themselves if their team has not. The default is zero.[4]
Run the arithmetic. A two-hour delay would not have saved a Cursor user, because the build was live for eleven. A 24-hour cooldown skips it entirely: by the time the editor was allowed to install 2.1.313, the version no longer existed. The cost is that every genuine update arrives a day late. For an extension that can read your repositories and run commands, I find that trade easy. The caveat: a cooldown is a bet that someone else notices first. It paid here because Phorion and others were watching. It will not always.
A cooldown is not the only layer, and Cursor’s documentation is candid about that: it lists allowlists of approved publishers, signature verification against Open VSX, publisher verification badges and the cooldown as layers that complement, not replace, marketplace scanning.[4] The sobering fact is that the extension carried a legitimate publisher name and would have sailed through an allowlist. Of all those layers, the cooldown is the only one that defends against a tampered copy of something you already trust.
If you are not a developer
A small business reading this may not run Cursor, but its contractor might, and the beacon tells you why that matters. The loader shipped the names of environment variables containing AWS, GCP, TOKEN or KEY. On a developer’s laptop those names are often the keys to your cloud account, your payment provider or your database. A compromised development machine is not a developer’s problem; it is a credential problem for every system that machine could reach.
The question to ask anyone who writes code for you is simple and not accusatory: do you use Cursor, did you have the Claude Code extension installed on 29 October, and have you run Cursor’s check? If the answer to the first two is yes, the credentials that machine held should be rotated from somewhere else, whatever the check says, because the beacon was the one part that reliably worked. And if your developers have a team plan, ask whether the install cooldown is set to something other than zero. It is one field. It costs a day. On 29 October it would have been the difference.
Working on a workflow like this? Hamsa helps finance and operations teams connect their tools and handle the exceptions, starting with one workflow.
A German web host built a connector so customers' AI assistants could manage their hosting. An attacker found a flaw in it, read the stored tokens and reached 56 projects. What Mittwald has confirmed, what is only suggested, and the cleanup that falls on customers.
A saved replacement, a running service and an attacker’s existing access can change at different times. Railway’s guidance explains why that matters; PingCAP and PHP show where the next job differs.