Blog
The Cursor breach ran on non-human identities from start to finish

A key issued to a vendor, credentials sitting in agent logs, and a stolen credential that published a malicious extension. Every step was an NHI.
Cursor published a detailed account of its recent security incident, and I want to start by giving them credit for it. Their write-up explains how the attacker got in, what they reached, and what Cursor changed afterward. Few companies share that much detail, and the rest of us can learn from it. The incident has also been covered by The Hacker News.
Every step of the attack ran on a non-human identity (NHI). The attacker moved from one leaked credential to the next, and each one led to another.
What happened
Based on Cursor’s account:
- A vendor’s key leaked. Cursor had issued an access key to Fireworks, a third-party AI training and inference vendor. The key was exposed on Fireworks’ side (see the Fireworks security bulletins), and the attacker used it to copy data from a read-only storage bucket Cursor used to share data with Fireworks.
- The logs held more credentials. The bucket contained coding agent traces, mostly from 2025 and from sessions not in Privacy Mode. A small number of them held credentials that had never been redacted. Fewer than 0.01% of Cursor customers had API credentials exposed this way.
- Those credentials opened internal tools. The attacker used them to reach select SaaS tools Cursor uses, including archived non-production source code, customer support data, and some credentials users had sent to Cursor’s support team.
- A stolen credential published malware. On October 29, using a credential stolen from Cursor’s internal systems, the attacker placed malicious copies of Anthropic’s Claude Code extension on the cache that serves Cursor’s VS Code extension marketplace. They were live for about 11 hours, and at most 5,000 users may have received the malicious build. Anthropic didn’t publish these copies, and this wasn’t a vulnerability in Anthropic’s product.
Cursor’s monitoring caught the activity. They deactivated the vendor key, rotated credentials, and took the marketplace offline. The last attacker activity they saw was on November 1, and it was blocked.
Every link in the chain was an NHI
The attacker used a third-party access key, then API credentials left in logs, then credentials pulled from SaaS tools, then a credential with permission to publish to the extension cache. None of those belong to a person. In my experience, keys, tokens and service credentials are also the identities security teams track least.
Keys you give to vendors are your attack surface. The first key in this chain was issued by Cursor but leaked from someone else’s environment. Every key you hand to a vendor, partner or integration inherits their security posture. If you don’t know which keys you’ve issued, to whom, and what each one can reach, you can’t judge the risk when one of those vendors has an incident.
AI workflows put secrets in new places. Coding agents and AI tools generate traces, logs and transcripts, and those capture whatever passes through them, credentials included. The same goes for support tickets, where users paste keys to get help. Secret scanning that stops at source code misses all of it.
Both risks are on the OWASP Non-Human Identities Top 10: vulnerable third-party NHIs (NHI3) and secret leakage (NHI2).
What Cursor changed, and why it’s a good checklist
Cursor’s remediation list lines up with what most organizations should already be doing:
- Rotated every exposed credential, highest risk first, then rotated all credentials in use as a precaution
- Restricted network access so compromised credentials can’t be used outside their intended location
- Added secret scanning across code repositories and expanded it to other internal data sources
- Cut the vendor’s access and deactivated the key it had been issued
Each of these is an NHI security control, and each one does the most good when it’s in place before an incident.
Where SailPoint Agentic Fabric fits
This is the problem we built SailPoint Agentic Fabric to solve. Here is how it maps to each stage of this attack.
Visibility into vendor keys. SailPoint Agentic Fabric maps which keys were issued to which third party and what each one can access, so an overly broad vendor key shows up before it’s abused.
Secrets where they shouldn’t be. SailPoint Agentic Fabric finds cleartext secrets exposed beyond source code, including CI/CD pipeline logs. Scanning extends to other logs, data stores and support tools, where credentials like the ones in Cursor’s agent traces and support tickets end up. Each exposure is checked for validity, so teams know which ones are still live.

SailPoint Agentic Fabric flags AWS credentials exposed in a CI/CD log, confirms they are still valid, and traces them to the exact workflow, job step and log line.
Detecting abnormal use. NHIDR (non-human identity detection and response) learns what each NHI normally does and raises a threat when that changes, for example when a key is used from an untrusted location, from a new device, or against resources it has never touched. In this attack, that’s the moment the vendor key and the stolen credentials started reaching internal tools. Teams can also set zero-trust policies, such as a geo allowlist, so a credential used outside its expected location is flagged immediately.
Faster, targeted response. Every NHI is tied to an owner, its permissions and what it can reach. When something leaks, you know what to rotate first and who owns it, so precautionary rotation doesn’t take down more services than it needs to.
What to do now
- List every key and token you’ve issued to vendors and integrations, who holds each one, and what it can access
- Scope vendor keys to the minimum data and actions they need, and set expirations
- Scan logs, AI agent traces, data exports and support tickets for credentials, not only code
- Restrict where credentials can be used from, and alert on anything outside that
- Make sure every NHI has an owner, so rotation can be targeted and fast
If you installed or updated the Claude Code extension (versions 2.1.312 or 2.1.313) from the Cursor VS Code extension marketplace on October 29, follow the steps in Cursor’s security notice. Cursor notes that uninstalling the extension alone may not be enough.