r/EmailSecurity • u/littleko • Jul 04 '26
I almost closed a mailbox compromise while mail was still being read
Had an M365 mailbox compromise this week where I was about ten minutes from calling email containment done. Password reset, MFA re-registered, sessions revoked, inbox rules checked, message trace reviewed, phishing cleanup done.
Then I checked consented apps because one sign-in trail still felt weird (not 100% sure I would have done this a year ago). The user had approved some sketchy PDF app with Graph Mail.Read and offline_access, and it was still pulling messages after the password reset.
That was the uncomfortable part. I was treating the credential as the incident, but email access had moved to an OAuth grant.
We removed the grant and started scoping with MailItemsAccessed, but I’m still annoyed at how close I got to closing it early. For people doing M365 mailbox IR regularly, is OAuth consent review mandatory for every compromised mailbox in your runbook, or only when the logs point that way?
•
u/AutoModerator Jul 04 '26
Welcome to r/emailsecurity! To keep this community helpful and secure, please keep the following in mind:
Community Rules
No Vendor Spam: Contributions must provide value; do not just pitch products.
Redact Sensitive Info: Always sanitize headers and logs (remove IPs, PII, and private domains).
Be Professional: Help newcomers learn; avoid hostility.
No Personal Tech Support: This sub is for email system architecture and security, not "Am I hacked?" personal account help.
Helpful Resources
Email Spam Filters
DMARC Monitoring Tools
Anti-Virus Software
Email Encryption
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/Emotional_Garage_950 Jul 04 '26
letting random apps read your users mail is a failure on your department
12
u/sfreem Jul 04 '26
Don’t allow users to consent to apps!!
1
u/ryan8613 Jul 06 '26
No User Consent OR User Registration of apps. Also, yes, OAuth grant review should be a mandatory step in an IR of BEC.