Claude Account Hacked: 6-Step Recovery Guide and Prevention Checklist
When a Claude account is compromised, order matters most: secure the email you log in with, invalidate old sessions, check billing and API keys, and only then contact official support. If someone else still controls your email, everything else you do can be undone. Below are the 6 steps in that order, with a prevention checklist at the end.
Menu names and entry points may change between releases, so follow the official Claude Help Center for exact locations. This article only covers the approach.
How can you tell your Claude account was really hacked?
Common signs:
- You receive login verification emails or codes you did not request.
- Your chat history contains messages you did not send.
- You get notices about subscription changes, charges, or plan changes you did not make.
- The console shows API keys you do not recognize, or usage suddenly jumps.
- Your mailbox gets unfamiliar "change email" or "reset access" notices.
A single sign does not necessarily mean a compromise. Switching networks or devices can also trigger a verification email. For what the official "unusual activity" notice means, see What Claude's "unusual activity" message means. If two or more signs appear together, or you see actions you are sure you did not take, follow the steps below.
Step 1: Secure your login email first
A Claude account usually signs in through an email address or a third-party account, so the email is the root of the whole account. Deal with the email first, not Claude's settings.
- Change the password on your email provider's official page. Do not reuse a password from another site.
- Turn on two-step verification. Prefer an authenticator app or a security key; SMS is a distant second.
- Check the mailbox's forwarding and filter rules, and delete any you did not create. Attackers often use forwarding rules to keep receiving verification emails.
- Review the mailbox's signed-in devices and authorized apps, and remove anything you do not recognize.
- If you sign in to Claude with a third-party account such as Google, check that account's security settings too.
Step 2: Sign out of all sessions
Once the email is safe, go back to Claude's account settings and look at the devices and sessions currently signed in. If there is a "sign out of all devices" option, use it to invalidate old sessions. Its location and name depend on the official Help Center.
For the relevant settings, see Claude account security settings: sign-in methods, device sessions, and email protection.
Step 3: Check payment and subscription records
- On Claude's subscription page or in your payment provider's statements, verify recent charges and plan changes.
- If you find a charge you do not recognize, keep a screenshot, the date, and the amount, then explain it to official support and to your bank or payment provider later.
- If your payment provider lets you freeze a card or change the payment method, you can do that while you verify.
Whether a billing dispute or refund succeeds is decided by the vendor and the payment provider, and nothing here is a promise. If the account is later restricted or disabled, see What happens to a paid subscription after a Claude account ban.
Step 4: Contact official support
Submit a request through the support entry in the official Claude Help Center. Do not use a "support agent" from search results or a direct message on social media. Try to have these ready:
- The email address linked to the account.
- Roughly when you noticed the problem, and exactly what you saw.
- Screenshots of the unfamiliar charges or login notices.
- What you have already done, such as changing the email password or signing out of sessions.
After submitting, wait for the official reply. Do not file multiple tickets, and do not send verification codes or a full key to anyone claiming to be support.
Watch out for phishing too. After a compromise, an "official" email asking you to click a link and sign in is likely a second scam. See How to spot phishing emails and fake login pages impersonating OpenAI; the same approach applies to Claude.
Step 5: Check whether API keys leaked
If you have an Anthropic console account or use Claude Code, handle keys separately:
- Sign in to the official console, list all API keys, and delete or rotate any you do not recognize or no longer use.
- Review usage and cost and compare them with your own records.
- Search your machine and code repositories for keys written into files:
grep -rn "sk-ant-" . --include="*.env" --include="*.json" --include="*.md" --include="*.sh" 2>/dev/null
git log -p -S "sk-ant-" | head
- If a key has appeared in a public repository, log, or screenshot, treat it as leaked: revoke it first, generate a new one, and only then clean up the repository history.
- Update every environment variable, CI secret, and tool configuration that used that key.
If Claude Code reports an auth conflict or a 401 after the swap, see Fixing Claude Code auth conflict warnings and 401 errors.
Step 6: After recovery, review privacy and data settings
Once you have the account back, consider whether sensitive content in your chat history might have been viewed, and confirm your privacy settings. For whether conversations are used for training and how to turn that off, see Claude privacy settings: are your chats used for training, and how to turn it off. For a similar process on ChatGPT, compare ChatGPT account hacked: signs and recovery steps.
Prevention checklist
| Item | What to do |
|---|---|
| Unique strong password, two-step verification on, check forwarding rules regularly | |
| Passwords | Use a password manager; never reuse across sites |
| API keys | Create separate keys per purpose, keep them out of repositories, rotate regularly |
| Repositories | Scan for secrets before committing; add .env to .gitignore |
| Devices | Sign out on public computers; clear old sessions regularly |
| Email links | Open sign-in links only by typing the official domain yourself |
| Sharing | Do not share an account; teams should use the official team plan |
You can also use the IP and environment check to look at your own network for DNS and WebRTC leaks, and Is Claude down? to see whether the official service has an outage. Both are only auxiliary checks and cannot tell you whether an account was compromised.
If you would rather not keep keys in your official account
One approach is to reduce the official credentials you need to keep: in Claude Code, connect to a gateway using an endpoint address plus a key, so your machine does not store an official account login session. AGI Plan is an aggregation gateway of this kind. It is billed monthly, paid in RMB with no overseas credit card needed, and Claude Code and Codex only need one endpoint address changed. For the steps, see https://agiplan.dev/startup. AGI Plan is a commercial partner of cdnping. AGI Plan is not an officially authorized channel, and some models are marked as available outside China only; check https://agiplan.dev/models for what is available. For related details, see Can you use Claude Code without a Claude account? The endpoint-address approach. This is only one option for reducing account exposure. The key still has to be kept safe, and the steps after a compromise are the same as above.
Next step
Start with the email: change the password, turn on two-step verification, and check forwarding rules. Then work through signing out sessions, checking billing, contacting official support, and rotating keys. When you are done, fill any gaps using the prevention checklist.