# Cursor served a backdoored Claude Code extension to as many as 5,000 developers

Published 2026-11-06 by Row House Tech News. Canonical URL: https://rowhousetech.com/articles/cursor-backdoored-claude-code-extension

> The tampered extension sat in Cursor's marketplace for about 11 hours. The backdoor it installed stays until someone removes it by hand.

The tampered extension sat in Cursor's marketplace for about 11 hours. The backdoor it installed stays until someone removes it by hand.

Cursor's October 29th security notice identified tampered Claude Code packages in its Visual Studio Code (VS Code) extension marketplace. Cursor estimated at most 5,000 affected users.

The poisoned package carried the official Anthropic publisher name and reached machines through automatic updates. A week later, nobody has said how it got there. It is not the only route into company laptops that runs through AI coding tools. Flaws in two other tools let rogue tool servers run code, and a May breach at GitHub began with a poisoned extension.

## A Tampered Claude Code Build Sat in Cursor's Marketplace for 11 Hours

An automatic extension update could run attacker code before a developer opened a conversation.

Claude Code is Anthropic's coding assistant, and many developers run it as an extension inside Cursor, an AI code editor built on VS Code. Cursor runs its own extension marketplace, separate from Microsoft's, and that is where the swap happened. Someone with publishing access replaced the genuine Claude Code listing with a modified build that behaved like the real thing and also planted a backdoor. Editors fetch extension updates when they start, so opening Cursor that morning was enough to receive it.

The two affected builds, versions 2.1.312 and 2.1.313, reached macOS and Windows users on October 29th, 2026. They were available between 2:27 a.m. and 1:35 p.m. Pacific time, about 11 hours.

StepSecurity's November 1st analysis found the real extension inside the package, with a block of malicious code added at the front. The version number inside the package didn't match the one on the listing, one of the few signs a careful developer could have spotted. The package kept the legitimate anthropic.claude-code identifier, and the added code ran the moment the extension loaded.

The added code existed to give the attacker a way back into the machine. Cursor's analysis found three steps.

- It reported the machine's name, the username, the developer's Git email and the public IP address to the attacker.

- It tried to add the attacker's SSH key, switch on remote login and open a tunnel back out.

- It installed itself to restart on every boot, so removing the extension did not remove it.

Cursor said enabling SSH usually required administrator rights the extension lacked, so that step likely failed on most hosts. Key addition, persistence, and host reporting still occurred.

Phorion CEO Calum Hall's analysis found the same persistence logic written for macOS, Linux and Windows, though the Windows version carried a bug that hardcoded /bin/sh, a Linux path that won't work on a standard Windows install.

Once it found the tampered builds, Cursor removed them and briefly shut its entire marketplace. It audited who had publishing access, found no other tampered extensions, rotated its keys and rebuilt the marketplace before bringing it back. It also worked with the hosting provider to take the attacker's server offline. That cut the backdoor off from its operator, but it removed nothing from the machines already infected, which is why Cursor published cleanup scripts for macOS and Windows.

### The Operator's Lens

- Assign endpoint responders explicit cleanup responsibility for affected hosts, including SSH keys and persistence artifacts outside the extension directory.

Knowing where the package came from mattered for a second reason. For the first day, the wrong company was getting the blame.

## Anthropic Was Blamed Before Cursor's Marketplace Was Confirmed as the Entry Point

A familiar publisher name cannot establish where a malicious package entered the distribution chain.

Because the listing carried Anthropic's name, security commentators first alleged a breach at Anthropic. Within a day, Anthropic and Cursor both pointed to Cursor's marketplace. Anthropic's Felix Rieseberg denied any compromise of Anthropic systems or employee laptops and attributed the upload to malicious access to Cursor's marketplace.

The next question was whether the same build had reached the other places developers get the extension. Microsoft said it never reached the Visual Studio Marketplace or npm. Early reports naming Open VSX, a third registry, were corrected, and StepSecurity found a clean Open VSX package that only shared a version number with the tampered Cursor release. Anthropic security engineer David Dworken confirmed the official channels were untouched. Only Cursor's marketplace served it.

Cursor, which SpaceX agreed in June to buy for $60 billion in stock, has not explained how the attacker obtained publishing access.

Fake copies of AI coding tools were already a running campaign on the registries these editors use. Socket reported on March 13th at least 72 malicious Open VSX extensions since January 31st. They were delivered through the extensionPack and extensionDependencies fields, so the editor installs the payload on its own. Several were aimed at Claude Code, Codex and Antigravity users, including one named gvotcha.claude-code-extension. In April, Socket found 73 cloned sleeper extensions whose payload installs into every editor it finds: VS Code, Cursor, Windsurf and VSCodium. The Cursor incident is the first time the real publisher's listing was replaced rather than imitated.

### The Operator's Lens

- Turn on VS Code's extensions.allowed setting through the AllowedExtensions device policy (1.96 and later). Allow by publisher and pinned version, and let it disable anything already installed outside the list. Cursor and other forks run their own marketplaces, so ask those vendors for the same control before you approve them.

A tampered package is one way in. The next two cases needed no tampering at all, because the genuine tools would run outside instructions on their own.

## OpenCode and Copilot Flaws Let Rogue MCP Servers Run Code on Developer Machines

Authentication and configuration handling opened execution paths outside ordinary approval checks.

AI coding agents reach outside tools through the Model Context Protocol, or MCP. It is a standard that lets a developer plug servers into the agent for databases, browsers and ticketing systems. Signing in to one of those servers is where OpenCode, an open source coding agent, went wrong. Pillar Security disclosed on October 19th that a malicious MCP server could run commands on a developer's Windows or Windows Subsystem for Linux (WSL) machine during the sign-in step.

Affected versions run from 1.0.137 through 1.18.32, and Pillar proposed a severity score of 9.8 out of 10 for a tool with about 3 million weekly npm downloads.

OpenCode handed the sign-in web address straight to PowerShell without protecting it, so a server could tuck a command into the address and have it run. A developer had to start the sign-in for it to work; adding the server alone was not enough.

Anomaly, OpenCode's maker, fixed it in version 1.18.33 on September 28th. It treated the report as out of scope because a malicious MCP server is outside its threat model. It requested no Common Vulnerabilities and Exposures (CVE) identifier and published no advisory. Vulnerability scanners therefore have nothing to match. The Cloud Security Alliance added that the flaw needs a developer to start sign-in, which would put the score near 8.8.

GitHub Copilot for Visual Studio had a related weakness, CVE-2026-103572, which Microsoft rated 8.8 and patched on October 13th. Copilot asks for approval before editing its MCP configuration file, but its check compared filenames before Windows cleaned them up. A file named .mcp.json. with a trailing dot slipped past the check, and Windows then treated it as .mcp.json. A prompt injection could use that gap to add an attacker's server, which the editor would launch. Neither flaw is known to have been exploited.

The servers don't even have to be malicious. Glow Labs reported on November 3rd that AI coding agents keep installing deprecated MCP reference servers because the models remember the package names. In 98% of the sessions Glow studied, the agent picked the package unprompted. They have been downloaded more than 17.3 million times since July 2025, and four high-severity flaws in them will never be patched. Researcher Nadav Claude Cohen saw an agent read the deprecation notice, install the package anyway, and say nothing.

### The Operator's Lens

- Move every developer using OpenCode to version 1.18.33 or later, since the fix has no CVE and no scanner will flag the old versions.

- The Copilot fix is in the October 13th Visual Studio update, so make sure that update is installed, not just offered.

None of this would matter as much if a developer laptop held only code. It holds the keys to everything the developer can reach, and GitHub learned in May what happens when one of those laptops is poisoned.

## Poisoned Developer Tools Already Reached GitHub's Internal Repositories

A compromised developer device gave attackers a route into GitHub's internal code.

In May, GitHub said internal repositories were exfiltrated after a poisoned VS Code extension compromised an employee device. TeamPCP, a criminal group that specializes in supply chain attacks, claimed approximately 3,800 repositories. GitHub called that estimate directionally consistent with its investigation.

The extension was Nx Console, an add-on for projects built with Nx, with an installed base Aikido Security researcher Charlie Eriksen put at 2.2 million. It was live for only minutes, yet Nx telemetry later counted about 6,000 activations. One of them belonged to a GitHub employee.

Nx said the attacker published it with a contributor's GitHub token stolen in an earlier supply chain attack. The tampered extension did nothing visible. When a developer opened a project, it quietly ran npx, a utility that fetches and runs JavaScript packages. The real payload came from a hidden commit in Nx's own repository, where it passed for legitimate code.

That payload was a credential harvester. It collected GitHub, npm, AWS, Vault, Kubernetes and 1Password secrets, and Claude Code configuration under ~/.claude/, including MCP server credentials. On May 27th CISA added the compromise to its Known Exploited Vulnerabilities catalog as CVE-2026-48027.

GitHub isolated the employee's machine and rotated critical secrets. It found no evidence of affected customer information outside those repositories.

### The Operator's Lens

- Take local administrator rights off developer laptops by default; the SSH step in the Cursor attack failed on most machines for exactly that reason.

- Rotate AI tool and MCP server tokens with the rest when a developer machine is compromised; they live in dot-folders most rotation checklists skip.

The three stories share one shape. A developer's editor is trusted to install code, run it and hold the keys, and each case abused one of those three. Controls that cover only one stage leave the other two open.

## Sources

### A Tampered Claude Code Build Sat in Cursor's Marketplace for 11 Hours

- [BankInfoSecurity — Cursor Confirms Anthropic Claude Code Extension Compromised](https://www.bankinfosecurity.com/cursor-confirms-anthropic-claude-code-extension-compromised-a-33263)
- [Cursor — Security notice: malicious version of Anthropic.claude-code (2.1.313) identified in the Cursor Extension Marketplace](https://cursor.com/blog/claude-code-extension-security-notice)
- [Help Net Security — Claude Code extension poisoned with persistent SSH backdoor](https://www.helpnetsecurity.com/2026/10/30/claude-code-extension-ssh-backdoor)
- [Phorion — Official Claude Code VSX compromise](https://phorion.io/blog/offical-claude-code-vsx-compromise/)
- [StepSecurity — Trojanized Claude Code Extension Delivered Persistent SSH Backdoor to Developer Machines](https://www.stepsecurity.io/blog/claude-code-extension-trojanized)

### Anthropic Was Blamed Before Cursor's Marketplace Was Confirmed as the Entry Point

- [Built In — SpaceX acquires Cursor](https://builtin.com/articles/spacex-acquires-cursor-60b-20260616)
- [Microsoft — VS Code: Managing extensions in the enterprise](https://code.visualstudio.com/docs/enterprise/extensions)
- [Socket — 72 Malicious Open VSX Extensions Linked to GlassWorm Campaign Now Using Transitive Dependencies](https://socket.dev/blog/open-vsx-transitive-glassworm-campaign)
- [The Hacker News — Official Claude Code Extension on Cursor Marketplace Trojanized with Persistent SSH Backdoor](https://thehackernews.com/2026/10/official-claude-code-vs-code-extension.html)
- [The Register — Anthropic: That Claude Code extension compromise … couldn't be us](https://www.theregister.com/cyber-crime/2026/10/30/anthropic-that-claude-code-extension-compromise-couldnt-be-us/5306682)

### OpenCode and Copilot Flaws Let Rogue MCP Servers Run Code on Developer Machines

- [Cloud Security Alliance — MCP Launch Paths as RCE: The opencode OAuth Flaw and Copilot CVE-2026-103572](https://labs.cloudsecurityalliance.org/research/csa-research-note-mcp-launch-path-rce-opencode-copilot-20261/)
- [Help Net Security — AI coding agents are installing MCP servers that will never be patched](https://www.helpnetsecurity.com/2026/11/03/mcphantom-deprecated-mcp-servers)
- [Pillar Security — Open and Shut: Remote Code Execution in opencode via MCP OAuth](https://www.pillar.security/blog/open-and-shut-remote-code-execution-in-opencode-via-mcp-oauth)
- [The Hacker News — OpenCode Flaw Lets Malicious MCP Servers Execute Code During Sign-In on Windows and WSL](https://thehackernews.com/2026/10/opencode-flaw-lets-malicious-mcp.html)

### Poisoned Developer Tools Already Reached GitHub's Internal Repositories

- [CISA — Supply Chain Compromises Impact Nx Console and GitHub Repositories](https://www.cisa.gov/news-events/alerts/2026/05/28/supply-chain-compromises-impact-nx-console-and-github-repositories)
- [Corgea — Nx Console VS Code Extension Credential Stealer (May 2026)](https://corgea.com/research/nx-console-vscode-extension-credential-stealer-may-2026)
- [Help Net Security — TeamPCP breached GitHub's internal codebase via poisoned VS Code extension](https://www.helpnetsecurity.com/2026/05/20/github-breached-teampcp/)
- [StepSecurity — Nx Console VS Code Extension Compromised](https://www.stepsecurity.io/blog/nx-console-vs-code-extension-compromised)

Related Row House Tech service: [Security, AI governance & vCISO](https://rowhousetech.com/consulting-security)
