How a vendor-held key led to Cursor extension-cache poisoning
The claim under test is that a stolen Fireworks AI key trojanised both Cursor and Claude Code, poisoning AI-generated code. The evidence shows a different chain: a Cursor key held by Fireworks exposed historical agent traces, credentials recovered from that data enabled lateral movement, and a separate stolen credential allowed conventional extension-cache poisoning. No reviewed evidence shows compromised model behaviour or trojanised generated code. (src: Cursor incident update)
What happened
Cursor says an attacker obtained an access key that Cursor had issued to Fireworks. The key was exposed at Fireworks and permitted data to be copied from a read-only storage bucket shared by the companies. It did not itself provide extension-publishing access. The bucket contained historical coding-agent traces, mostly from 2025 and sessions without Privacy Mode. A small number contained unredacted credentials, providing a route into selected Cursor software-as-a-service tools. (src: Cursor incident update)
Fireworks has disclosed two separate incidents. The first ran from 3 August to 7 October 2026 and involved stolen Fireworks credentials and a vulnerability in one of its services. The second, from 23 to 30 October, involved access to development machines through a third-party cloud provider. Neither Fireworks' bulletins nor Cursor's account establishes precisely how the Cursor key was exposed or which Fireworks incident supplied it. The two Fireworks incidents also have their own customer impact, which should not be added to Cursor's extension-recipient figures. (src: Fireworks security bulletins, Cursor incident update)
On 29 October, between 09:27 and 20:35 UTC, tampered anthropic.claude-code builds 2.1.312 and 2.1.313 were served from Cursor's extension-marketplace cache for approximately 11 hours. Cursor estimates that at most 5,000 users who requested those specific cached versions potentially received a malicious build. That is not a confirmed count of installations, executions or successful backdoors. The attacker used a separate credential, stolen from exposed Cursor internal data, to place the builds in the cache. (src: Cursor extension security notice, Cursor incident update)
Cursor removed the builds, temporarily took the marketplace offline, rotated credentials and rebuilt the marketplace. Its corrected 30 October notice added version 2.1.312, making early reports limited to 2.1.313 outdated. Cursor says the last attacker activity it observed occurred on 1 November and was blocked. These scope and containment findings remain vendor statements; no independent forensic report covering the whole Cursor intrusion has been published. (src: Cursor extension security notice, Cursor incident update)
Microsoft independently analysed the injected JavaScript and confirmed that the malicious packages were not distributed through Microsoft's Visual Studio Marketplace or the @anthropic-ai/claude-code npm package. Anthropic told Microsoft that its systems were not compromised. Socket's registry review also supports Cursor's statement that Open VSX did not publish the malicious build. Claude Code was therefore the payload's branding and extension carrier, while Cursor's cache was the delivery environment. (src: Microsoft analysis, Socket registry analysis)
How it works
The intrusion crossed several distinct control boundaries rather than succeeding through one all-powerful key.
- A vendor-held key exposed retained data. The initial key's read-only permissions were sufficient to copy the shared bucket, but not to modify extensions. Cursor says traces were exposed for fewer than 0.05% of users, all among users not using Privacy Mode, and fewer than 0.01% of customers had API credentials exposed. Cursor says it directly notified those affected. (src: Cursor incident update)
- Secret sprawl enabled lateral movement. Credentials in historical traces allowed access to selected Cursor SaaS tools. Data accessed included archived non-production source repositories, support conversations, usage metrics, contact details, agent-conversation summaries and additional credentials supplied to support. The initial exposure consequently became more damaging because reusable secrets existed across retained and operational data. (src: Cursor incident update)
- A second credential enabled cache modification. The attacker placed unauthorised extension copies directly into Cursor's serving cache rather than publishing them through the upstream marketplace. This distinction matters for both scoping and prevention: a clean upstream registry does not prove that every downstream cache served the same artefact. (src: Cursor extension security notice, Socket registry analysis)
- A loader ran before legitimate extension code. Microsoft found that injected JavaScript executed when the extension module loaded, while the extension otherwise continued functioning. It collected host, user and working-directory information, Git email and up to 40 environment-variable names matching terms such as
KEY,TOKEN,SECRET,PASS,AWSorGCP. Microsoft explicitly notes that this did not demonstrate theft of the variables' values. (src: Microsoft analysis)
- The payload sought persistent SSH access. It appended an attacker-controlled Ed25519 key labelled
svc-telemetrytoauthorized_keys, attempted to enable SSH and initiated an outbound reverse tunnel to134.209.82[.]225over TCP 22. Host details were sent by HTTP POST to port 8099. Persistence included a macOS LaunchAgent, a Windows scheduled task with a Startup-folder fallback, and associated files outside the extension directory. (src: Cursor extension security notice, Microsoft analysis)
Successful remote login was not universal. Cursor says coding errors and administrator-permission requirements prevented SSH enablement on most ordinary macOS and Windows hosts. That does not make execution harmless: persistence, keys and host-detail reporting could still be written, and an outbound tunnel could run without administrator rights. Expel investigated four affected customer Macs and observed an outbound tunnel on a non-administrator machine, but did not report a confirmed attacker login. (src: Cursor extension security notice, Expel incident analysis)
Why it matters
The useful threat-model lesson is broader than provider key hygiene. AI coding tools inherit risk from inference providers, shared storage, historical trace retention, secret redaction, support systems, internal SaaS credentials and extension distribution infrastructure. A failure at one boundary can become useful at the next when retained data contains reusable secrets. (src: Cursor incident update)
The incident also shows why version numbers and official-channel checks are inadequate indicators. Legitimate 2.1.312 builds existed in official channels, while Cursor's cached copies were malicious. Investigators need the package source, hashes and endpoint artefacts. Similarly, the 5,000 figure describes potential recipients, not a victim total. Expel's four incidents confirm execution in its customer sample but cannot be extrapolated into a wider population estimate. (src: Socket registry analysis, Expel incident analysis)
Finally, distribution and execution timelines differ. Expel observed one Mac first execute the payload about eight hours after the distribution window closed, consistent with an earlier download running when Cursor next started. Restricting endpoint hunting to the 11-hour serving window would miss that behaviour. (src: Expel incident analysis)
What to do about it
- Scope by provenance and evidence. Identify Cursor installations or updates of
anthropic.claude-code2.1.312 or 2.1.313 obtained from Cursor's marketplace on 29 October. Use Cursor's corrected indicators and all four VSIX hashes rather than version alone. (src: Cursor extension security notice)
- Hunt beyond the download window. Review subsequent Cursor launches, extension-installation records, endpoint telemetry, SSH configuration and authentication logs, file activity and network connections. Relevant indicators include
134.209.82[.]225on TCP 22 and 8099,hxxp://134[.]209[.]82[.]225:8099/beacon, the SSH key commentsvc-telemetry, and maliciousextension.jsSHA-256ecb58cb29078d9646ad1dcdbe51526f2d9cfea06be5fb2ab183e8ecc3ab6bf15. (src: Cursor extension security notice)
- Preserve evidence before cleanup. Do not rely on uninstalling the extension or finding one marker. Expel found a host with an active tunnel but no attacker key. After collection, stop confirmed malicious processes and remove the exact unauthorised key, scripts and startup entries. Review Cursor's remediation scripts before running them. (src: Expel incident analysis, Cursor extension security notice)
- Restore device and credential trust. Review later activity, including localhost SSH sessions that could represent tunnelled access. Rebuild hosts where investigation cannot restore confidence. Rotate accessible credentials and revoke sessions from a known-clean device. Taking the attacker server offline does not remove local persistence or undo earlier access. (src: Microsoft analysis)
- Reduce recurrence at each boundary. Cursor recommends publisher allowlists, an extension-installation cooldown, optional signature verification and organisation-wide Privacy Mode. Privacy Mode addresses the historical-trace exposure path, not malicious extensions. Separately, use fine-grained expiring keys, restrict vendor credentials by network location, scan retained traces and support data for secrets, and prevent credentials being pasted into agent sessions or tickets. (src: Cursor security hardening guidance)
Sources
- Cursor incident update
- Cursor extension security notice
- Fireworks AI security bulletins
- Microsoft Threat Intelligence analysis
- Expel incident analysis
- Socket registry analysis
- Cursor security and privacy hardening guidance
