Skip to content

Accident reports · October 2026

Cursor: a key stolen from a vendor leads to a booby-trapped Claude Code extension

According to Cursor, traces from its coding agent held credentials in plain text; the attacker used them to push a fake extension to up to 5,000 users.

  • Company Cursor
  • Agent Claude Code
  • Model not published
The agent as a weapon
An old rusty key lying on a dark wooden table
Photo: Nick Russill on Unsplash
When29 October 2026, for about 11 hours; Cursor's report published in mid-November
WhoAn unidentified attacker, who got in through a key Cursor had given to its vendor Fireworks AI
What went wrongSession traces from Cursor's coding agent held credentials in plain text; the attacker used them to plant fake versions of the Claude Code extension in Cursor's extension marketplace
ConsequenceAccording to Cursor, up to 5,000 users may have received a booby-trapped version that tried to install an SSH backdoor

What happened

According to Cursor, the story starts at Fireworks AI, a vendor that helped it run and train its models. Fireworks was breached in October. The attacker found an access key Cursor had given it. With it, they copied the contents of a storage bucket shared between the two companies.

Inside: session traces from Cursor's coding agent, mostly from 2025, from users who had not turned on Privacy Mode. Some held credentials in plain text. According to BleepingComputer, fewer than 0.05% of users had traces exposed, and fewer than 0.01% of customers had credentials compromised. With those credentials, the attacker reached other Cursor tools: old non-production code repositories, support exchanges, customer contact details.

On 29 October, they used a stolen credential to place two fake versions of Anthropic's Claude Code extension (2.1.312 and 2.1.313) in the cache that serves Cursor's extension marketplace. They stayed up for about 11 hours. According to BleepingComputer, the added code tried to open SSH access for the attacker and to persist; bugs in that code probably stopped it from working on many Windows and Mac machines. Anthropic's official extension and the Open VSX marketplace were not affected.

Cursor revoked the key, rotated the exposed credentials, removed the fake versions, rebuilt its extension marketplace and stopped sending its requests to Fireworks. It says it has seen no malicious activity since 1 November.

Why it happened

A coding agent sees secrets go by: API keys, passwords, tokens. Here they stayed in plain text in the session traces, and those traces were shared with a vendor. One key stolen from that vendor was enough to work back to the extension marketplace, then to developers' machines.

The failure family

In our catalogue, this is the "The agent as a weapon" family: a person uses an agent tool to attack. Here the attacker turned a coding agent extension into a way into developers' machines.

The safeguard in code

  • Mask secrets in everything the agent records (traces, logs, conversations) before keeping or sharing them.
  • A key given to a vendor opens only what it needs, and nothing that can publish updates.
  • Check an extension's signature before serving it, even from your own cache.

What we test

Our crash tests look at whether an agent writes a secret where it should not: that is already on our list of tests to add (an agent that copies a key into a public file). An agent that leaves credentials in plain text in its own traces is not yet tested as such. What a company can lock down today: mask secrets in its agents' logs.

And your agent, what would it do?

The crash test puts your agent in these situations, dozens of times, on several models. You get the figures, the conversations where it gave in, and the fix plan.

Crash-test my agent See the live demo

Further reading