What happened

Cursor, the AI code editor built on VS Code, published an incident update explaining how a malicious copy of Anthropic's Claude Code extension reached its extension marketplace. According to Cursor, the chain began at a third party. An attacker obtained an access key that Cursor had issued to Fireworks AI, an AI inference and training provider. Fireworks exposed the key, and the attacker used it to copy data from a read-only storage bucket that Cursor used to share data with Fireworks.

That bucket held historical coding-agent traces, mostly from 2025, from sessions where users had not enabled Privacy Mode. Cursor says a small number of those traces contained credentials that had not been redacted, affecting fewer than 0.01% of customers, and that traces were exposed for fewer than 0.05% of users. Using those credentials the attacker reached select SaaS tools and, according to Cursor, accessed archived non-production source repositories, limited support data and email conversations, usage metrics and contact details, summaries of some agent conversations, and some credentials users had sent to support.

On October 29 the attacker used a stolen credential to place malicious copies of the Claude Code extension, versions 2.1.312 and 2.1.313, directly in the cache that serves Cursor's extension marketplace. Cursor states that Anthropic did not publish these copies, that this was not a vulnerability in Anthropic's product, and that the upstream Open VSX registry never held the malware. The builds were available for about 11 hours, and Cursor estimates at most 5,000 users who requested those cached versions may have received them. BleepingComputer reports the injected JavaScript tried to collect system information, add an attacker SSH key, enable SSH access and set up persistence, and that coding errors likely stopped it working on many Windows and macOS systems where SSH was not already enabled. Cursor says the last attacker activity it saw was on November 1 and that it was blocked.

Why it matters

This incident joins three weak points that many organizations share. First, developer workstations are high-value targets: they hold cloud credentials, source code, and SSH access to production. Second, extension marketplaces and their caches are software distribution channels, and a compromise of the serving layer bypasses trust in the original publisher. Third, AI agent transcripts are a new place for secrets to accumulate. Anything a developer pastes into an agent session or a support ticket can end up in a data set that is shared with vendors.

BleepingComputer notes the incident is part of a wider pattern of attacks on AI developer platforms that Wiz has called "Black October", where stolen keys were used for unauthorized AI inference and charges.

What defenders should check

  • Determine whether any user installed or updated the Claude Code extension in Cursor on October 29, 2026. Cursor names the tampered versions as Anthropic.claude-code 2.1.312 and 2.1.313. A version number alone does not prove a bad install, because a genuine 2.1.312 also exists on other registries. What matters is that the build came from Cursor's marketplace on October 29. Independent analysts (StepSecurity and the Cloud Security Alliance, not Cursor's report) describe the loader as planting an SSH key labelled svc-telemetry, so treat that label as the stronger indicator.
  • Check extension folders on developer machines, for example ~/.cursor/extensions on Linux and macOS and %USERPROFILE%\.cursor\extensions on Windows, for folders ending in those version numbers. A folder that was later removed still leaves traces in file system timelines and EDR telemetry.
  • Review SSH state on those machines: ~/.ssh/authorized_keys, sshd service status, and any new listening port 22.
  • Follow Cursor's own remediation guidance. Cursor notes that uninstalling the extension alone may not be enough.
  • Inventory which third-party vendors hold keys to your storage, and whether those keys are limited by scope and source network.
  • Search your own support tickets and chat exports for pasted credentials, and rotate anything you find.

Detection ideas

The queries below are starting points to adapt and test in your environment, not production-ready rules.

Linux or macOS file check on a workstation:

ls -d ~/.cursor/extensions/anthropic.claude-code-2.1.31[23]* 2>/dev/null
grep -n 'svc-telemetry' ~/.ssh/authorized_keys 2>/dev/null
grep -rl 'svc-telemetry' ~/.cursor/extensions/anthropic.claude-code-2.1.31[23]* 2>/dev/null
stat -c '%y %n' ~/.ssh/authorized_keys
systemctl is-active ssh sshd 2>/dev/null

Microsoft Defender for Endpoint (KQL), editor processes writing SSH key files:

DeviceFileEvents
| where Timestamp > datetime(2026-10-29)
| where FolderPath has ".ssh" and FileName in~ ("authorized_keys", "authorized_keys2")
| where InitiatingProcessFileName in~ ("Cursor.exe", "Cursor", "node", "node.exe")
| project Timestamp, DeviceName, InitiatingProcessFileName, InitiatingProcessCommandLine, FolderPath

Search for the extension folder name in file events:

DeviceFileEvents
| where Timestamp > datetime(2026-10-29)
| where FolderPath has "anthropic.claude-code-2.1.312" or FolderPath has "anthropic.claude-code-2.1.313"
| summarize first=min(Timestamp), last=max(Timestamp) by DeviceName

Investigation

If a machine received one of the tampered builds, preserve evidence before cleaning. Collect the extension folder and VS Code or Cursor logs, the SSH authorized_keys file with its timestamps, shell history, auth logs (journalctl -u ssh or /var/log/auth.log on Linux, unified logs on macOS), and any scheduled tasks, launch agents, systemd units or cron entries created on or after October 29. Published analyses name these artefacts, which you should treat as leads to confirm rather than a complete list: a macOS LaunchAgent called com.apple.sysmond, a Windows scheduled task called SysMon with a sysmon.cmd file in the Startup folder, and an outbound SSH reverse tunnel to 134.209.82[.]225 (defanged). Uninstalling the extension does not remove any of these. Check outbound connections from the editor process during the exposure window and compare them with Cursor's published indicators of compromise. Then ask what that machine could reach: cloud consoles, Git hosts, production SSH, and password managers. Treat tokens held on the machine as exposed and rotate them.

If SSH was never enabled and no unknown key is present, the risk is lower, but still document the evidence you reviewed.

Mitigation

  • Remove the affected extension versions and follow Cursor's remediation steps, then reinstall from a verified clean build.
  • Remove any attacker SSH key and any persistence you find, and rotate secrets from the machine.
  • Restrict vendor-issued keys by scope, lifetime and source network, and prefer short-lived credentials.
  • Enable secret scanning on chat transcripts, tickets and agent logs, and train developers not to paste live credentials into AI tools.
  • Consider an internal allow-list or mirror for IDE extensions with version pinning, so a poisoned cache does not reach everyone at once.

If you need help scoping an exposure like this, our incident response and compromise assessment teams can help. Source: Cursor, "An update on our recent security incident" (cursor.com/blog/security-incident-update), and BleepingComputer's coverage of the incident.