Skip to main content

Guide

What to do in the first hour after a Microsoft 365 account is hacked

Lock the attacker out first, then find what they changed. Reset the password, sign the account out everywhere, remove any sign-in methods and email rules you don't recognize, and warn the people who got emails from it.

By Leonardo Gevaerd, IT lead, EveryBit MSP. Published .

A hacked email account is one of the most common ways a small business loses money. Once someone else is inside a mailbox, they can read every conversation, send convincing emails as that person and quietly redirect invoices. The good news is that the first hour is enough to lock them out, if you work through the steps in order.

You need a Microsoft 365 admin account for most of these steps. If you don’t have one, call whoever manages your Microsoft 365 now and send them this page.

Signs an account has been hacked

Microsoft lists these as common signs. One is enough to act on.

  1. People reply to emails the user never sent, or the user’s Sent Items or Deleted Items folder has messages they don’t recognize.
  2. Email is missing, or new messages go straight to an odd folder such as RSS Subscriptions, Junk Email or Notes.
  3. The mailbox suddenly can’t send email. Microsoft blocks accounts that start sending spam.
  4. New inbox rules or email forwarding to an address nobody recognizes.
  5. Unexpected password changes, lockouts or MFA prompts the user didn’t start.
  6. The user’s name, phone number or email signature changed.

The first hour, step by step

Work from a different computer than the affected user’s if you can. If their computer is infected, anything typed on it may be visible to the attacker.

1. Reset the password

In the Microsoft 365 admin center, go to Users then Active users, select the person and choose Reset password.

  1. Use a long, new password that has never been used before.
  2. Give it to the user by phone or in person. Don’t email it, because the attacker may still be reading that mailbox.
  3. If the user has app passwords (older apps that can’t use MFA), delete them. Resetting the password does not cancel app passwords.

Microsoft also offers Block sign-in, but it can take up to 24 hours to apply. Resetting the password works right away, so do it first and block sign-in as well if you want the account fully disabled while you investigate.

2. Sign the account out everywhere

A new password doesn’t end sessions the attacker already has open. Select the user again and, on the Account tab, choose Sign out of all sessions. According to Microsoft, people are signed out within an hour, or sooner when they move to a different Microsoft 365 page.

If you have an IT provider, they can sign the account out immediately with PowerShell instead of waiting.

3. Remove sign-in methods you don’t recognize

Attackers often register their own phone or authenticator app, so they can get back in even after a password reset. In the Microsoft Entra admin center, open the user and check Authentication methods. Delete anything the user doesn’t recognize, and have them set up MFA again on their own phone.

If the account didn’t have MFA at all, turn it on now. It’s the single most effective protection against this happening again.

4. Remove forwarding and inbox rules

This is the step most people miss. A common attacker trick is a rule that forwards email outside the company, or hides replies about a payment so the real user never sees them.

  1. Sign in to Outlook on the web as the user (after the password reset), then open Settings, then Mail.
  2. Under Forwarding, turn off any forwarding the user didn’t set up.
  3. Under Rules, delete any rule they didn’t create. Pay attention to rules that forward, delete or move messages, especially ones mentioning words like invoice, payment or wire.

Some rules can be hidden from Outlook. Your IT provider can list every rule, including hidden ones, with PowerShell.

5. Check apps and admin access

  1. In the Entra admin center, check which apps the user has given access to their account, and remove any they don’t recognize. Some attacks use a fake app rather than a stolen password.
  2. If the user has any admin role, check that nobody added roles or new admin accounts.

6. Warn the people who got emails from the account

  1. Look through Sent Items and Deleted Items for messages sent during the attack.
  2. Contact those people by phone or from a different account, and tell them to ignore and delete those messages.
  3. Tell whoever handles payments, on your side and at your customers and suppliers, not to act on any change of bank details received by email. Confirm changes by phone, using a number you already had.

7. If the mailbox can’t send email

If the account sent spam, Microsoft may have blocked it from sending. Once the account is secure, an admin can release it in the Microsoft Defender portal on the Restricted entities page.

After the first hour

  1. Find out how long the attacker had access. The sign-in logs in the Microsoft Entra admin center show the location, IP address and time of each sign-in. Look for sign-ins from places the user has never been.
  2. Find out what they saw or sent. The audit log in the Microsoft Defender portal shows activity on the account. Check whether files in OneDrive or SharePoint were opened or shared.
  3. Check the user’s computer for malware before they go back to work on it.
  4. Think about who else needs to know. If customer or employee data may have been exposed, talk to your cyber insurer and a lawyer. Many US states have data breach notification laws with deadlines.

How to make it less likely next time

  1. Require MFA for everyone, with an authenticator app rather than text messages where possible.
  2. Block automatic forwarding to outside addresses unless there’s a business reason for it.
  3. Train your team to spot phishing. Most hacked accounts start with someone entering their password on a fake sign-in page.
  4. Know who to call. Write down who has admin access to your Microsoft 365 and who handles an incident, before you need it.

Want this handled for you?

EveryBit MSP looks after this kind of work for growing businesses, as part of Security. A short call is enough to see if we're a good fit.