EN
  • English
  • Русский
  • ქართულიsoon
  • Українськаsoon
  • Shqipsoon
  • Azərbaycancasoon
  • Türkçesoon
Get in touch
Crypto exchangersHotels & apartmentsEmail & accountsIf you have been hacked

Email Account Hacked? What to Do: 9 Steps in the First Hour

Email account hacked? What to do in the first hour: change the password from a clean device, remove forwarding and rogue apps, and warn your clients.

Читать на русском →

On this page

A hotel or exchange office mailbox holds bookings, invoices, bank details and the recovery path to Booking.com, your exchange accounts, your domain and Telegram. A hacked mailbox means emails to your clients "with new bank details" and password resets for everything else. Below is what to do in the first hour: what to do from a clean device, where attackers hide their forwarding rules, and how to find out what has already been sent in your name. Print it in advance.

Plan

Step What we do When
1 From a clean device, change the password and sign out of all devices first 10 minutes
2 Turn on sign-in with a passkey or code, remove unknown phones and recovery emails 10–15 minutes
3 Remove forwarding, filters and delegation 15–25 minutes
4 Revoke third-party apps and app passwords 25–30 minutes
5 Check what was sent in your name 30–40 minutes
6 Warn clients, guests and partners 40–50 minutes
7 Change passwords for services linked to this mailbox first few hours
8 Check the computer the password was stolen from same day
9 Notify and verify within 72 hours

What real cases show

  • Business email compromise (BEC): according to the FBI's 2023 report, about $2.9 billion in losses. The attacker reads the correspondence and, at the right moment, writes to a client or accountant with "new bank details".
  • Attackers almost always keep a way back in: a rule that forwards copies to an outside address, a filter that hides client replies and bank emails, a third-party app with access to the mailbox. Changing the password doesn't remove any of this (Microsoft describes it in its procedure for a compromised mailbox).
  • The mailbox is the recovery address for the Booking.com extranet, exchanges, the domain registrar and Telegram. A hacked mailbox is a way into all of them.

What follows from this:

  1. The attacker is still in the mailbox → change the password and end all sessions from a clean device (step 1).
  2. They changed the recovery phone or email → check and restore your own (step 2).
  3. Forwarding rules and filters survive a password change → find and delete them (step 3).
  4. So do third-party apps → revoke them (step 4).
  5. "New bank details" may have gone out in your name → check sent mail and warn people (steps 5–6).
  6. Other passwords are reset through this mailbox → change passwords for linked services (step 7).
  7. The password was stolen from your computer → check it, or it will all happen again (step 8).

Step 1. From a clean device, change the password and sign out of all devices

How. Not from the computer where the password may have been stolen. Use your phone or a different computer:

Mailbox What to click
Gmail myaccount.google.com → Security → Password: change it; Your devices → Manage all devices → sign out of every device except the current one
Google Workspace (admin) admin.google.com → Directory → Users → user → Reset password; Security → Sign-in cookies → Reset
Microsoft 365 (admin) admin.microsoft.com → Users → Active users → user → Reset password and Sign out of all sessions
Mail.ru Settings → Security → Change password; Sign out of all devices

The new password is generated by a password manager and not used anywhere else.

Done when: the password is changed and the only active session is yours, on the clean device.

Step 2. Turn on sign-in with a passkey or code, remove unknown phones and recovery emails

How.

  1. Gmail / Google: Security → 2-Step Verification → a passkey or an authenticator app; Ways we can verify it's you: the phone and recovery email must be yours, delete anything else.
  2. Microsoft 365: mysignins.microsoft.com → Security info: delete sign-in methods you don't recognize; admin: make sure two-factor sign-in is mandatory.
  3. Mail.ru: Settings → Security → Two-factor authentication: turn it on; the phone and recovery email must be yours.
  4. Print the recovery codes and put them in the safe.

Done when: two-factor sign-in is on and every recovery method is yours.

Step 3. Remove forwarding, filters and delegation

How.

Gmail: ⚙ → See all settings:

  • Forwarding and POP/IMAP: forwarding to an unknown address → delete; turn POP/IMAP off if you don't use it;
  • Filters and Blocked Addresses: any filter that deletes, marks as read, archives or forwards mail with your clients, your bank or Booking.com in its conditions → delete;
  • Accounts → Grant access to your account: unknown entries → delete; Send mail as: unknown addresses → delete.

Microsoft 365 (Exchange Online PowerShell, admin):

Connect-ExchangeOnline
Get-InboxRule -Mailbox reservations@example.com | Format-List Name, Enabled, ForwardTo, RedirectTo, ForwardAsAttachmentTo, DeleteMessage, MoveToFolder
Get-Mailbox reservations@example.com | Format-List ForwardingSmtpAddress, ForwardingAddress, DeliverToMailboxAndForward
Get-MailboxPermission reservations@example.com | Where-Object { $_.User -notlike "NT AUTHORITY*" }
# remove anything suspicious:
Remove-InboxRule -Mailbox reservations@example.com -Identity "<rule name>"
Set-Mailbox reservations@example.com -ForwardingSmtpAddress $null -DeliverToMailboxAndForward $false

Mail.ru: Settings → Filters: delete unknown ones; Settings → Forwarding (or within filters): delete forwarding to addresses that aren't yours.

Done when: there is no forwarding, filter or access that you didn't create.

Step 4. Revoke third-party apps and app passwords

How.

  1. Google: Security → Your connections to third-party apps & services: unknown ones → delete access; App passwords: delete every one you can't explain.
  2. Microsoft 365 (admin): Microsoft Entra ID → Enterprise applications: apps the user recently consented to → delete; sessions were already reset in step 1.
  3. Mail.ru: Settings → Security → Passwords for external apps: delete unknown ones.
  4. Mail apps on computers and phones (Outlook, Mail on iPhone): reconnect them with the new password.

Done when: only your own apps have access to the mailbox.

Step 5. Check what was sent in your name

How.

  1. Sent and Trash for the days of the compromise: emails you didn't write, especially with the words "bank details", "invoice", "payment", "IBAN", "wallet", "new card number".
  2. Google Workspace (admin): Reporting → Email Log Search: the user's outgoing mail for the period.
  3. Microsoft 365 (admin): Message trace in the Exchange admin center: outgoing mail for the period.
  4. Save the list: recipient, date, subject. You'll need it for step 6.

Done when: you have a list of emails not sent by you (or you know there are none).

Step 6. Warn clients, guests and partners

How. Everyone on the list from step 5, plus everyone you discussed payments with over the past two weeks. Use another channel (phone, WhatsApp) or the recovered mailbox:

Warning: our mailbox ___ was temporarily compromised on [date]. If you received an email from us with new bank details or a request to pay, do not pay and call us at ___. Our bank details have not changed. We only change bank details in person / by phone.

For an exchange office, post the same as a pinned message in your channel (see the guide on a hacked exchange office Telegram, step 7).

Done when: the warning has gone to everyone on the list and is posted in the channel.

Step 7. Change passwords for services linked to this mailbox

How. Search the mailbox for "password reset", "восстановление пароля", "confirm sign-in" to see which services are linked. Usually these are:

Service What to do
Booking.com extranet, Airbnb password, users, phone numbers for codes (see the Booking.com extranet guide)
Exchanges and P2P password, devices, withdrawal whitelist (passkeys on exchanges)
Domain registrar, Cloudflare, hosting password, two-factor sign-in, contacts
Telegram (recovery email for the cloud password) check it hasn't been changed (exchange office Telegram guide, step 2)
Online banking call the bank, check transactions

Done when: every service in the table has been checked and its password changed.

Step 8. Check the computer the password was stolen from

How.

  1. Disconnect the computer used to open the mailbox from the network until it's checked.
  2. Signs of an infostealer: recently opened archives and "documents" from strangers, remote access programs (AnyDesk scams guide, step 1).
  3. The safer option is a reinstall (ransomware guide, step 8) and setup according to the "Cashier's computer" guide.

Done when: the computer has been checked or reinstalled before going back into use.

Step 9. Notify and verify

How.

  1. If the mailbox held guest or client data (passports, bookings, cards), notify the personal data protection regulator within the deadline the law sets; in Georgia that's the State Audit Office within 72 hours (72-hour plan in the passport scan storage guide, step 8).
  2. If money was requested in your name, file a police report.
  3. Check again after a week:
Check Expected
Active sessions only yours
Forwarding, filters, delegation none you didn't create
Third-party apps only yours
Two-factor sign-in on
Services from step 7 passwords changed

Done when: notifications are sent and every row matches.

Checklist

# What to check How to confirm ☐
1.1 Password changed from a clean device Changed from a phone or another computer, not the one where something suspicious was opened; the new password was generated by a password manager and isn't used anywhere else ☐
1.2 Only your session is active Google: Your devices → Manage all devices shows only the current device; Mail.ru: same in the security section; Microsoft 365: "Sign out of all sessions" done ☐
2.1 Two-factor sign-in is on Sign out and back in: the service asks for a passkey or code ☐
2.2 Recovery phone and email are yours Google: Ways we can verify it's you; Microsoft: Security info; Mail.ru: Security. You recognize every number and address ☐
2.3 Recovery codes are in the safe A dated printout of the codes is in the safe; no file with them on the computer ☐
3.1 No forwarding to outside addresses Gmail: Forwarding and POP/IMAP is empty or shows only your address; Microsoft 365: Get-Mailbox shows ForwardingSmtpAddress empty ☐
3.2 No unknown filters or rules Gmail: Filters and Blocked Addresses; Microsoft 365: Get-InboxRule; Mail.ru: Filters. You created every rule ☐
3.3 No unknown delegation or "Send mail as" Gmail: Accounts: only yours under "Grant access" and "Send mail as"; Microsoft 365: Get-MailboxPermission shows only your staff ☐
4.1 Only your third-party apps Google: Your connections to third-party apps & services; Microsoft 365: Enterprise applications. You can explain every app ☐
4.2 No unknown app passwords Google: App passwords; Mail.ru: Passwords for external apps: empty or only yours ☐
4.3 Mail apps reconnected Outlook and Mail on phones receive new email with the new password ☐
5.1 Sent and Trash reviewed for the days of the compromise Search Sent and Trash for "bank details", "IBAN", "payment", "wallet": every email not from you is on the list ☐
5.2 Outgoing log checked (Workspace, Microsoft 365) Google: Email Log Search; Microsoft 365: Message trace: outgoing mail for the period matches the list ☐
6.1 Everyone on the step 5 list is warned Each recipient has a mark, date and channel of warning ☐
6.2 Everyone you discussed payment with in two weeks is warned Search 14 days of mail for "payment", "invoice", "bank details": every correspondent is on the warned list ☐
6.3 For an exchange office, the warning is pinned in the channel Open the channel from an outside account: the pinned message is visible at the top ☐
7.1 All services linked to the mailbox are found Search for "password reset", "восстановление пароля", "confirm sign-in": every service found is in the step 7 table ☐
7.2 Each linked service has a new password and checked contacts Sign in to the service: new password, two-factor sign-in on, email and phone in the profile are yours ☐
8.1 The computer is off the network until checked Cable unplugged or Wi-Fi off; nobody opens email or banking on it ☐
8.2 The computer is reinstalled or checked There's a reinstall date or a scan result; no remote access programs you didn't install ☐
9.1 Regulator notified if the mailbox held personal data Dated copy of the notification, no later than 72 hours from when you found out (in Georgia, the State Audit Office) ☐
9.2 Police report filed if money was requested in your name Report number recorded in the incident log ☐
9.3 One-week check passed Step 9 table: every row matches ☐

Questions

How can I tell my email was hacked if the password still works and there were no alerts?

Signs: emails in Sent that you didn't write; client replies and bank emails stop arriving or show up already read or archived; forwarding or a filter in the settings that you didn't create (step 3); unknown devices in the device list. Any one of these is a reason to go through the plan from step 1.

Where can I see where my email was accessed from?

Gmail: in the mailbox on a computer, bottom right, "Details" shows the access type, IP addresses and approximate location of the last ten sessions; in your Google Account, Security → Your devices. In Google Workspace and Microsoft 365, the administrator has sign-in logs. Take screenshots before you start cleaning up: you'll need them for the police report.

How do I find out how the password was stolen?

Usually one of three ways: the password was entered on a fake sign-in page, an infostealer took it from the computer (step 8), or the same password was used on another site that was breached. Check the last one on haveibeenpwned.com with your email address: if the address appears in breaches, every service with the same password goes into step 7.

I changed the password. Why are clients still getting emails "from us"?

Either the attacker is sending from a lookalike domain or spoofing your address, which DMARC (SPF, DKIM and DMARC setup) stops, or they still have a forwarding rule or an app (steps 3–4).

I can't get the mailbox back: they changed the password and phone. What now?

Gmail and Mail.ru: use the account recovery form from a clean device and a network you usually sign in from. Google Workspace and Microsoft 365: the domain administrator restores access. Until you have access, do steps 6 and 7 through other channels.

Can I just delete the hacked mailbox and create a new one?

Better not. With the mailbox you lose the correspondence for step 5 and the ability to recover services linked to it (step 7), and clients will keep writing to the old address. Get control back first, then move if you want to, after warning your clients.

The attacker emptied Sent and Trash. How do I find out what went out?

In Google Workspace and Microsoft 365, outgoing mail shows up in the admin logs (step 5); deleting emails from the mailbox doesn't erase them. With free Gmail and Mail.ru you don't have such a log: warn everyone you discussed payments with (step 6) and ask them to forward you any suspicious emails "from you".

A client already paid to the "new bank details". What now?

Right away: the client calls their bank and you call yours, asking to stop or recall the payment; the sooner, the better the chances. Then file a police report (step 9) with copies of the emails and proof of payment.

My email is on hosting (cPanel, Roundcube). What do I do?

The same steps in the hosting panel: in cPanel, Email Accounts (change the password), Forwarders and Email Filters (delete unknown forwarding and filters); in Roundcube, filters and forwarding in the mailbox settings, if your host has enabled them. The host has sign-in and sending logs: ask support for them for the days of the compromise.

How often should I change my email password?

Under NIST guidance (SP 800-63B-4), regular "every N days" changes aren't needed; you change the password when there are signs of a leak. A long unique password from a password manager plus sign-in with a passkey or code protects better than frequent changes.


Note: Menu names in email services change. Check them against each service's help pages.

Sources

  1. Google — Secure a hacked or compromised Google Account
  2. Microsoft — Responding to a compromised email account
  3. FBI IC3 — Internet Crime Report 2023 (BEC — $2.9 billion)
  4. DLA Piper — Data Protection Laws of the World: Georgia (State Audit Office, 72-hour notification)
  5. Gmail Help — Last account activity ("Details": access type, IP address and location of the last 10 sessions)
  6. NIST SP 800-63B-4 — Authenticators (no periodic password changes; change on evidence of compromise)
  7. Have I Been Pwned — check an email address against known breaches
↑