What to Do If Your Email Is Hacked: A Step-by-Step Recovery Guide
Photo: Nikowsk, "Old key and laptop", CC BY-SA 4.0, via Wikimedia Commons.
Your friends ask why you sent them a strange link. Your password suddenly stops working. Or a "new sign-in" alert arrives from a city you have never visited. These are the moments when you need to know what to do if your email is hacked, and fast.
Your email is the master key to your online life. Almost every other account, from banking apps to Instagram, sends its password reset links there. Whoever controls your inbox can quietly take over everything else. This guide walks you through the recovery in the right order, so you lock the attacker out for good instead of just for an afternoon.
Signs your email account has been hacked
The UK's National Cyber Security Centre (NCSC) lists the common warning signs in its guide to recovering a hacked account:
- You can no longer log in, or your password has been changed.
- Your security settings have changed, such as a new recovery phone number or recovery email.
- Messages or notifications have been sent from your account that you do not recognise.
- There are sign-ins or attempts from strange locations or at unusual times.
- Money has moved or purchases were made that you did not authorise.
Google adds a few more red flags to watch for, such as unfamiliar apps with access to your account and changes to the name on the account. If you see any of these, assume the account is compromised and start the steps below. Acting in the first hour makes a real difference.
Step 1: Clean the device you will use
Before you type a new password anywhere, make sure the device you type it on is not infected. If malware such as a keylogger caused the hack, a new password typed on the same machine will be stolen again.
Microsoft's own advice for recovering a hacked Microsoft account puts this first: run a full antivirus scan before you change your password. On Windows, open Windows Security, go to Virus and threat protection, and choose Scan options, then Full scan. If you suspect your laptop is badly infected, do the recovery from a different device you trust, such as your updated phone.
Step 2: Get back in and change your password
If you can still sign in, change your password right away to a long, unique one that you have never used anywhere else. A passphrase of several random words works well. The easiest way to create and remember it is a password manager; our beginner's guide to using a password manager shows how to set one up.
If the attacker has already changed your password, use the provider's official recovery flow, never a "recovery service" you found in an ad or a direct message:
- Gmail / Google: use the account recovery page and answer the questions as best you can. Google's hacked account help page links to it and explains each step.
- Outlook.com / Hotmail: Microsoft's sign-in helper tool asks for your email address or phone number and guides you to self-help or a support agent.
- Other providers: go to the provider's official website and search its help pages for account recovery. Type the address yourself rather than clicking links in emails.
Step 3: Check forwarding rules, filters and auto-replies
This is the step most people skip, and the one attackers count on. The NCSC warns that criminals often set up a forwarding rule, so they automatically receive a copy of every email you get. That includes the password reset links for your other accounts. Changing your password does nothing to stop a rule that is already in place.
- In Gmail: open Settings, then See all settings. Check the Forwarding and POP/IMAP tab for addresses you do not recognise, and the Filters and Blocked Addresses tab for filters that forward, delete or archive mail.
- In Outlook.com: Microsoft says it resets some settings after a hack, but asks you to check your connected accounts, forwarding and automatic replies yourself. Its page on turning automatic forwarding on or off in Outlook shows where forwarding lives.
Step 4: Sign out every other device and remove strange apps
An attacker may still be signed in on their own phone or laptop. In your Google Account, open Your devices and remove anything you do not recognise; Google's help page walks you through it. Gmail also shows a "Last account activity" link at the bottom of the inbox with recent sign-ins and their IP addresses.
Next, review which third-party apps have access to your account and remove any you do not use or recognise. A malicious app with mailbox access can keep reading your mail even after a password change.
Step 5: Fix recovery details and turn on 2FA
Check your recovery phone number and recovery email. If an attacker added their own, they can take the account back whenever they like. Correct anything unfamiliar straight away.
Then turn on two-step verification. As Google puts it, if your password is stolen, your account is still secure because the attacker also needs something you have, such as your phone or a security key. An authenticator app, a passkey or a hardware key is stronger than SMS. Our step-by-step 2FA setup guide covers Google, Microsoft and the most popular apps. Save your backup codes somewhere safe, offline.
Step 6: Secure the accounts linked to your email
Now widen the circle. Change the password on every account that used the same or a similar password, because criminals try a stolen password everywhere. Prioritise:
- Banking, UPI and payment apps, plus cards saved in Google Pay, Chrome or your browser.
- Social media and messaging accounts.
- Shopping sites with saved cards or addresses.
- Cloud storage holding ID documents, such as Aadhaar, PAN or passport scans.
- Any site where you "Sign in with Google" or "Sign in with Microsoft".
To see which of your passwords are already circulating in public breaches, follow our guide on how to check if your email or password was leaked.
Step 7: Warn your contacts and watch your money
Tell your contacts that your account was hacked and that they should treat recent messages from you with suspicion, especially requests for money, OTPs or gift cards. This stops the attack from spreading to the people you know.
Check your bank statements and card alerts for unknown transactions over the next few weeks. In India, if you have lost money to cyber fraud, call the national helpline 1930 as soon as possible and file a complaint on the National Cyber Crime Reporting Portal. Tell your bank directly too, using the number on your card or the bank's official website.
If you cannot recover the account
Sometimes recovery fails, for example if the attacker changed every recovery option long ago. The NCSC's advice is to create a new account, tell your contacts you have abandoned the old one, and update your bank, utility and shopping accounts with the new address. Keep trying the official recovery form in the meantime, giving as much accurate detail as you can.
What QA teams should test in account recovery flows
If you test web or mobile apps, a hacked-email story is also a test plan. Account recovery is where real users go when they are at their most stressed, and where attackers look for shortcuts. On apps you own or are authorised to test, check that:
- Changing a password, recovery email or phone number sends an alert to the old contact details.
- A password reset offers to sign out all other sessions, and actually ends them, including mobile tokens.
- New forwarding rules, connected apps and API tokens are visible to the user and easy to revoke.
- Reset links expire, work only once, and stop working after the password changes.
- Recovery error messages do not reveal whether an email address has an account.
- Security alerts cannot be silently deleted or filtered away by settings the attacker controls.
For a wider starting point, see our security testing guide for QA engineers.
Hacked email recovery checklist
- Scan your device for malware, or switch to a clean, trusted device.
- Sign in or use the official recovery page, then set a new unique password.
- Remove unknown forwarding addresses, filters and auto-replies.
- Sign out unknown devices and revoke unfamiliar connected apps.
- Correct your recovery phone and email.
- Turn on 2FA and store backup codes offline.
- Change reused passwords, starting with banking and payments.
- Warn your contacts about messages sent in your name.
- Watch your bank and card statements; in India report fraud on 1930.
- Keep your devices and apps updated with automatic updates on.
FAQ
Should I delete my hacked email account?
Usually not. Deleting it can make it harder to reset passwords on other sites that still use that address. Recover and secure it first. Only move to a new account if recovery truly fails.
Will changing my password log the hacker out?
Not always. Some sessions, connected apps and forwarding rules keep working after a password change. That is why steps 3 and 4 matter as much as the new password.
How did my email get hacked in the first place?
The most common causes are a reused password leaked from another site, a phishing page that looked like a real sign-in screen, or malware on a device. Unique passwords, a password manager and 2FA close all three doors.
Is it safe to pay someone to recover my account?
No. "Account recovery experts" who contact you on social media are almost always scammers. Use only the provider's official recovery pages and support channels.
Comments
Post a Comment