Fix
Cursor Account Compromised? Do These 5 Things Now
Secure the login provider first: change its password and turn on two-factor. Then revoke every session at cursor.com/dashboard → My Settings, rotate any API keys stored in Cursor and audit billing and team membership for changes you didn't make. If you find unauthorized charges, unfamiliar members or exposed keys, email security@cursor.com with dates and screenshots.

On this page
How do I know my Cursor account is compromised?
Cursor's security guidance lists four signals. Any one of them justifies running the full recovery sequence below, which takes minutes and is safe to run on suspicion.
- Unexpected usage or charges on your billing page.
- Login notifications you don't recognize.
- Settings or preferences you didn't change.
- Team invitations you didn't send, if you're a team admin.
The four signals are not equally strong. Settings you don't remember changing is the weakest, because you may have changed them yourself and forgotten. A team invitation you didn't send is the one to take most seriously, because revoking sessions doesn't remove a member somebody already added.
Unexpected usage or charges is the first sign Cursor lists, and the billing page is where you see it. That makes the page both a detection surface and part of the audit in step four. Paid usage beyond your plan's included amount is the part of a hijacked account that costs you money directly, and a spend limit caps it.
This is covered hands-on in Troubleshooting and Operating Cursor Reliably — 7 short Units, free to read.
What are the first five things to do?
Only the first two steps are strictly sequential. Do the rest in whatever order you get to them.
- 1Secure the login method itself. Cursor sign-in runs on Google, GitHub or an email magic link, so the compromise is usually upstream. Change the password on that provider immediately and turn on two-factor authentication. For a magic-link account, that means the email account's password and 2FA.
- 2Revoke every session. Go to cursor.com/dashboard → My Settings → Active Sessions, and click Revoke next to each session. This cuts off any device the attacker still holds.
- 3Rotate exposed API keys. If you stored provider keys in Cursor (OpenAI, Anthropic), revoke them on the provider's dashboard, generate new ones, and only then add them to Cursor settings again.
- 4Audit billing and team state. Check invoices and usage for anything unusual at cursor.com/dashboard/billing, the page Cursor's guidance names, or at grok.com/dashboard/billing if you're on The X SubscriptionThe subscription Cursor is sold through: one plan for Grok, Cursor and X, with Free, Plus, Premium, Super and Ultra tiers, per-seat Teams, a weekly included pool for Cursor models shared with Grok, and third-party models billed at API list price from prepaid credit. Press Enter for the full definition.. Then review team membership for members or invitations you didn't create.
- 5Escalate to security@cursor.com if you see unauthorized charges, lost account access, unfamiliar team members or a key you think was exposed. Include dates, the charges and screenshots, which speeds up triage.
Revoking sessions before you secure the login provider hands the attacker a second sign-in. The cost is repeating the sequence, not anything permanent. Calling step one a password change undersells it, though. The password is the smaller half: two-factor on that provider is what stops a stolen password working a second time, so turn it on before you touch the session list.
Steps three to five don't depend on each other. On a two-person team, work down them yourself. With more people around, hand off step three, since the revoke happens on the provider's dashboard rather than anywhere in Cursor. Adding the replacement keys is the part that comes back to Cursor settings.
Generic breach advice opens with 'change your password', and the useful question here is which password. Cursor's guidance splits it two ways. Google or GitHub sign-in means changing the password on that platform and turning on two-factor there. Email magic-link sign-in means securing the email account itself. Either way, the credential doing the work sits outside Cursor.
What if my account uses company SSO?
SSOSingle Sign-On. One company login (usually via SAML or OIDC) instead of a separate password per tool. Press Enter for the full definition.-managed accounts can't run the recovery themselves, because session control lives in your identity provider. Cursor's guidance is to contact your IT administrator to revoke your sessions in the IdP, check for suspicious logins and reset corporate credentials if needed. Loop in whoever owns the Cursor team plan as well, because they can see team-level activity you can't.
What that costs you is time you don't control. The revoke is quick once someone with identity-provider access runs it, and in practice the delay is reaching that person at the wrong hour. Mail IT and the team-plan owner at the same time, not one after the other. On an SSOSingle Sign-On. One company login (usually via SAML or OIDC) instead of a separate password per tool. Press Enter for the full definition. account, your admin is in effect doing steps one and two for you.
Your admin can't cover the keys, though. Nothing in the identity provider reaches an OpenAI or Anthropic key, so rotate those yourself while you wait.
How do I prevent the next one?
Each control below maps to how a hijacked account gets used: burned usage and spent API keys. Four habits cover both.
- Control
- Two-factor on the identity provider
- Why it works
- Cursor inherits the provider's login security, so 2FA there protects Cursor too
- Control
- Don't paste API keys into shared configs
- Why it works
- A key in a committed file is readable by anyone with the repo; keep keys in Cursor's settings or a secret manager
- Control
- Periodic session review
- Why it works
- Active Sessions is worth a glance after you use shared or public machines
- Control
- Spend limits and spend alerts
- Why it works
- A monthly spend limit caps paid usage beyond your plan; on team plans, spend alerts email you when that spend crosses a threshold you set
| Control | Why it works |
|---|---|
| Two-factor on the identity provider | Cursor inherits the provider's login security, so 2FA there protects Cursor too |
| Don't paste API keys into shared configs | A key in a committed file is readable by anyone with the repo; keep keys in Cursor's settings or a secret manager |
| Periodic session review | Active Sessions is worth a glance after you use shared or public machines |
| Spend limits and spend alerts | A monthly spend limit caps paid usage beyond your plan; on team plans, spend alerts email you when that spend crosses a threshold you set |
Each control matches one way a compromised account gets used.
Two of those four keep working without you, and two ask for a habit. Two-factor on the identity provider and a spend limit get set once. Periodic session review is the weakest of the four to plan around, because reviews you have to remember are the ones that stop happening. Check the list after you sign in on a machine that wasn't yours, and otherwise leave it alone.
None of this needs to be policy on a small team. Once you stop recognizing every name on the member list, the controls that matter move into the identity provider. Set up automated deprovisioning through SSOSingle Sign-On. One company login (usually via SAML or OIDC) instead of a separate password per tool. Press Enter for the full definition. and SCIMSystem for Cross-domain Identity Management. A standard for automatically creating and removing user accounts when people join or leave. Press Enter for the full definition. instead. Cursor offers SCIM on Enterprise plans with SSO enabled.
What if the charges keep coming after all five steps?
Two things survive a session revoke: an API key the attacker copied, and a team member or invitation they added. If spend is still climbing after you have worked the list, check those two before you re-run anything else.
Losing access to the account altogether is a different case, and the one where writing in early pays off. Cursor lists account lockout among the reasons to mail security@cursor.com instead of carrying on alone. Put the dates and the specific invoice in that first mail, so triage doesn't have to come back and ask for them.
Frequently asked questions
Can I reset my Cursor password directly?
Cursor's compromised-account guidance sends you to the login provider, not to Cursor. For Google or GitHub sign-in, change the password on that platform and turn on two-factor authentication there. For an email magic link, secure the email account. Then revoke your Cursor sessions.
How do I log out all devices from my Cursor account?
Go to cursor.com/dashboard, open My Settings, then Active Sessions, and click Revoke next to each session. Do this after you secure the login provider, so the attacker can't sign straight back in.
Who do I contact about unauthorized Cursor charges?
Email security@cursor.com with the dates, the charges and screenshots. Audit your billing page first (cursor.com/dashboard/billing, or grok.com/dashboard/billing on The X Subscription), so the report includes the specific invoices and usage anomalies.
I revoked every session and the charges kept coming. What now?
Two things outlive a session revoke: a provider API key the attacker copied, and a team member or invitation they added. Rotate the keys on the provider dashboard and review the member list at cursor.com/dashboard, then mail security@cursor.com with the dates and the charges.
My API keys were in Cursor. Are they compromised too?
Treat them as exposed. Revoke the keys on the provider's dashboard (OpenAI, Anthropic), generate replacements, and add the new ones in Cursor settings. Provider keys are the most immediately monetizable thing in a hijacked account.
Sources & last verified
- Cursor Help - What to do if your account is compromised
- Cursor Help - Spend alerts
- Cursor Help - Pricing and plans
Cursor ships frequently. Last updated October 28, 2026.