Free tech learning for everyone, from basics to pro

Incident ResponseCyber SecurityIntermediate

Responding to phishing and compromised email accounts

In short: Phishing response has two parts: dealing with the malicious email across the organisation, and handling any account that was compromised. Resetting a password is not enough; you must revoke sessions, check MFA methods, rules, forwarding and app consents, and work out what the attacker accessed.

Handling a reported phishing email

Phishing is still one of the most common ways attackers get in. Users who report suspicious emails are one of your best sensors, so make reporting easy and thank people who do it. For background on spotting phishing, see phishing basics.

Responding to a reported phishing emailReportuser flagsemailAnalyseheaders,links, filesFind allwho else gotitPurge andblockremove,block senderCheckclickswhointeractedFollow upusers,tuning
Figure 1. Handling a reported phishing email: analyse, find every copy, remove it and check who interacted.

Analyse the email safely: check the real sender and reply-to addresses, the authentication results for SPF, DKIM and DMARC in the headers, and where links really point. Open attachments only in a sandbox. Then search all mailboxes for the same sender, subject or URL, remove every copy, and block the sender and domains. The key question is who clicked, entered credentials or opened the attachment? Proxy, DNS and EDR logs answer that more reliably than asking users.

When an account is compromised

Signs of a compromised mailboxNew inbox rulesmove or delete mailExternal forwardingcopies sent outOdd sign-insnew country, deviceNew MFA methodattacker phone or appApp consentsunknown OAuth appsSent itemsmass internal phishing
Figure 2. Indicators that an attacker controls an email account; check all of them, not just the password.

If someone entered their password on a fake login page, assume the attacker has it, and possibly a stolen session token too. Some phishing kits act as a proxy between the user and the real sign-in page, capturing the session cookie after MFA. This is why a password reset alone often fails.

  1. Revoke all active sessions and refresh tokens.
  2. Reset the password and review registered MFA methods, removing any the user does not recognise.
  3. Remove malicious inbox rules, external forwarding and delegated permissions.
  4. Review and remove suspicious OAuth application consents.
  5. Check sign-in and audit logs to see what the attacker accessed, sent, downloaded or changed.
  6. Look for related compromise: other users who received internal phishing from this account.

In Microsoft 365, administrators can use Exchange Online PowerShell and Microsoft Graph PowerShell for some of these steps, for example:

Get-InboxRule -Mailbox user@example.com | Format-List Name,Enabled,ForwardTo,DeleteMessage,MoveToFolder
Get-Mailbox user@example.com | Format-List ForwardingSmtpAddress,DeliverToMailboxAndForward
Revoke-MgUserSignInSession -UserId user@example.com
Search-UnifiedAuditLog -StartDate 2026-10-01 -EndDate 2026-10-08 -UserIds user@example.com

Business email compromise and scope

Business email compromise (BEC) is when an attacker uses a real or look-alike mailbox to trick staff into paying fake invoices or changing bank details. Attackers often create rules that hide replies from the real user while they negotiate with finance. If payments may have been redirected, contact the bank immediately; speed matters for recovering funds.

Scoping questionWhere to look
What did the attacker read or download?Mailbox audit logs, file access logs
Who did they email?Sent items, message trace
Did they reach other systems via SSO?Identity provider sign-in logs
Is personal data involved?Content of accessed mail and files

Supporting users and preventing repeats

Treat the user kindly. People who feel blamed stop reporting. Explain what happened, what they should watch for, and thank them for reporting quickly. Then improve controls: phishing-resistant MFA such as passkeys or FIDO2 security keys, conditional access, blocking legacy authentication, restricting automatic external forwarding, and limiting which apps users can consent to.

Tip: practise header and link analysis safely in the phishing analysis lab.

Practice

Why is resetting the password not enough after credential phishing?
The attacker may hold a valid session token, their own MFA method, inbox rules or app consents that survive a password change.
Which logs best show who clicked a phishing link?
Web proxy, DNS and EDR logs, rather than relying on users to remember.
Why do BEC attackers create inbox rules?
To hide replies and warnings from the real user while they continue the fraud.

Key takeaways

  • Make reporting easy and thank users who report.
  • Find and remove every copy, then check who interacted.
  • For compromised accounts: revoke sessions, reset password, review MFA, rules, forwarding and consents.
  • Scope what the attacker accessed and whether personal data is involved.
  • Move towards phishing-resistant MFA and restrict forwarding and app consent.
Tracks your learning on this device only. See your progress on the learning paths.

About the author

Mohamed Fayas

Founder of FM TecHub. CCNA certified, with a BTEC HND in Network Engineering, and BEng (Hons) in Computer Networking and Cloud Security. He writes practical, plain-English guides on networking, security and cloud.

More about the author

Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Stay up to date by email

New notes, tools and security news from FM TecHub, explained simply. Free.

We only use your email to send these updates. See our privacy policy.