SOC Use Cases - Microsoft Graph Mail v2
Seven playbooks for Microsoft 365 mail through Graph: phishing report triage, mailbox rule forensics, sender sweeps, owner notification and reported-mail purge.
soc-use-cases-microsoft-graph-mail-v2-1.0.0.json
Sanitized by the pipeline and shipped inactive. Follow the before turning it on.
Needs a connector that isn't on the Content Hub
microsoft-graph-api-security-v2, microsoft-graph-mail-v2 - you'll need to obtain this custom connector (or build an equivalent) before it will run.
Seven playbooks for the Microsoft Graph Mail v2 connector on a Microsoft 365 tenant. Import them as one collection.
- Phishing report triage: reads a user-reported message with its internet headers, derives a verdict from the Authentication-Results header and the subject and preview, then moves a suspicious message to Junk and tags it, or tags a clean one as reviewed. It logs an alert either way and replies to the reporter.
- Mailbox rule forensics: after an account compromise, lists a mailbox's inbox rules, removes every rule that forwards mail to another address, logs an alert with the removed rule names and notifies the owner. A mailbox with no forwarding rules logs a clean result.
- Suspicious sender sweep and Sender sweep (one mailbox): move every Inbox message from one sender to Junk Email, in several mailboxes (one child run per mailbox) or in one, and report the moved count.
- Notify owner (helper): sends one plain notification through Graph. Other playbooks can call it.
- Purge Reported Phishing Mail, with its child Search (one mailbox): searches every mailbox the reporter lists for the exact reported subject, asks an approver to confirm, bulk-deletes the matches, and comments on the alert with the outcome. A search error in one mailbox does not stop the others.
Needs the Microsoft Graph Mail v2 connector (microsoft-graph-mail-v2, 3.0.2 or later), which is the connector item shipped with this collection. Also needs the microsoft-graph-api-security-v2 connector (4.0.0 or later), which the purge playbook calls for its alert lookup and alert comment. It is not in this set and is not yet published on soarshelf or the Content Hub, so get it from its own source. Configure both connectors with the same Entra ID app registration.
Live-tested on FortiSOAR 8.0.1 against a Microsoft 365 lab tenant. Every branch of the seven playbooks was reached in a live run, except the one listed below.
Not live-tested:
- Purge Reported Phishing Mail, the "Some deletions failed or the call failed" route when the whole bulk delete call is refused (for example throttled or unauthorised): the lab tenant does not produce a whole-call refusal, so this leg is covered offline only. The route where some deletions fail (one message already gone) ran live.