Skip to content
KoishiAI
ไทย
← Back to all articles

Claude Code Extension Hack: Cursor Backdoored for 12 Hours

Learn how a malicious Claude Code extension backdoored Cursor IDE, exposing developers to SSH attacks and credential theft for nearly 12 hours.

AI-drafted from cited sources, fact-checked against them by an automated pipeline, and read by a human editor for clarity. How we work · Standards · Report an error
Illuminated laptop keyboard with Matrix-style green code cascading down screen.
Photo by Rafael Minguet Delgado on Pexels

TL;DR: A backdoored Claude Code extension compromised up to 5,000 Cursor users by injecting SSH keys and stealing credentials over a twelve-hour window. This incident exposes critical security gaps in AI-powered IDEs that disable default protections like Workspace Trust, highlighting urgent risks in their supply chains.

Key facts

  • A malicious version of Anthropic’s Claude Code extension (v2.1.313) was distributed via Cursor’s marketplace from 2:27 a.m. to 1:35 p.m. PT on October 29, 2026.
  • The compromise exposed up to 5,000 developers to SSH backdoors and credential theft before the malicious package was removed from the platform.
  • The malware injected attacker-controlled SSH keys and established reverse tunnels to external IP 134.209.82[.]225 using a JavaScript loader in the main file.
  • Cursor disables ‘Workspace Trust’ by default, allowing untrusted repositories to execute code without user consent, significantly expanding the attack surface.
  • A similar trojanized attack on Nx Console (v18.95.0) occurred on May 20, 2026, exfiltrating data from roughly 3,800 GitHub repositories in eleven minutes.
  • Cursor holds an 18% developer market share as of late 2026, following a funding round that valued parent company Anysphere at $50 billion.

How did the attack happen and who was affected?

Attackers successfully planted a malicious version of Anthropic’s Claude Code extension in Cursor’s marketplace for nearly twelve hours, exposing up to 5,000 developers before it was removed. The compromised package, identified as version 2.1.313, was distributed between 2:27 a.m. and 1:35 p.m. Pacific Time on October 29, 2026 [1].

The malware was designed to establish persistent access by injecting attacker-controlled SSH keys into the victim’s system and creating reverse tunnels to an external IP address (134.209.82[.]225) [1]. The malicious code utilized a JavaScript loader inserted at the beginning of its main file, allowing it to execute these commands while leaving the legitimate extension code largely unchanged [1].

Cursor, the AI-powered integrated development environment (IDE) built by Anysphere, confirmed that Anthropic did not develop the malicious software [2]. However, the company has not explained how attackers managed to publish a package under Anthropic’s verified name within Cursor’s ecosystem [1]. This remains an unresolved question regarding how the compromise occurred in the first place.

Why is this vulnerability specific to Cursor and other AI-IDEs?

The incident highlights critical security gaps inherited by AI-powered IDEs from their reliance on open-source architectures. Cursor, Windsurf, and Google Antigravity all utilize configuration files that recommend extensions unavailable in the OpenVSX marketplace, which is the primary registry for VS Code forks due to licensing restrictions [3].

Researchers from Koi AI demonstrated that this gap allows attackers to register malicious packages with official-sounding names. In a proof-of-concept test, over 1,000 developers installed harmless placeholder extensions because their IDEs automatically prompted them based on these inherited recommendations [3]. This creates an easy entry point for supply chain attacks where users are tricked into installing compromised tools under the guise of legitimate updates.

Cursor disables the ‘Workspace Trust’ feature by default, a security measure that standard VS Code enables to prevent arbitrary code execution from untrusted repositories [6] Cursor disables the ‘Workspace Trust’ feature by default, a security measure that standard VS Code enables to prevent arbitrary code execution from untrusted repositories [6]. This setting allows malicious repositories to execute code without user consent, significantly expanding the attack surface for credential theft and persistent access [6].

What other risks exist in this ecosystem?

This is not an isolated incident. On May 20, 2026, a similar vulnerability was exploited when the Nx Console extension (v18.95.0) was trojanized for approximately eleven minutes [8]. This attack exfiltrated credentials and Anthropic Claude Code configurations from roughly 3,800 GitHub repositories.

Experts warn that the combination of weaker review processes in alternative marketplaces and default security settings creates a fragile environment for developers. Cursor holds an 18% market share among developers as of late 2026, following a funding round that valued Anysphere at $50 billion [7], yet its reliance on OpenVSX and inherited VS Code vulnerabilities leaves thousands of users exposed to silent data theft.

It remains unclear what specific security protocols Cursor has implemented since October 29, 2026, to prevent similar supply chain compromises, underscoring the urgent need for stronger verification processes in AI-IDE ecosystems as they continue to gain market share.

Sources

  1. Malicious Claude Code extension on Cursor planted SSH backdoors (www.bleepingcomputer.com) — 2026-10-30
  2. Anthropic: That Claude Code extension compromise… couldn’t be us (www.theregister.com) — 2026-10-30
  3. Cursor, Windsurf & Google Antigravity IDEs Linked to Malicious Extension Exposure (gbhackers.com) — 2026-01-06
  4. Cursor AI Code Editor Vulnerability Allows Silent Code Execution from Malicious Repositories | Mallory (mallory.ai) — 2025-09-12
  5. 3,800 GitHub Repos Stolen by One VS Code Extension. Your Cursor Setup Is the Next Attack Surface. (superframeworks.com) — 2026-05-21
  6. VS Code vs Cursor vs Zed: 180ms vs 2.4s Start [2026] (tech-insider.org) — 2026-09-03

Frequently asked questions

How many developers were affected by the backdoored Claude Code extension in Cursor? ▼
The malicious version of Anthropic’s Claude Code extension, identified as v2.1.313, was distributed via Cursor's marketplace for nearly twelve hours on October 29, 2026. It exposed up to 5,000 developers by injecting attacker-controlled SSH keys and creating reverse tunnels to an external IP address.
Why are AI-IDEs like Cursor more vulnerable to supply chain attacks than standard VS Code? ▼
This vulnerability is specific to AI-powered IDEs like Cursor because they rely on open-source architectures that inherit security gaps from VS Code forks. Specifically, these IDEs often disable the 'Workspace Trust' feature by default, allowing malicious repositories to execute code without user consent.
How did attackers manage to publish a malicious package under Anthropic’s verified name in Cursor? ▼
Attackers exploited configuration files that recommend extensions unavailable in the OpenVSX marketplace, which is the primary registry for VS Code forks. This gap allows malicious packages with official-sounding names to be registered and automatically prompted for installation by the IDE.
Has there been a previous supply chain attack in the AI-IDE ecosystem similar to this one? ▼
A similar trojanized extension, Nx Console (v18.95.0), was exploited on May 20, 2026, for approximately eleven minutes. That attack exfiltrated credentials and configurations from roughly 3,800 GitHub repositories.
What technical method did the malicious Claude Code extension use to compromise user systems? ▼
The malware utilized a JavaScript loader inserted at the beginning of its main file to execute commands while leaving the legitimate extension code largely unchanged. This allowed it to establish persistent access by injecting SSH keys and creating reverse tunnels before being removed.