A vendor's key, old agent traces and a trojanized Claude Code extension

How an access key held by Cursor's model vendor led to a malicious Claude Code extension in Cursor's marketplace, and what it says about agent traces, vendor keys and AWS credentials on developer laptops.

Antivenom6 min read

On October 29, 2026, between about 2:27am and 1:35pm Pacific time, Cursor's VS Code extension marketplace served two modified builds of the Claude Code extension, versions 2.1.312 and 2.1.313, for Windows and macOS. Cursor's security notice says the builds were not developed by Anthropic and that they tried to plant an SSH backdoor on the machines that installed them. Cursor estimates that at most 5,000 users who requested those cached versions that day could have received them.

On November 13, Cursor published the root cause. The marketplace was the last step, not the first. The path started with an access key held by a model vendor and ran through old coding-agent traces that still held credentials.

What happened

Cursor's November 13 update describes a chain, not a single bug:

  1. A vendor held a key. Cursor had issued an access key to Fireworks, its model vendor. Cursor says Fireworks exposed that key. The attacker used it to copy data from a read-only storage bucket that Cursor shared with Fireworks.
  2. The bucket held agent traces. It contained coding-agent traces, mostly from 2025, from sessions that were not in Privacy Mode. Some of those traces held credentials that had not been redacted.
  3. The credentials opened other systems. With them, the attacker reached SaaS tools Cursor uses and accessed archived non-production source code, limited support emails, product usage metrics, summaries of some agent conversations and some credentials that users had sent to Cursor's support team.
  4. One stolen credential reached the marketplace. On October 29 the attacker used it to place the malicious copies of the extension directly into the cache that serves Cursor's marketplace. Cursor says the upstream source, Open VSX, never had the malware.

Diagram: five attacker steps from an access key held by a model vendor, through old agent traces with unredacted credentials and internal SaaS tools, to trojanized extension builds running on developer machines, each paired with the control that would break the path.

Cursor says fewer than 0.05% of non-Privacy Mode users had traces exposed and fewer than 0.01% of customers had API credentials exposed. It saw the last attacker activity on November 1 and believes the incident is contained. It says production systems, the Cursor app and its official updates, and Privacy Mode content were not affected.

Anthropic did not build or publish these builds. Anthropic's Felix Rieseberg told SecurityWeek that the versions on Anthropic's official channels were not affected and that the issue only impacted Cursor users. Anthropic then released its genuine extension as version 2.1.314 to avoid confusion.

What the extension did

According to Cursor's notice, the payload:

  • sent host and user details to the attacker: hostname, username, operating system, home directory, the names of environment variables, working directories, the configured Git email and the public IP address;
  • tried to add an attacker SSH key labelled svc-telemetry to authorized_keys, enable the local SSH service and open a reverse SSH tunnel;
  • tried to persist with a LaunchAgent on macOS, or a SYSTEM-level scheduled task with a Startup-folder fallback on Windows, retrying about every 60 seconds.

Cursor says the SSH step generally failed without admin rights, which the extension did not have on most hosts. Researchers cited by BleepingComputer also found coding errors that likely stopped the backdoor on many systems. Cursor still warns that uninstalling the extension may not be enough, because the payload dropped standalone persistence scripts. For hosts with signs of execution, its advice is to isolate them, remove the key and persistence, rotate credentials the host could reach and consider a rebuild. Cursor says the attacker's server is now offline.

Why it worked

Nothing failed in a dramatic way. Three ordinary things lined up.

A long-lived key sat outside the company that issued it. A key handed to a vendor is only as safe as the vendor's weakest system. Cursor has since moved all inference traffic off Fireworks and cut its access to every shared dataset. BleepingComputer notes that Fireworks disclosed multiple October breaches and places this case in a wider wave of attacks on AI developer platforms that Wiz calls Black October.

Agent traces are a secrets store that nobody calls a secrets store. A coding agent reads files, runs commands and records the output. If a developer pastes a token into a prompt, or the agent prints an environment or opens a config file, the secret goes into the trace. Then the trace is copied to analytics, to training storage, to a vendor. Secret scanning usually watches Git. Cursor's own list of fixes includes adding secret scanning across its code repositories and restricting network access for service providers. Trace stores and training buckets rarely get the same attention.

A distribution cache trusted whoever could write to it. The upstream registry was clean. The copy users actually downloaded was not.

The extension was the visible part. The cause was a vendor-held key and secrets left in data that was never meant to be a vault.

What it means on AWS

Per Cursor, the payload collected environment variable names, not their values, and Cursor has not said that any cloud credentials were taken from developer machines. But consider what a working backdoor on a developer laptop could reach: ~/.aws/credentials, cached SSO tokens, Git credentials, kubeconfig files and the agent's own API keys. On many teams the laptop is one hop from production.

The same pattern exists inside AWS accounts:

  • Vendor access through IAM user keys. If a vendor reads one of your S3 buckets with a long-lived IAM user access key, that key now lives in the vendor's systems, as Cursor's key lived at Fireworks. A cross-account role that the vendor assumes, limited to one bucket prefix, leaves the vendor nothing durable to lose. (An external ID helps with the confused-deputy problem, but it is not authentication.)
  • Model and agent logs. Bedrock model invocation logging can collect the full request and response data for each call and deliver it to S3 or CloudWatch Logs. If prompts carry secrets, the log destination now holds them too, often with a wider read policy than the secrets had.
  • Old data kept for later. The traces in this case were mostly from 2025. Data you keep for analysis or training keeps its secrets usable for as long as nobody rotates them.

What to do this week

  • Check for the affected builds. If anyone on your team uses Cursor, follow Cursor's notice: look for the svc-telemetry key in authorized_keys and run its remediation steps even if the key is absent.
  • Rotate from a clean machine. For any host that ran the payload, rotate everything it could reach: AWS profiles, SSO sessions, Git tokens and agent API keys.
  • Get long-lived AWS keys off laptops. Use IAM Identity Center or another source of short-lived credentials. List IAM users with active access keys and check where those keys are used from.
  • Map where your agent traces go. Local history, vendor dashboards, S3, observability tools. Put each one in scope for secret scanning and give it a retention period.
  • Replace vendor keys with roles. For every third party that reads your data, prefer a role it assumes with a narrow policy. Watch CloudTrail for AssumeRole calls and S3 data events that come from unexpected sources.
  • Control extensions. Keep an allow-list of editor extensions on managed machines and pin versions.
  • Watch developer machines for persistence. Alert on new authorized_keys entries, new LaunchAgents, new scheduled tasks and outbound SSH from laptops.

The short version

The malicious extension was live for about 11 hours. The traces behind it, with their unredacted credentials, were mostly from 2025. Every place an agent's output lands is a place your credentials can land.

That is the kind of path Antivenom is built to walk. Our AI red team runs only against your own systems, with your permission, and follows a finding to where it leads: from a vendor role to a bucket, from a log to a credential, from a credential to what it unlocks. The AI blue team closes the cheapest link, and the red team retests the whole path to prove it is closed. For more on credentials that sit in systems you do not run, read your keys live in other people's databases.

← All posts
  • Cursor
  • Claude Code
  • Fireworks AI
  • supply chain attack
  • AI coding agents
  • AI security
  • secrets management
  • AWS security

The arms race has started

Evolve as fast as the attacker.

Antivenom is opening to a small group of security and platform teams first. Join the waitlist to get early access.