Skip to content
Experiencing a breach? Get help now
Cyberphore

Incident response

What to do if a Microsoft 365 account is hacked

Written by our certified security team · Updated · 3 min read

Short answer

If a Microsoft 365 account is hacked, reset the password, revoke all sessions and refresh tokens, remove any MFA methods and devices the attacker added, delete malicious inbox rules and forwarding, review and remove suspicious app consents, then search the audit log to see what was accessed and sent. Warn contacts who may have received fraudulent emails, and assess whether personal information was exposed and must be reported.

Related: Incident Response, Microsoft 365 and Email Security

On this page (5 sections, 3 min read)

The signs are usually indirect. A client calls about an invoice you never sent. Bounce-backs appear for messages nobody wrote. Microsoft flags a risky sign-in. Whatever tipped you off, act on the assumption that the attacker is still in the account and has set up ways to come back.

What Are the Immediate Steps?

Work through these in order. An administrator needs to do most of them.

  1. Reset the password to a new, strong, unique one.
  2. Revoke all sessions for the user in Microsoft Entra ID. A password reset alone may not kick out an attacker holding a valid session token.
  3. Review authentication methods. Remove any phone number, authenticator app or device the user does not recognize. Attackers often add their own MFA method.
  4. Check inbox rules and forwarding. Look for rules that delete, move or forward mail, especially ones mentioning invoices, payments or the user's contacts. Remove them and record what you found.
  5. Check mailbox delegation and permissions for unexpected access.
  6. Review app consents. Remove unfamiliar OAuth applications granted access to the account.
  7. Check for registered devices that do not belong to the user.
  8. Block sign-in temporarily if you are unsure the account is clean.

How Do You Find Out What the Attacker Did?

Use the Microsoft Purview audit log and Entra ID sign-in logs to establish:

  • When the attacker first signed in, and from where.
  • Which emails were read, sent or deleted.
  • Which files in OneDrive or SharePoint were accessed or downloaded.
  • Whether other accounts were targeted from this one.

Standard audit log retention is 180 days for most licences, so do this promptly. If the logs show broad access to sensitive data, or the attacker reached other accounts, bring in professional incident response.

Who Should You Warn?

  • Recipients of fraudulent emailssent from the account. Phone key clients and suppliers, especially anyone who may be expecting a payment instruction.
  • Your bank, immediately, if any payment may have been redirected. Speed improves the chance of recovering funds.
  • Your cyber insurer, early, as most policies require prompt notice.
  • Staff, so they treat messages from that account carefully.

Do You Need to Report It?

Possibly. If the mailbox contained personal information, such as client records, health information or employee details, and the attacker could have accessed it, assess whether it creates a real risk of significant harm under PIPEDA or a risk of serious injury under Quebec Law 25. Record the incident either way. See Do I have to report a data breach in Canada?.

How Do You Stop It from Happening Again?

Root cause Fix
Phished password and MFA session Phishing-resistant MFA for high-risk users, conditional access requiring compliant devices
No MFA on the account Enforce MFA for all users
Legacy authentication Block it
Malicious app consent Require admin approval for app consents
Nobody noticed for weeks 24/7 monitoring of sign-ins and mailbox changes

The full hardening checklist is in How do I secure Microsoft 365?, and our Microsoft 365 and email security service monitors for exactly these signs. To understand how the attack typically unfolds, read What is a Microsoft 365 account takeover?.

General information for Canadian organizations, not legal advice.

Written by our certified security team

Every Cyberphore team member, from analysts to leadership, holds industry certifications. Updated .

  • CISSP
  • CISM
  • OSCP
  • OSCE
  • GIAC GCIH
  • GIAC GCIA
  • GIAC GPEN

Keep reading

Related Questions

Related services

Book free assessment