GuidesGuides · Everyday help

My email was hacked: what to do in the first hour and the first day

How to tell that someone else has been in your mailbox, the order to do things in, the hidden forwarding and inbox rules attackers leave behind, what to tell your contacts and your bank, and how to keep it from happening again. For work accounts and personal ones.

9 minute readUpdated

The short answer

Lock the attacker out first, then clean up what they left behind. A new password alone is not enough.

  1. Work account: tell your IT team at once. They can sign the attacker out of every session, reset the password and check the whole mailbox.
  2. Personal account: from a device you trust, change the password on the provider's own website, sign out everywhere, and check the recovery phone and email address.
  3. Every account: remove forwarding, inbox rules, connected apps and sign-in methods you did not set up. They keep working after a password change.

Until you know what the attacker read or sent, treat every email about payments, invoices or changed bank details as suspect, and confirm it by phone on a number you already had.

Signs that someone else is in your mailbox

Sometimes it is obvious: your password stops working, or friends ask why you sent them a strange link. Often it is quiet, because an attacker who is after money would rather read along for days than be noticed. Any one of these is a reason to act:

  • People received email you did not write. Check your Sent and Deleted folders. Attackers often delete what they send, so an empty Sent folder proves nothing.
  • Email is missing or has stopped arriving. Replies never reach you, or messages turn up in folders such as RSS Subscriptions, Notes or Junk Email. That usually means an inbox rule is moving or forwarding them.
  • Security alerts you did not cause. A sign-in from a place you have never been, verification codes you did not request, or a new phone number or email address on the account.
  • Settings that changed by themselves. A new signature, an automatic reply you did not write, a forwarding address, or an unknown app with access to your account.
  • You are blocked from sending. Microsoft 365 blocks a mailbox from sending when it is used for spam.

The first hour: lock them out

The order matters. If you only change the password, an attacker who is still signed in, or who added a forwarding rule, keeps reading your mail.

  1. Work account? Tell your IT team now. Call them, or use chat. Do not report it from the hacked mailbox, because the attacker may be reading it. Your IT team can do things you cannot: end every session at once, read the sign-in logs and find rules that are hidden from you. If you are the one who runs IT, the table further down is your list.
  2. Use a device you trust. If a virus or a bad browser extension may be involved, do the next steps from another phone or computer. Microsoft advises running a full antivirus scan before you change the password, because password-stealing software would simply capture the new one.
  3. Change the password, or reset it if you are locked out. Type the provider's address yourself instead of following a link in an email. Choose a long password you have never used anywhere else. If the attacker changed the password, use the official recovery page in the table below.
  4. Sign out everywhere. A Google password change signs you out of most devices. For a personal Microsoft account, open the security section at account.microsoft.com, go to Additional security options and choose Sign out everywhere, which Microsoft says can take up to 24 hours. At Apple, sign in at account.apple.com, open Devices and remove any device you do not recognize.
  5. Check how the account can be recovered and unlocked. Look at the recovery phone number, the recovery email address and every sign-in method, such as an authenticator app or a phone number for codes. Remove anything that is not yours. An attacker who added their own phone can reset your new password an hour later.
  6. Remove what they left behind. Forwarding, inbox rules, people with access to your mailbox and connected apps. The next section shows where to look.
Personal accountLocked out? Start hereSee who signed in
Outlook.comThe forgotten password option on the Microsoft sign-in page. If you cannot receive a code, Microsoft's sign-in helper leads to the account recovery formaccount.live.com/activity
Gmailaccounts.google.com/signin/recoveryIn Gmail on a computer, Details at the bottom right. Devices are at myaccount.google.com/device-activity
iCloud Mailiforgot.apple.com. Apple's account recovery includes a waiting periodaccount.apple.com, under Devices

Recovery works best from a device and a place you have signed in from before. No provider asks for payment, and anyone who offers to recover an account for a fee is running a second scam.

The traps attackers leave behind

This is the step most people skip. A forwarding address or an inbox rule keeps sending your mail to the attacker long after the password is new. Rules are also used to hide the attack from you, for example by moving every reply from one customer straight to a folder you never open.

MailboxWhere to lookWhat to remove
Gmail, personal or Google WorkspaceOn a computer: Settings, See all settings. Check the tabs Forwarding and POP/IMAP, Filters and Blocked Addresses, and Accounts and ImportForwarding to an address you do not know, filters that forward or delete, unknown addresses under Send mail as, and unknown people under Grant access to your account
Outlook.com and Outlook for workIn Outlook on the web or the new Outlook: Settings, Mail, then Rules and ForwardingRules that forward, redirect, delete or move mail to another folder, and any forwarding address you did not set
iCloud MailAt icloud.com/mail: the Settings button at the top of the Mailboxes list, Settings, then Mail Forwarding and RulesThe Forward my email to checkbox if you did not select it, and any rule you did not create
  • Connected apps. An app that was given access to your mailbox can keep that access after a password change. For a Google Account, review the list at myaccount.google.com/permissions. For a Microsoft work account, look at myapps.microsoft.com. Remove anything you do not recognize.
  • Signature and automatic replies. Attackers sometimes add a fake signature with their own phone number or bank details, or an automatic reply that sends your contacts elsewhere.
  • Deleted mail. Look in the trash and, in Outlook, under Recover items deleted from this folder. It shows what the attacker tried to hide.

The first day: limit the damage

  • Tell your contacts. Keep it short and factual: "Someone else had access to my email account between these dates. Please do not open links or attachments from me in that period, and do not act on any message about payments or changed bank details without calling me first." For a work account, let IT or management decide who sends this and to whom.
  • Warn the people who handle money. The most expensive result of a hacked mailbox is a real-looking invoice. Attackers read your existing conversations, then reply inside one of them with new bank details. Tell your finance contact, your bookkeeper and your regular customers and suppliers to confirm any change of bank details by phone, on a number they already had. If money has already been sent, call the bank immediately.
  • Check every account that uses this email address. Whoever controls your mailbox can choose Forgot password on other services and catch the reset email. Search your inbox and trash for password reset messages. Then change the password, and turn on a second sign-in step, for your bank, payment and shopping accounts, social media and cloud storage. Start with the ones that hold money, and with any site where you used the same password.
  • Think about what was in the mailbox. Scans of identity documents, contracts, payroll files, customer data. For a business, a mailbox that held personal data about other people can bring a legal duty to report the incident. That is a decision for management, so keep notes of what you found and when.

How did my email get hacked?

You may never know for certain, but it is almost always one of these.

  • A fake sign-in page. A link in an email led to a page that looked like Microsoft or Google and asked for your password. Newer versions of this trick pass your sign-in along to the real site while you type, so they capture the code from your phone as well.
  • A password used in more than one place. Another website was breached, and the same email address and password opened your mailbox.
  • A sign-in prompt you approved without starting it. Attackers who already have the password send approval requests to your phone until one is accepted.
  • An app you gave permission to. A screen asked you to let an app read your mail, and you accepted. No password was stolen, which is why a password change does not undo it.
  • Malicious software on the device. A program or browser extension that copies passwords or signed-in sessions from the computer.

How to keep it from happening again

  • Turn on MFA (multi-factor authentication). MFA asks for something besides the password, such as an approval in an app on your phone. Google calls it 2-Step Verification, Apple calls it two-factor authentication and Microsoft calls it two-step verification on personal accounts.
  • Use passkeys where you can. A passkey replaces the password with your fingerprint, your face or your device PIN. It only works on the real website it was created for, so a fake sign-in page gets nothing. Google accounts and Microsoft accounts both let you create one in their security settings.
  • Use a password manager. It creates a different long password for every site and remembers them for you, so one breached website no longer opens your mailbox.

For the person who runs IT

Work through every row. A password reset on its own leaves live sessions, attacker-added sign-in methods, rules and app permissions in place. Do not email the new password to the user, because the attacker may still be reading the mailbox.

WhatMicrosoft 365Google Workspace
Stop access and revoke sessionsMicrosoft Entra admin center: Entra ID, Users, All users, the user. Clear Account enabled during the investigation, then Revoke sessions. Tokens already issued can stay valid for up to an hourAdmin console: Directory, Users, the user. Suspending the user resets sign-in cookies and OAuth (app access) tokens. Or under Security choose Sign-in cookies, Reset
Reset the passwordMicrosoft 365 admin center: Users, Active users, the user, Reset password. If the account is synced from Active Directory, reset it there, twiceThe user's Security page: Password, Reset Password
Check MFA methodsEntra ID, Users, the user, Authentication methods. Remove methods the user does not recognize, or choose Require re-register MFA. Delete existing app passwordsThe user's Security page: Passkeys and security keys, 2-Step Verification, Recovery information and application-specific passwords
Inbox rules and forwardingExchange admin center: Recipients, Mailboxes, the mailbox, Manage email forwarding. For rules, run Get-InboxRule with -IncludeHidden in Exchange Online PowerShell, which also lists hidden rulesThe user's Gmail settings: the Forwarding and POP/IMAP tab and the Filters and Blocked Addresses tab. Email Log Search shows what was forwarded
App consentsEntra ID, Users, the user, Applications. Remove apps that should not have accessThe user's Security page, Connected applications: remove third-party apps that should not have access
Mailbox delegatesExchange admin center: Recipients, Mailboxes, the mailbox, Mailbox delegation. Check Send as, Send on behalf, and Read and manage (Full Access)Gmail settings, Accounts and Import: Grant access to your account, and Send mail as
Sign-in logsEntra ID, Monitoring & health, Sign-in logs. Note IP addresses, locations and times. Logs are kept 7 days on Microsoft Entra ID Free and 30 days with P1 or P2, so export them earlyReports: user log events for sign-ins and OAuth log events for app grants
Close the gapIf the mailbox was blocked for spam, remove the user from the Restricted entities page in the Microsoft Defender portal. In the outbound spam policy, set Automatic forwarding rules to OffConsider turning off Allow users to automatically forward incoming email under Apps, Google Workspace, Gmail, End User Access, and enforce 2-Step Verification
FAQ

Questions people ask

Short answers to what founders and finance leads ask us most.

Ask us something else

For a work account, tell your IT team immediately and let them lock the account. For a personal account, use a device you trust to change the password on the provider's own website, sign out of all other sessions, and check the recovery phone number and email address. Then remove forwarding, inbox rules and connected apps you did not set up, and warn your contacts.

Your feedback

Was this guide useful?

How SF3 Technologies helps

For the companies whose IT we manage, a hacked mailbox is ours to handle as part of the service. We investigate what happened from the sign-in and audit logs, revoke sessions, clear out rules, forwarding and app permissions, and tell you plainly what the attacker could see and send. Then we close the gaps: MFA and passkeys for everyone, external forwarding blocked, limits on which apps users can approve, and alerts when a sign-in looks wrong. All of it happens in your own Microsoft 365 or Google Workspace tenant, with dedicated admin accounts, so you stay in control. We do not offer one-off incident clean-up on its own, so the best time to talk to us is before it happens.

Menu names and screens change over time and differ a little between apps. The steps apply to current versions of Microsoft 365, Outlook.com, Google Workspace, Gmail and iCloud Mail, and were checked in November 2026 against Microsoft's, Google's and Apple's documentation. This guide is general information; your own setup may differ.