Someone at your firm clicked a link, or a client called about a strange email. Now the owner or the compliance officer has to decide what happens in the next hour. When a Microsoft 365 account is compromised, we work two checklists, one for the firm and one to hand your IT provider.
A compromised Microsoft 365 account can happen with multi-factor authentication (MFA) turned on. The leader of one firm we work with got a document from a contact she knew, sent from that contact’s real, compromised account. She entered her password on a fake Microsoft page and approved the sign-in on her phone by matching a number, and the attacker’s session started minutes later.
The email account compromise was caught on a Friday evening, and the response that night followed the two checklists below.
In a response like that one, the firm’s first moves aren’t technical, and the IT provider’s first move, the password reset, is the least of what has to happen.
An employee who only suspects something should start with what to do if you suspect a cybersecurity attack. If a client’s own account was hacked, use our client account compromise response guide.
This is provided for informational use only and is not legal advice.
The first hour after a Microsoft 365 account is compromised
If money moved, call the bank first, because with every hour that passes it’s less likely you’ll get it back. The FBI’s page on business email compromise, its name for fraud run through a hacked mailbox, says contacting the bank “as quickly as possible may reduce or eliminate your financial losses.”
The account comes next, and a new password alone doesn’t remove the attacker. Someone who has been in the account can connect an app to it under some innocuous name, like a PDF scanner. Once the password is changed and the user is back online, a message pops up asking them to re-approve that app, and the attacker is right back in.
In Microsoft 365, the three things we always do when we suspect a compromise are reset the password, reset MFA, and sign the account out of every session. Microsoft’s guidance on a compromised email account puts one step ahead of those three and calls disabling the account “preferred and highly recommended.”
When nobody can say who else is affected, do it for everyone. At one firm we work with, three employees were affected for sure and possibly many more had received the phishing email, so we strongly recommended a global password reset for the whole company.
The user’s computer is evidence, so leave it on. Shutting it down can destroy the data a forensics firm needs, and the endpoint security tool’s quarantine feature cuts its network connections without doing that. The user works on a different machine. The first one waits until a forensics firm releases it, or until you know no forensics firm is coming, and the next section covers who hires one.
Talk about the incident by phone, and keep anything written to facts. We’ve seen situations where email is compromised and people are using email to talk about the compromise. AI notetakers must stay off because it’s important in a breach to limit what is in writing.
The first hour email account compromise checklist
If money moved, call your bank now. Ask for a recall. The odds of getting it back drop with every hour.
Get your IT provider and your cybersecurity vendor (like us!) on one call. Use the phone. Leave AI notetakers off.
Have IT lock the account. That means sign-in turned off, password and MFA reset, and the account signed out everywhere. A new password alone is not enough. If you can’t tell who else is affected, do this for everyone.
Leave the evidence alone. Don’t delete emails or rules. Don’t turn off or wipe the computer. IT cuts it off from the network and gives the user a different one.
Stay off email and Teams for anything about the incident until IT confirms which accounts are clean. Call or text.
The first day of a Microsoft 365 account compromise
The first day of a business email account compromise response is mostly phone calls, and the insurance carrier gets the first one, even when the incident looks small. If you don’t notify them and it later turns out to be a big deal, which you might not find out for months or even years, they can refuse to cover you.
The carrier also decides whose bills it pays. One carrier’s notice to a firm we work with said “pre-tender costs incurred are not covered,” meaning money spent before the claim was reported. The same notice said costs need the claims representative’s approval first and have to go to a vendor on the carrier’s list.
The first point of contact is a claims agent who takes down some info over a call and then talks you through who you can engage from a forensics and legal perspective. If the carrier hasn’t called back by the end of the next day, call again.
Our experience with incidents like this is that we want to put them under attorney-client privilege as early as possible, so the business attorney is copied from the first email.
The time you first learned of the compromise matters because some notice deadlines count from that moment. For SEC-registered advisers, Regulation S-P requires notice to affected clients, in the rule’s words, “as soon as practicable, but not later than 30 days, after becoming aware” of the access.
The Defense Department’s contract clause, DFARS 252.204-7012, defines rapid reporting as “within 72 hours of discovery of any cyber incident,” which our incident response guide for CMMC Level 2 covers. The lawyers handle telling you who to notify and how.
The last calls of the day are about money because cutting access doesn’t end the fraud. When an attacker is in an inbox, they download information about your clients, which probably includes invoices, payment information, and names. Even though they no longer have access, they still have all that information, and they use it to keep trying to trick your clients and partners into sending them money instead of you.
That’s why we confirm every payment change by phone.
The first day email account compromise checklist
Call your cyber insurance carrier, even if it looks small. Waiting can put coverage at risk. Ask for their list of approved law firms and forensics firms, and send it to your cybersecurity vendor. Don’t hire anyone on your own first. If nobody calls back within a day, call again.
No cyber insurance? Hire a breach attorney before anyone else.
Copy your business attorney on emails about the incident. Put “Attorney-Client Privileged” in the subject line. Keep emails to facts. Save opinions and guesses for the phone.
Write down when you first learned about it. Some notice deadlines can count from that moment. For SEC-registered advisers, Regulation S-P requires notice as soon as practicable, and no later than 30 days after becoming aware (17 CFR 248.30(a)(4)(iii)). Defense contracts can carry a 72-hour clock. Client contracts can set shorter deadlines, so check those too. Your attorney decides who must be told.
Pick one person to keep the log. One document with dates, times, who did what. One folder for evidence.
File a report at ic3.gov. If money moved, do it today, whatever the amount.
Warn anyone who got a fake email from the account. Call them, or write from a different account.
Tell your staff what to watch for. Ask whoever handles payments to be on high alert.
Have the user change that password everywhere else they used it. Think banking, payroll and accounting sites.
Confirm every payment change by phone. Call a number you already have on file.
The first week of a Microsoft 365 account compromise
By the first week the account is locked, and the question left is what the attacker opened, because the notice decision depends on the answer.
Microsoft’s Purview audit log answers only part of that question. At one firm we work with, it showed the attacker touched 137 emails in a 17-hour window. It only told us the subject line of each email, not the sender, recipient, date and time that would help the firm determine how much risk there is if an attacker accessed it.
Getting the sender, recipient and date took a second step. The IT provider had to look up each of the 137 emails in message trace, Microsoft’s delivery record for every email.
And, yes, we fully understand that “accessed” doesn’t necessarily mean “read,” but for legal purposes, it’s the closest we can get. It’s much better than the problem we used to face. When the logs couldn’t show which emails were opened, we had to assume that every item in the inbox was compromised.
The week’s other question is why MFA didn’t work. Text-message codes fall to a man-in-the-middle attack, where the attacker tricks you into giving up your email address, your password, and your six-digit code, and then for all intents and purposes they are you. That’s the most common breach we’re seeing these days. The fake sign-in page sits between you and the real one, so it captures the session that Microsoft hands back after you approve the sign-in. Microsoft’s token theft guidance says attackers “replay tokens issued to a user, even if that user has satisfied multifactor authentication.”
Number matching, where the user types a number from the sign-in screen into their phone, doesn’t stop it either, as the firm in the opening story found. Microsoft’s phishing-resistant MFA strength allows a FIDO2 security key, and our post on Conditional Access best practices covers requiring one.
Nothing on the list below waits for the forensics firm’s report. The forensics firm goes through all the logs and sometimes takes the computers, and that often takes weeks. Sometimes, it never finds out how the attacker got in.
The first week email account compromise checklist
Get the list of what the attacker opened. Ask IT for the emails and files, with subject, sender and date.
Have one named person read them. They are looking for client, patient or other protected information. This review drives the notice decision. If the logs can’t show what was opened, assume everything the account could reach was exposed.
Ask why MFA didn’t hold, and fix it now. Don’t wait for the forensics report.
Keep the IT ticket open until every question on the IT provider checklist is answered and you have the log files.
The Microsoft 365 account compromise checklist for your IT provider
This checklist is the page to forward to your IT team. Send it to your IT provider as it is, and keep the ticket open until each line has an answer. Our post on overseeing an IT provider covers what to ask for before anything happens.
In the incidents we’ve worked, the reset gets done, and the lines after it are where things get left out. At one firm, the provider reset the password and revoked the sessions and left the MFA registration alone, so a device the attacker had added would still have worked. At another, the provider said the logs couldn’t confirm what the attacker read and that digital forensics was outside its role.
Both are fair statements of scope. The checklist asks for the evidence anyway, because Microsoft deletes the logs on a schedule and the forensics team may take two weeks to get to them.
Microsoft’s documentation puts a clock on each record:
- Entra sign-in and audit logs are kept seven days on Entra ID Free and 30 days on P1 or P2.
- The Purview audit log is kept 180 days on standard licenses.
- Deleted mail is kept for 14 days.
- Message trace gives an instant report for the last 10 days and a download after that.
- Access tokens last an hour, so some apps keep working that long after a session is revoked.
Much of the checklist draws on Microsoft’s published steps for a compromised email account, and from here on the page talks to the IT provider.
Screenshot before you change anything. Log every step with the time, in UTC.
Contain the breach
Block sign-in, reset the password, reset MFA, revoke sessions. Do all four.
Synced from on-premises AD? Disable the account there and reset the password twice.
Give the new password by phone, never to the affected mailbox.
Revocation is not instant. Some apps keep working for up to an hour. Other apps that use the Microsoft sign-in can stay open longer, so check each one.
Isolate the user’s computer with the endpoint security tool. Don’t power it off. Don’t wipe it. Issue a replacement.
Scope unknown? Reset passwords, MFA and sessions for every user.
Did the account have admin rights? Treat it as a company-wide incident, and confirm audit logging wasn’t turned off.
Check the sign-in log afterward to confirm nothing signed in after the lockout, including mobile apps.
Block the attacker’s sender addresses, links and sending addresses in the email filter. Report the links.
Call in your security monitoring vendor to help investigate.
Save the evidence
Entra sign-in logs, including non-interactive, and Entra audit logs. Kept 7 days on Free, 30 days on P1 or P2.
Purview audit log for the user. Kept 180 days on standard licenses. Search in short time windows.
Message trace. Run it in the first 10 days. After that, the detail only comes as a report you request and download.
Logs from any other sign-in tool, such as Duo. Note how far back each log goes.
Deleted items. Recover and save them. They purge after 14 days by default.
The phishing email that started it and any the attacker sent, saved as files with headers.
Remove the ways back in
Every sign-in method on the account, including passkeys and security keys. Remove any the user doesn’t recognize.
App passwords. Delete them. A password reset doesn’t revoke them.
Devices registered to the user. Disable any that aren’t theirs.
Connected apps. Disable unapproved ones, don’t delete them. Check for new secrets added to existing apps.
Mailbox forwarding and inbox rules, including hidden ones. Look for rules that move mail to RSS Subscriptions, Notes, Junk or Deleted Items.
Delegates, Send As and Send on Behalf permissions, and every shared mailbox the user can open.
Admin roles, new admin accounts, mail connectors and Conditional Access changes since the first bad sign-in.
Find out what happened
First bad sign-in, with time, address, device and sign-in method.
Other accounts. Search by the attacker’s address with no user filter. A clean result for one address does not clear anyone.
What was opened. Pull the mail the attacker accessed from the audit log, then run a message trace on each for subject, sender and date. Send the list to the client.
What was sent and deleted. Get the complete recipient list.
Files and chats. Pull the files the attacker opened or downloaded in OneDrive and SharePoint from the audit log, and check Teams chats.
Every other app behind the same sign-in. Ask those vendors to check their logs.
Who else got the phishing email, and who clicked. Save a copy, then remove it from every mailbox.
Interview the user. What did they click, where were they, which device?
Run Microsoft’s “Compromised Accounts” test, which is linked from its page on responding to a compromised email account.
Before you close the ticket
Why didn’t MFA work? Check Conditional Access exclusions, legacy sign-in, text and voice fallback, device code sign-in, and how often users are asked to sign in again.
Was the email filter overridden to deliver the message?
Who received the alert, and how long before a person acted?
Move the user to a phishing-resistant method (a passkey or security key).
Give the forensics firm the ticket history and every log file through a file share.
Turn back on anything switched off during the lockdown.
Delete any accounts created for the forensics firm.
If the mailbox was blocked from sending, remove the user from the Restricted entities page.
After a Microsoft 365 account compromise is closed
How long to keep watching the account afterward is a fair question, and the honest answer is that it depends. If the firm has a monitoring tool in place, or put one in place as part of the breach, then the tool does it. If it doesn’t, then yes, you should be looking for any unusual activity.
The unusual activity is the things in the IT provider checklist, turning up again:
- New apps
- New MFA
- New logins you don’t recognize
- New forwarding rules
- New delegates
The user gets the account back only after the “Remove the ways back in” items are done. The time to write this plan down is before it’s needed, and our incident response policy template is a place to start.
Microsoft 365 account compromise FAQ
Is resetting the password enough after a Microsoft 365 hacked account?
No. A new password leaves the attacker’s sessions, MFA methods, connected apps and inbox rules in place. Have IT turn off sign-in, reset the password and MFA, and sign the account out everywhere.
How can you tell if a Microsoft 365 account is compromised?
Sometimes the first sign comes from outside, when a client asks about an email your person never sent. Inside the account, Microsoft’s guidance lists these signs: the mailbox is blocked from sending email, emails are missing or deleted, the Sent Items folder holds messages the person didn’t write, the email signature has changed, the person’s details in the company address list have changed, there are unexplained lockouts or frequent password changes, mail is being forwarded outside the firm, or there are inbox “rules that move messages to the Notes, Junk Email, or RSS Subscriptions folders.”
How long does Microsoft 365 keep sign-in and audit logs?
Microsoft’s documentation says Entra sign-in and audit logs are kept seven days on the free tier and 30 days on P1 or P2. The Purview audit log is kept 180 days on standard licenses.
Do you have to notify clients if an email account is compromised?
It depends on what the attacker could reach, and your attorney makes the call. Three things usually decide it. The first is whether the emails and files that were opened held sensitive information, such as Social Security numbers, account numbers or health records. The second is whether the logs can show which items were opened, because if they can’t, you have to treat everything the account could reach as exposed. The third is which rules and contracts apply to your firm. For SEC-registered advisers, Regulation S-P requires notice to each affected client unless the firm determines, after a reasonable investigation, that the information isn’t reasonably likely to be used in a way that causes substantial harm or inconvenience. That notice is due as soon as practicable and no later than 30 days after becoming aware. Defense contracts can carry a 72-hour clock.
Should we wipe the computer as part of our business email compromise response?
Not yet. The computer may hold evidence of how the attacker got in, so hold it until the insurance carrier’s forensics firm releases it. If no forensics firm is going to be hired, wipe it and rebuild it before anyone uses it again. Security tools catch the obvious problems on a computer and can miss the rest.
What we’d do first
We’ve been on a lot of these calls, and almost every one could have been prevented.
Breaches are preventable. It’s just a matter of paying attention and double-checking what the IT company is doing. The firms that come through this well are the ones that had the right sign-in settings before it happened, knew who their insurance carrier would call, and had an IT provider who’d seen this list before.
So don’t wait for the bad day. Send the IT provider checklist over now and ask them to walk you through how they’d handle each section. You’ll learn a lot from which lines they answer quickly and which ones they don’t. Ask one more question while you’re at it: is audit logging turned on? Microsoft’s documentation says it isn’t on by default for Business Basic, Business Standard or Business Premium licenses, and the audit log is how you find out what an attacker opened.
And if you’d like a second set of eyes on your Microsoft 365 setup, or someone to call when it happens, that’s the service we run for small firms. We’re happy to talk.