Guides and sections
Cyber Guide
How to tell if your email account has been hacked
Level: Beginner
Common signs are sent emails you did not write, friends getting odd messages from you, password reset or security emails you did not ask for, and settings you did not change. Check your recent sign-ins, forwarding and rules. If you can still sign in, change the password and secure the account straight away.
The signs
An email account is hacked when someone else gets into it without your permission. The ACSC lists these signs of a compromised email account. You might notice one or several.
- Sent emails you did not write. Look in your Sent and Deleted folders for messages you do not recognise.
- Contacts say they got a strange email from you. Google lists friends reporting spam or unusual emails from you as a sign.
- Password reset or security emails you did not ask for.
- Changes you did not make, such as to your profile, recovery details or privacy settings, or emails marked as read when you have not opened them.
- Expected emails stop arriving, or emails you did not delete have gone.
- Sign-in times or places you do not recognise.
- You are signed out of all your devices, or you cannot sign in even though your username and password are right.
Hey, I got an email from you with just a link and no message. Was that you?
I did not click it, just checking.
One sign does not prove your account has been hacked. A message from a friend may also come from someone faking your address. Scammers can fake, or spoof, the sender details of a message, as How to spot a phishing email explains. That is why the checks below matter. They show whether anyone has really signed in.
Be careful with security alerts. Scammers also send fake alerts about unusual sign-ins. Microsoft says you can always sign in to your account directly without clicking links in the email, and the ACSC says to avoid links in emails and messages. Open the real website or app yourself.
Before you start
- You need to be able to sign in. If you cannot, go to If you are locked out.
- Use a device you trust. The ACSC says that if you are unsure how your account was compromised, you should check your device for malware, which is malicious software. Microsoft says to run a full scan on a Windows PC before you change your password. The steps are in I clicked a suspicious link.
- These steps are for a computer. The words on the screen can differ a little between versions.
- If this is a work or school account, an administrator may manage some of these settings, so tell your IT department.
Check Gmail on a computer
1. Look at the last account activity
Gmail keeps a record of recent sign-ins. Open Gmail on a computer and look at the bottom right of the inbox. Select Details next to "Last account activity". A page called "Activity on this account" opens.
Google says this page shows whether you are signed in on another device or browser, how Gmail was accessed, and the last 10 locations that accessed the account. A phone can show the location of your mobile provider, which may be far from where you are. Google says this is normal if the provider's name matches yours. If you do not recognise something, change your password straight away. Google says someone might have access because of phishing or malware.
2. Review security events and devices
- Go to your Google Account and select Security & sign-in. The page itself is titled Security.
- In the Recent security activity panel, select Review security activity. Check each sign-in and change. If Google asks whether an item was you and it was not, choose No, it wasn't me and follow the steps on the screen.
- In the Your devices panel ("Where you're signed in"), select a row to see its details. Look for any device you do not recognise. To remove one, select it, then select Sign out.
Google warns that you may not recognise activity that was really you, for example from a new device, a public computer or a place you passed through. A different browser from the one you normally use can also look unfamiliar. A device you do not own, or one you cannot explain, is the one to remove.
3. Check forwarding
Forwarding sends a copy of every new email to another address. Criminals set it up to receive a copy of all your mail automatically. The NCSC says this could let them reset your passwords.
- In Gmail, at the top right, select Settings (the gear icon), then See all settings.
- Open the Forwarding and POP/IMAP tab.
- Look at the "Forwarding" section. If Forward a copy of incoming mail to is chosen and the address is not one you recognise, select Disable forwarding, then select Save Changes at the bottom.
Google also says that if you see a forwarding notice in your inbox and you never set up forwarding, you should change your password immediately and turn forwarding off.
4. Check filters
A filter is a saved instruction that handles new email for you, for example moving it to a folder or deleting it. A criminal can use one to hide security alerts and replies from you.
- In Gmail, select Settings (the gear icon), then See all settings.
- Open the Filters and Blocked Addresses tab.
- Look at each filter. For one you did not make, select Delete.
Google's list of things to check in Gmail also includes automatic replies, the address on outgoing mail, and people who have access to your Gmail. Correct anything that you did not change yourself.
Check Outlook on the web
These steps are for Outlook.com, Hotmail and other personal Microsoft accounts, in a web browser.
1. Look at recent activity
- Sign in at account.microsoft.com and open the Security basics page.
- Select Review activity to open the Recent activity page.
- If there is an Unusual activity section, expand an item and select This wasn't me if it was not you. In the Recent activity section, if you see something suspicious such as repeated sign-in attempts or profile changes you did not make, select Secure your account.
Microsoft says this page shows when and where the account was used in the last 30 days, and only the significant events, not every sign-in. Mobile phone services can route activity through other locations, so a place that is not yours is not always a sign of a problem.
2. Check forwarding
- In Outlook on the web, select Settings (the gear icon at the top right).
- Select Mail, then Forwarding and IMAP. Outlook may ask you to sign in and verify your account before it shows the forwarding settings. Microsoft's help pages call this page Forwarding.
- If forwarding is turned on to an address you do not recognise, turn it off and select Save. Depending on your version of Outlook, the control is a check box or a switch labelled Enable forwarding or Disable forwarding.
3. Check rules
A rule is Outlook's word for a filter. Look for rules that forward or redirect mail to another address, and for rules that delete mail, move it to a folder you do not use or mark it as read.
- Select Settings, then Mail, then Rules.
- Open each rule to see what it does.
- For one you did not make, open the three-dot menu beside it and delete the rule. Microsoft's help describes this as More actions, then Delete rule. The switch beside each rule turns it off without deleting it.
Microsoft's own recovery page also says that, because someone else had access, you should check your account's connected accounts, forwarding and automatic replies.
Secure it now
If you can still sign in, do these steps while you can. They follow the ACSC's advice for email account compromise.
- Change your password using the provider's official website or app, and not a link in an email. Use a strong password that you use nowhere else.
- Google: Google Account, Security & sign-in, then Password under "How you sign in to Google".
- Microsoft: account.microsoft.com, Security, then Change Password.
- Sign out of all devices. Google signs you out of most devices when you change the password, then you can remove any unknown device on the Your devices panel. For Microsoft, open the additional security options on the security dashboard, scroll to Sign out everywhere and select Sign out. It can take up to 24 hours.
- Check your recovery details. These are the backup email addresses and phone numbers that can reset your password. Remove any you do not recognise. Google lists unfamiliar recovery phone numbers and recovery email addresses among the changes to correct straight away.
- Turn on two-step login if it is not on, and review the methods already set up. Two-step login explains your options. Google has a page on turning on 2-Step Verification.
- Change the password on other accounts that use the same password, and on accounts that use this email address to reset their passwords. Start with banking, online shopping and government accounts.
- Check your bank and shopping accounts for anything you do not recognise. The ACSC says to ask your bank to check for suspicious activity.
- Tell your contacts. The ACSC says to tell them your account was compromised, that they may get odd messages from you, and not to open links or attachments but to delete and report them.
- Report it. In Australia, report to the ACSC through ReportCyber at cyber.gov.au/submit-a-report, and to Scamwatch if you were scammed or your account was used to scam others. In the UK, if you have lost money, report to Report Fraud (0300 123 2040 in England, Wales and Northern Ireland) or Police Scotland on 101. I clicked a suspicious link lists the details.
If you are locked out
If you cannot sign in, use the provider's own recovery pages. Do not use a link from an email or an ad.
- Google: start at How to recover your Google Account or Gmail. Google says you cannot call it for help with signing in and that it does not work with any service claiming to offer account or password support. Never give anyone your passwords or verification codes.
- Microsoft: start at How to recover a hacked or compromised Microsoft account, which has a sign-in helper tool. Microsoft also has an account recovery form, and says that form cannot be used if two-step verification was turned on.
- Other providers: go to the provider's website and search its help pages for account recovery. The NCSC says that if an account cannot be recovered you may need to create a new one, then give your contacts the new details.
The ACSC warns against anyone who offers to recover lost money or accounts for a fee, because scammers target victims with false promises of recovery.
Questions people ask
The activity page shows a place I have never been. Am I hacked?
Not necessarily. Google says a phone can show the location of your mobile provider, and Microsoft says mobile phone services route activity through other locations. If the device, browser or time does not match anything you did, treat it as a real sign and secure the account.
My contacts got an email from me but my Sent folder is empty. Was I hacked?
It could be. Not every sign shows up in every case, and a message can also come from someone faking your address. Do the checks above either way. If you find nothing, a password change and two-step login are still sensible.
I got an email saying someone signed in. Is it real?
It may be, but do not click anything in it. Go to the provider's website or app yourself and look at the recent activity page, as shown above.
Related guides
- I clicked a suspicious link. What should I do now?
- How to spot a phishing email
- Passwords and two-step login
- Blocking an email domain
Behind the advice
Checking sign-in activity matches the Detect function of the NIST Cybersecurity Framework 2.0, where possible attacks and compromises are found and analysed, and securing the account matches its Respond function. MITRE ATT&CK is a public catalogue of the methods attackers use. The signs on this page line up with Valid Accounts (T1078), Email Collection: Email Forwarding Rule (T1114.003) and Hide Artifacts: Email Hiding Rules (T1564.008). Friends receiving messages from your account is similar to Internal Spearphishing (T1534), where a compromised account is used to reach other people.
Sources
- Recover from email and online account compromise (Australian Cyber Security Centre)
- Recover from scams (Australian Cyber Security Centre)
- Submit a report (ReportCyber, Australian Cyber Security Centre)
- Recovering a hacked account (National Cyber Security Centre)
- Protect your email by using a strong and separate password (National Cyber Security Centre)
- Secure a hacked or compromised Google Account (Google Account Help)
- Last account activity (Gmail Help, Google)
- See devices with account access (Google Account Help)
- Automatically forward Gmail messages to another account (Gmail Help, Google)
- Create rules to filter your emails (Gmail Help, Google)
- Change or reset your password (Google Account Help)
- Turn on 2-Step Verification (Google Account Help)
- How to recover your Google Account or Gmail (Google Account Help)
- What happens if there's an unusual sign-in to your account (Microsoft)
- What is the Recent activity page? (Microsoft)
- Turn on or off automatic forwarding in Outlook.com (Microsoft)
- Turn automatic forwarding on or off in Outlook (Microsoft)
- Manage email messages by using rules in Outlook (Microsoft)
- Change your Microsoft account password (Microsoft)
- How to sign out of your Microsoft account everywhere (Microsoft)
- How to recover a hacked or compromised Microsoft account (Microsoft)
- Recover your account (Microsoft account recovery form)