An employee's account has been used to send phishing emails to half your customers. The password has been changed. The attacker is still in. This is the most common mistake in account takeover response: treating the password as the only door, when attackers always leave themselves a few more.
Once an attacker has an account, they work quickly to keep it. They add their own MFA method, create forwarding rules, grant access to a malicious app, or keep a signed-in session open. A password reset on its own closes none of these.
This playbook follows Microsoft's guidance on responding to a compromised Microsoft 365 account, with the reasoning behind each step. If you use Google Workspace or another platform, the same doors exist under different names.
Microsoft lists these common signs of a compromised mailbox:
Microsoft's preferred first step is to disable the account entirely until the investigation is finished. With Microsoft Graph PowerShell:
Connect-MgGraph -Scopes "User.ReadWrite.All"
$user = Get-MgUser -Search UserPrincipalName:'user@example.com' -ConsistencyLevel Eventual
Update-MgUser -UserId $user.Id -AccountEnabled $false
If disabling is not possible, reset the password instead, and follow Microsoft's cautions:
This is the step most often missed. If the attacker stole a session cookie or refresh token, they stay signed in whatever the password is. Microsoft says revoking sessions immediately invalidates active access using the stolen credentials:
Connect-MgGraph -Scopes User.RevokeSessions.All
Revoke-MgUserSignInSession -UserId user@example.com
Step 3: MFA methods and devices. Review every MFA method and registered device on the account. Remove anything the user does not recognise. Attackers often add their own authenticator app or phone number so they can sign in again later.
Step 4: App consents. Review the applications the user has granted access to, and remove and revoke any that should not be there. A malicious app keeps access even after the password changes (see Threat of the Week, Episode 02).
Step 5: Admin roles. Check whether any administrative roles have been assigned to the user, in Entra ID, Azure and the security portals, and remove any that should not be there.
Check mailbox-level forwarding, then every inbox rule, including hidden ones:
Get-Mailbox -Identity user@example.com | Format-List Forwarding*Address,DeliverTo*
Get-InboxRule -Mailbox user@example.com -IncludeHidden | Format-List Name,Enabled,RedirectTo,Forward*,Identity
A value in ForwardingSmtpAddress means mail is going to an external address. In the rules, look at RedirectTo, ForwardTo and ForwardAsAttachmentTo, and at any rule that deletes or moves messages. Remove anything the user did not create.
The UK's National Cyber Security Centre gives this order for recovering a hacked personal account:
For Google and Microsoft personal accounts, Security in 5 Minutes, Episode 06 shows where each of these settings lives.
Account takeover response is a checklist exercise, and that is its strength. Attackers use the same handful of persistence tricks again and again: their own MFA method, a live session, a forwarding rule, an app consent, an admin role. Close all of them, every time, and the attacker has nowhere left to stand.
Cyber Insight | Playbook Monday · Season 1
Making cybersecurity easier to understand, one issue at a time.
Step-by-step defender checklists for when something goes wrong.
Have a question or a suggestion? Prepare an email below. Feedback is private and is sent only when you press Send in your email app.
Likes and claps are your personal reactions on this device.
You can also email Poorna directly.
Your feedback stays private. Nothing is sent from this page automatically.
I started Cyber Insight because everywhere online people only talk about cybersecurity in technical terms — and most people are left without a proper understanding of how the digital world works. I work in cybersecurity, but I write here for everyone. No jargon. Just clear, honest explanations.