Skip to content
Book a demo
All posts
News

Cursor confirms breach behind malicious Claude Code extension in marketplace

Cursor confirmed a security breach that let attackers publish a malicious Claude Code extension through its marketplace, exposing up to 5,000 developers to malware that installed persistent SSH backdoors.

Published
Reading
3 min
By
Kairo

Cursor confirmed it suffered a security breach that let hackers distribute a malicious Claude Code extension through its marketplace after stealing credentials from AI infrastructure provider Fireworks AI. The attack exposed up to 5,000 developers to malware that installed persistent SSH backdoors.

What happened

Two malicious extension versions, 2.1.312 and 2.1.313, were published to the marketplace. They were available for approximately 11 hours before Cursor removed them. Anyone who installed or auto-updated in that window received malware that installed persistent SSH backdoors.

The breach also let attackers access internal systems and steal customer data, including historical AI coding-agent traces containing unredacted credentials that were later used to compromise additional services. Cursor says fewer than 0.05% of users had coding-agent traces exposed, while fewer than 0.01% of customers had API credentials compromised.

How it was done

The starting point was stolen credentials from AI infrastructure provider Fireworks AI. Those credentials gave access to internal systems, and from there to the marketplace publishing path used to ship the malicious extension versions.

The stolen traces are the part worth sitting with. Coding-agent traces recorded credentials without redaction, so a data theft turned into access to further services.

historical AI coding-agent traces containing unredacted credentials that were later used to compromise additional services
BleepingComputer

What to check

Treat developer machines and any logs produced by AI agents as in scope.

  1. Inventory installed extension versions

    List extensions and versions across developer machines rather than asking people to self report. On each host, enumerate the editor extensions directory and record the version string per package. Flag the two affected versions, and flag any machine where auto update is enabled and version history is not retained.

  2. Hunt for SSH persistence

    Inspect ~/.ssh/authorized_keys on developer endpoints and compare key fingerprints against a known good list. Also review ~/.ssh/config for unexpected ProxyCommand or RemoteForward entries, and check for launchd, systemd user units or cron jobs that start an SSH process. Any key or unit nobody can account for is a bad result.

  3. Review outbound connections from developer hosts

    Query firewall and EDR telemetry for outbound sessions from editor or extension host processes, especially long lived connections on port 22 or to hosts not in your allowlist. Narrow the window to when the versions were installed. Repeated reconnects to a single unfamiliar address deserve a full host review.

  4. Rotate credentials reachable from developer machines

    Rotate API keys, cloud tokens and SSH keys that lived in shell profiles, .env files or credential helpers on affected hosts. Prefer short lived tokens on reissue. Track rotation per secret so partial coverage is visible.

  5. Check what your agent traces store

    Open a sample of stored agent traces, prompts and tool call logs and grep for patterns such as sk-, Bearer and AWS key prefixes. Confirm redaction runs before writing, not only at display time. Finding live secrets in stored traces means the retention and redaction settings need changing now.

  6. Lock down your own publishing pipeline

    Review who can publish packages or extensions under your organisation, and confirm every publishing token is scoped, short lived and tied to a reviewed pipeline. Check for standing personal tokens with publish rights. Enable signing and release approval so a stolen credential alone cannot ship a version.

Keep reading

More from the team
that verifies every change.

All posts

See what your application allows before an attacker does.