world

Cursor Post-Mortem: Exposed Vendor Key Led to Trojanized Extension

Cursor traced its trojanized Claude Code extension affecting up to 5,000 devs to an exposed Fireworks key and unredacted secrets in agent logs.

Cursor Post-Mortem: Exposed Vendor Key Led to Trojanized Extension

Two weeks after warning developers about a trojanized copy of Anthropic's Anthropic.claude-code extension on its marketplace, Cursor published a full post-mortem on November 13 detailing a multi-stage supply-chain compromise. As analyzed by CredenShare and summarized in DEV Community's AI Daily Digest, the malicious build was live for roughly 11 hours on October 29 and may have reached up to 5,000 users—not because of a flaw in Anthropic's software, but because of forgotten secrets across vendor pipelines, agent traces, and support emails.

How a Single Vendor Key Opened the Chain

The intrusion began outside Cursor's own infrastructure. Cursor had issued an access key to Fireworks, a third-party model training and inference provider, granting read-only access to a storage bucket holding coding agent traces—mostly from 2025—collected from sessions outside Privacy Mode that were eligible for model training. According to Cursor, that access key was exposed on the Fireworks side, enabling an attacker to copy the bucket's contents.

Although Cursor says fewer than 0.05% of users had traces exposed and fewer than 0.01% of customers had API credentials affected, some of those training logs contained unredacted secrets that developers or tools had pasted into coding sessions. Using those harvested credentials, the attacker pivoted into select internal SaaS tools used by Cursor, accessing archived non-production repositories, product usage metrics, contact details, summaries of some agent conversations, and limited customer support threads—including additional credentials users had emailed to support.

From that exposed data, the attacker obtained a credential capable of poisoning the cache serving Cursor's VS Code extension marketplace. On October 29, they injected tampered builds of Anthropic.claude-code versions 2.1.312 and 2.1.313 directly into that cache. Cursor emphasized that Anthropic never published the tampered packages, that Open VSX upstream remained clean, and that Privacy Mode prompts and production systems were unaffected.

Inside the Malicious Extension Payload

Cursor's October 29 security notice described a payload engineered for reconnaissance and persistent remote access:

  • Host profiling: The extension harvested the machine's hostname, username, operating system, home directory path, working directories, configured Git email, public IP address, and the names of environment variables.
  • Persistence and reverse SSH: It attempted to append an attacker-controlled SSH key labeled svc-telemetry to authorized keys, enable the local SSH service, and establish a reverse SSH tunnel—installing a LaunchAgent on macOS or a scheduled task on Windows to retry every 60 seconds.

Enabling the local SSH daemon required administrator privileges that the IDE extension lacked on most macOS and Windows workstations, blocking remote login through the tunnel on those systems. However, the host inventory, svc-telemetry SSH key, and standalone persistence scripts were still deployed. Because those scripts live outside the extension directory, simply uninstalling the plugin does not fully clean an infected machine.

Three Resting Places for Secrets

CredenShare's analysis highlights why this incident resonates across every modern engineering team: the compromise depended on three routine places where credentials linger far past their intended lifetime—a long-lived vendor bucket key, unredacted AI coding traces, and support email threads. Developers routinely paste tokens into an AI chat to debug a failing request or attach them to a support ticket, unaware that telemetry pipelines and inbox archives turn ephemeral secrets into durable attack surfaces.

Containment and What Developers Should Check

Cursor reported that it deactivated the Fireworks key, cut off vendor access to shared data, and—according to CredenShare—moved inference off Fireworks. The company rotated exposed secrets and all internal credentials, introduced network restrictions where supported, added internal secret scanning across code and data stores, redeployed production infrastructure, rebuilt its extension marketplace, and worked with hosting providers to take down the attacker's server. The last observed attacker activity occurred on November 1 and was blocked.

Developers who installed Anthropic.claude-code 2.1.312 or 2.1.313 on October 29 should inspect their systems for the svc-telemetry key and scheduled persistence tasks, consider rebuilding affected hosts, and rotate reachable credentials from a trusted device. More broadly, engineering leaders should treat AI training telemetry and third-party inference vendors as tier-one credential boundaries—enforcing Privacy Mode, strict secret scrubbing, and short-lived scoped vendor tokens.

// sources

// WebZona Studio products

Need a product or service that does not exist yet?

Pitch your idea in our "50 Hours" program — every month we build one community idea free for everyone. Or explore our released products.

// comments (0)

// no comments yet.