Security notice · Developer tools · October 30, 2026
The fake Claude Code extension, explained: what it left on computers, and why uninstalling may not be enough
An extension is an add-on for a code editor. On October 29, one carrying the name of Claude Code, Anthropic's AI coding tool, turned up in Cursor's extension store with malicious code inside.
The short version
A modified Claude Code extension, versions 2.1.312 and 2.1.313, was available in Cursor's marketplace for about 11 hours. Cursor says it was not developed by Anthropic and affected at most 5,000 users. It tried to install a persistent SSH backdoor, a hidden way to log in to the computer from elsewhere. Cursor has removed it, but removing the extension may not remove what it left behind.
What happened
Cursor's security notice says the malicious builds were available between about 2:27 am and 1:35 pm Pacific on October 29, 2026. Cursor updated the notice on October 30 to name two versions, 2.1.312 and 2.1.313, each with two builds: macOS on Apple silicon and 64-bit Windows.
Cursor says it removed the version, shut the marketplace down as a precaution, audited access, found no other tampered extensions, rotated its keys and brought the marketplace back. It says the attacker's server no longer functions. In its post on X, it asks all customers to update to version 2.1.314.
Which store was hit caused some confusion, since early posts named others. Cursor's notice confirms its own marketplace. Microsoft's analysis says the packages were never published or distributed through the Visual Studio Marketplace or npm, and that Anthropic told Microsoft its systems were not compromised. Neither explains how the fake builds got in.
How it works: what stays behind
According to Cursor, the fake build did three things. It added an attacker's SSH key, which works like a login pass, under the label svc-telemetry. It installed scripts that restart with the computer and retry a tunnel to the attacker about every 60 seconds. And it sent details to the attacker's server: hostname, username, operating system, Git email, public IP and the names of environment variables.
Turning on the SSH service needs admin rights, which the extension generally lacks on most Mac and Windows machines, so Cursor says that step fails there. The key and the scripts are added anyway. BleepingComputer, citing researchers at Phorion and OpenSourceMalware, reports that coding errors likely stopped remote access on many machines as well. Microsoft adds that the payload took up to 40 environment variable names matching terms like KEY or TOKEN, the names and not the values, and hid its errors so the extension kept working normally. The code also has a Linux path, a cron entry at reboot, though Cursor's list of affected packages covers macOS and Windows.
Try it: what does each step clear?
- The fake extensionPresent
- The svc-telemetry keyPresent
- The retry scripts and tunnelPresent
- Credentials reachable from this machineAt risk
Press a step. This is a simplified picture of Cursor's guidance, which also says to weigh a full rebuild.
Reactions
"Updating the extension alone doesn't prove the machine is clean."
Florian Roth (@cyb3rops), security researcher, October 30, 2026
"A malicious actor used access to Cursor's marketplace to publish a tampered copy of the Claude Code extension, which we didn't build or publish."
Felix Rieseberg (@felixrieseberg), Anthropic, October 30, 2026
Timeline
- Oct 29, 2:27 am PT The malicious builds become available in Cursor's marketplace.
- Oct 29, 1:35 pm PT The window closes.
- Oct 29 Cursor's notice is dated this day.
- Oct 30 Anthropic releases version 2.1.314. Its release notes do not mention the incident. Cursor announces the incident on X.
- Oct 30, 11:30 am PT Cursor updates its notice, adding 2.1.312 and new indicators.
- Oct 30 Microsoft publishes its analysis.
What to do
- If you use Claude Code inside Cursor, check for version 2.1.312 as well as 2.1.313, and search your SSH authorized keys file for
svc-telemetry. Cursor's notice has the exact commands for Mac and Windows. - If it's there, isolate the machine. Microsoft advises saving evidence (the extension package, changed SSH files, startup entries) before cleanup. Then run Cursor's cleanup script for your platform. Cursor says to assess whether a rebuild is needed.
- Change the credentials and sessions that machine could reach, working from a different, trusted computer.
- Update to 2.1.314.
- For a team, Microsoft suggests limiting Cursor extensions to approved publishers and waiting a set time before installing new versions.
Questions people are asking
Was Anthropic hacked?
Anthropic says no. Microsoft reports that Anthropic confirmed its systems were not compromised, and Anthropic's Felix Rieseberg says it wasn't a compromise of its systems or employee laptops. Cursor also says the versions were not developed by Anthropic.
I use Claude Code in the terminal. Am I affected?
All the evidence so far says no. The notice covers extension packages from Cursor's marketplace. Microsoft says the Visual Studio Marketplace and npm were not affected, and that everything found so far limits the incident to Cursor's marketplace.
Were my API keys stolen?
Cursor lists the names of environment variables among the data sent, not their values. Cursor still advises changing credentials on affected machines, because the fake build ran code there.
How did it get into the store?
Nobody has said in detail. Anthropic's Rieseberg says the attacker used access to Cursor's marketplace. Cursor's notice and Microsoft's analysis do not explain how.
If the login fails, why worry?
The key and scripts remain, and other details were already sent. Cursor says risk remains and asks people to clean up.
Updates
October 31, 2026. Cursor updated its notice: version 2.1.312 was tampered with too, not only 2.1.313. Correction: this page had named only 2.1.313. Microsoft published an analysis saying the packages never reached the Visual Studio Marketplace or npm, and that Anthropic confirmed its systems were not compromised. BleepingComputer reports that coding errors likely blocked remote access on many machines, though the key and the scripts still land, so the cleanup steps stand.
October 30, 2026. This page went up. It covers everything known as of October 30, 2026.