Anthropic's VS Code Extension Backdoored on Cursor for 12 Hours
Anthropic's official VS Code extension reportedly appeared in backdoored form in Cursor's extension channel, exposed for nearly 12 hours.

One click. That is all it takes to install a code editor extension — which is exactly what makes the latest supply-chain scare so uncomfortable. For nearly twelve hours, according to Ars Technica's report, a backdoored version of Anthropic's official VS Code extension was reachable through Cursor, the AI code editor used by millions of developers, before it was finally pulled from circulation. Twelve hours is a long-haul flight with a layover. It is also plenty of time for a bad build to find its way onto a great many machines.
What the malicious code actually did — whether it siphoned data, opened an outbound channel, or simply lay in wait for instructions — remains an open question as investigators dig in. But the outline of the incident alone is enough to chill the engineering world: one of the most trusted names in AI turned out not to be immune to the oldest attack in software, the one where the enemy comes in through something you volunteer to download.
Some context on why Cursor matters here. Cursor is a fork of VS Code built by Anysphere, and because Microsoft's licensing terms do not allow its official marketplace to be used by non-Microsoft builds, the editor sources extensions from Open VSX, the open registry operated by the Eclipse Foundation. That means an extension listed in Cursor's ecosystem travels a different distribution path — with a different chain of custody — than the same package in vanilla VS Code. Every additional link in that chain is a new layer of trust that has to be maintained.
Then there is the matter of privilege. Extensions are not cosmetic: they run with the user's permissions, they can read and write files, execute commands, and peer into your workspace configuration. VS Code and its descendants update extensions automatically by default, and a single validated update can reach the entire user base within minutes. The whole security model rests on one assumption — that the publisher can be trusted.
Which is what makes the irony of this incident razor-sharp. The name under attack was Anthropic, the lab whose flagship product, Claude, is used by millions of people precisely to write and review code. Developers install the official Anthropic extension because they want the smoothest possible path from their editor to the model. Planting a backdoor on that very path is sabotage of the layer least likely to be questioned by anyone.
The Storefront Nobody Watches
Extension marketplaces have long behaved like shop windows whose keepers trust every supplier. Review processes at the big registries have historically been thin; minor version bumps routinely slip through without deep inspection; and on an open registry like Open VSX, the friction to publish a package is deliberately low — that is the design, in service of openness. Openness has a price: anyone who controls a publisher account, or is clever enough to imitate a publisher's identity, stands one step away from shipping code straight to thousands of machines.
The scale compounds the vertigo. AI editors have gone from niche curiosities to standard equipment at large companies in a remarkably short span, and every extension that follows them is a small distribution channel onto a developer's machine. An ecosystem that size will always outrun even the most diligent security audit; by design, innovation arrives before oversight does.
This incident is not a one-off; it is the latest verse of a repeating song. In March 2024, the software world convulsed over xz-utils: a years-long social-engineering backdoor that nearly reached mainstream Linux distributions, caught only because one researcher, Andres Freund, got curious about a roughly 500-millisecond latency increase in his SSH sessions. In September 2025, a popular npm package called postmark-mcp was caught planting a secret BCC rule: according to findings published by Koi Security, every email users sent — including ones carrying verification codes and password resets — was quietly copied to an attacker-controlled address. That same month, npm was swept by Shai-Hulud, a self-replicating worm that crawled through hundreds of packages harvesting publisher tokens; many researchers called it the first worm ever to spread through that registry.
The common thread: the adversary did not breach the walls — they hid inside things we install without asking questions. Security folks call it a supply-chain attack, and AI tooling is the most tempting bait they have ever been handed.
AI Editors Are a Bulked-Up Target
Why are AI editors such a prize? Because they sit on top of a treasure chest: API tokens, cloud credentials, SSH keys, .env files stuffed with secrets, unreleased proprietary code, and sometimes access to MCP servers — the protocol connecting AI agents to external systems. One malicious extension in that environment does not need an expensive zero-day exploit. It just needs to be a diligent reader.
There is also a newer layer of risk that arrives with the agentic era. AI tools are no longer content to sit and read code — they execute commands, call services, and increasingly act through agents trusted to write, test, and deploy on their own. When a tool stops being a pair of eyes and becomes a pair of hands, a malicious extension graduates from voyeur to actor. That is exactly why incidents like this one deserve to be treated as a siren rather than a passing tech headline.
The Anthropic-on-Cursor incident crystallizes the shifting threat model, and it also offers a strangely reassuring calibration: in an ecosystem that moves as fast as AI tooling, a nearly 12-hour exposure ending in removal is not the worst detection record in supply-chain history — cases have dragged on for months and even years. But speed is no absolution. Every hour, thousands of new coding sessions light up around the world, and nobody knows exactly how many of them loaded the wrong version.
For engineering teams, the lessons are old and routinely ignored. Treat extensions like production dependencies: pin versions, review the diff of every update to critical tools, and limit the credentials reachable from your coding environment — never keep production tokens on the same machine where you casually try out new extensions. Publishers and registry operators share the homework: sign artifacts, publish verifiable hashes, and add a publication delay for updates that change permissions. None of this is rocket science; what is scarce is the discipline to do it before something burns.
In the end, extensions are installed on trust — and trust, unlike software, has no patch button. Marketplaces can add digital signatures and publishers can add audit trails, but the last line of defense remains at our desks: the simple question worth asking often — where did this come from, and who checked it? As long as developers keep installing tools with one click and trusting them indefinitely, backdoors do not need to be forced. They just need to knock softly, and someone will open the door.



