Cursor Breach: A Vendor Key Led to a Trojan Extension

By 6 min read
Cursor breach: a vendor access key exposed at Fireworks AI led to a trojanized Claude Code extension in the Cursor marketplace

Nobody needed to break into Cursor to backdoor its users. The Cursor breach started with a key the company had handed to one of its AI vendors, and it ended with a fake Claude Code extension sitting in Cursor’s own marketplace for about 11 hours.

In short: an attacker used an access key Cursor had issued to inference provider Fireworks AI, which Cursor says Fireworks exposed, to copy coding-agent traces, harvest credentials from them, and plant trojanized anthropic.claude-code builds that tried to install an SSH backdoor on up to 5,000 developer machines.

What happened in the Cursor breach?

Cursor shared data with Fireworks through a read-only storage bucket. According to Cursor’s 13 November update, the attacker used the Fireworks key to copy that bucket. It held coding-agent traces, mostly from 2025, from sessions that were not in Privacy Mode.

Some of those traces contained credentials pasted in plain text. Cursor says fewer than 0.01 percent of customers had API credentials exposed this way. The attacker also used credentials found there to reach some of Cursor’s internal SaaS tools, including archived non-production repositories, limited support data and emails, usage metrics and contact details.

From that internal data the attacker took one more credential. It was enough to write to the cache that serves Cursor’s extension marketplace.

Five-stage Cursor breach attack chain from an exposed vendor key to an SSH backdoor attempt.
Each stage handed the attacker the credential for the next one. Data: Cursor and Microsoft.

How did the Fireworks AI key get exposed?

Cursor says only that the key was “exposed by Fireworks.” It does not say which Fireworks incident, or how the key was scoped.

Fireworks’ own security bulletins, last updated 17 November, describe two separate intrusions. One ran from 3 August to 7 October 2026 using stolen Fireworks credentials and a service vulnerability. The other ran from 23 to 30 October through Fireworks developer machines on a third-party cloud that had its own incident. Fireworks has linked activity to a financially motivated group selling stolen access to language models, a practice often called LLMjacking.

The bulletins do not mention Cursor. So the link between Cursor’s key and these intrusions rests on Cursor’s statement, and the two companies have not published a shared timeline. The Hacker News also reports that Uber and Notion disclosed data theft tied to a service provider in the same period, which TechCrunch identified as Fireworks.

This is the same failure pattern we covered in the AI inference provider breach traced with canary prompts: the provider is not your perimeter, but it holds keys and data that act like it is.

The trojanized Claude Code extension

On 29 October 2026 the attacker placed modified builds of anthropic.claude-code, versions 2.1.312 and 2.1.313, in Cursor’s marketplace cache. They were live from about 2:27 am to 1:35 pm Pacific time on Windows and macOS. Anthropic’s David Dworken said its systems were not compromised and that the official VS Code and Open VSX channels were clean.

Microsoft and the researchers at OpenSourceMalware analysed the payload. A short loader ran before the real extension code. Per Cursor and Microsoft, it did the following:

Step What the loader did
Recon Collected hostname, user, OS, home directory, Git email, public IP and environment variable names
Access Appended an attacker Ed25519 key labelled svc-telemetry to authorized_keys
Tunnel Tried to start the local SSH service and open a reverse SSH tunnel, retrying every 60 seconds
Persistence LaunchAgent com.apple.sysmond on macOS; scheduled task SysMon or a Startup script on Windows

Cursor notes that enabling the SSH service needs admin rights, which most hosts lacked. That limits the damage, but the rogue key and persistence can still be left behind.

Timeline of the trojanized Claude Code extension from 29 October to Cursor's 13 November disclosure.
Two weeks passed between removing the trojan and explaining how it got there. Data: Cursor.

How many users were affected?

Cursor says at most 5,000 users who requested those specific cached versions on 29 October potentially received the malicious build. That is an upper bound, not a count of confirmed infections.

Key figures: up to 5,000 users, 11 hours online, two trojanized extension versions.
The exposure window was short, but auto-update made it count. Data: Cursor.

Sources differ slightly on the window. Cursor says about 11 hours; Anthropic told reporters it was close to 12. An early Hacker News report said Open VSX was hit; it later corrected that.

What was not affected?

Cursor lists these as untouched: Privacy Mode prompts and code, customer code repositories, live inference traffic, production systems, the Cursor app and its official updates (shipped from a separate code host with no signing keys exposed), and every other marketplace extension. Cursor says it saw no attacker activity after 1 November.

How to detect the Cursor Claude Code backdoor

If anyone in your organisation used Cursor with the Claude Code extension on 29 October, check now.

  1. Search authorized_keys files, including C:\ProgramData\ssh\administrators_authorized_keys on Windows, for svc-telemetry.
  2. Hunt for the persistence items: the SysMon scheduled task, Startup\sysmon.cmd, ~/.config/.smt, .stk_ files in temp folders, and the com.apple.sysmond LaunchAgent.
  3. Look for outbound SSH to 134.209.82.225 and HTTP POSTs to port 8099 on that address. Cursor’s notice lists the full set of file hashes.
  4. Run Cursor’s remediation script (as the user on macOS, as Administrator on Windows). Cursor warns that uninstalling the extension alone may not be enough. Rebuild hosts with confirmed artifacts.
  5. Rotate every credential reachable from an affected machine, from a clean device.

Microsoft maps the behaviour to ATT&CK T1098.004 (SSH Authorized Keys), T1572 (Protocol Tunneling), T1053.003 (Cron) and T1053.005 (Scheduled Task), and Defender detects the loader.

What should teams change?

  • Inventory vendor keys. Every key you issue to an AI provider is a door. Scope it, expire it and watch its use. The Microsoft Agent Framework PyPI attack showed the same lesson from the package side.
  • Treat agent traces as secrets. Developers paste tokens into AI chats. Cursor has added secret scanning across its data stores; you should scan your own logs and traces too.
  • Pin and delay extensions. Microsoft recommends allowing only approved publishers and setting an install cooldown for new releases, which Cursor’s enterprise settings support.
  • Fireworks customers: follow Fireworks’ bulletin. Replace revoked keys and rotate third-party secrets at the issuer, since deleting a stored secret does not revoke it.

For a related case where a single developer credential reached production, see our breakdown of the 1Password breach and its stolen GitHub token.

The bottom line

The Cursor breach did not need a zero-day. It chained a vendor key, credentials left in AI agent traces and a writable marketplace cache into a backdoor aimed at developers. If you share data with an AI provider, its security incidents are your incidents, so inventory those keys before someone else uses them.

Sources

This article is written for defenders and authorised security testers. Only test systems you own or have written permission to assess.

Frequently asked questions

Was Cursor hacked?

Yes. Cursor disclosed on 13 November 2026 that an attacker used an access key it had issued to Fireworks AI to copy data from a shared bucket, reach internal SaaS tools and plant a trojanized Claude Code extension in the Cursor marketplace.

Which Claude Code extension versions were malicious in Cursor?

Versions 2.1.312 and 2.1.313 of anthropic.claude-code served from the Cursor marketplace on Windows and macOS between about 2:27 am and 1:35 pm Pacific time on 29 October 2026. Anthropic says its own systems and official channels were not affected.

How do I check if I installed the trojanized Claude Code extension?

Look for an SSH key labelled svc-telemetry in your authorized_keys files and for the persistence items Cursor lists, such as a SysMon scheduled task on Windows or a com.apple.sysmond LaunchAgent on macOS. Cursor publishes check and remediation scripts in its 29 October notice.

Was my code exposed in the Cursor breach?

Cursor says customer code repositories, Privacy Mode prompts and code, its production systems and the Cursor app were not affected. Coding-agent traces were exposed for fewer than 0.05 percent of users who did not use Privacy Mode.

What does Fireworks AI say about the Cursor breach?

Fireworks' security bulletins describe two separate intrusions between August and October 2026, but they do not name Cursor. The link between Cursor's key and those incidents comes from Cursor's own disclosure.

Keep reading

Cursor breachFireworks AIClaude Code extensionsupply chain attackdeveloper securityincident responseSSH backdoor