Investigate Microsoft 365 activities
Using Purview Audit, eDiscovery content search and Microsoft Graph activity logs to investigate threats.
- 12 min
- 3 concepts
- Try it yourself
- 3-question check
Learn
When an account is compromised, you need to know what the attacker did inside Microsoft 365: which mail they read, which files they took, what rules they created, and which APIs they called.
- 1
Investigate threats by using Microsoft Purview Audit
Search the unified audit log by user, activity and date: new inbox rules (
New-InboxRule), mailbox permission changes, file downloads and sharing, admin role changes. Audit (Premium) adds MailItemsAccessed (which emails were opened, by sync or bind) and longer retention, essential for scoping a mailbox compromise. Also searchable withSearch-UnifiedAuditLogor the Audit Search Graph API.Remember: Which emails did the attacker read? MailItemsAccessed.
- 2
Investigate threats by using Content search in Microsoft Purview eDiscovery
Content search (in eDiscovery) finds email and documents across mailboxes, SharePoint, OneDrive and Teams by keywords, sender, dates and conditions, for example every copy of a phishing email. Export results or, for email, use purge actions (
New-ComplianceSearchAction -Purge) to remove them.Remember: Find every copy of the phishing email: content search.
- 3
Investigate threats by using Microsoft Graph activity logs
Microsoft Graph activity logs record HTTP requests made to Graph by apps and users in your tenant, including the app ID, IP, user agent, request URI and response status. Send them to Log Analytics (
MicrosoftGraphActivityLogstable) via Entra diagnostic settings to spot malicious apps or attackers using stolen tokens to read mail or enumerate the directory.Remember: Suspicious app calling Graph? MicrosoftGraphActivityLogs.
Which tool answers which question?
- What did the user or attacker do?
- Inbox rules, downloads, sharing, MailItemsAccessed
- Where is this content?
- Every copy of a malicious email or leaked file
- Which API calls were made?
- App IDs, IPs, endpoints called
Try it
Which source helps?
This interactive part needs JavaScript.
In the portal
- AuditMicrosoft Purview portal: Solutions > Audit > Search
- Content searchMicrosoft Purview portal: Solutions > eDiscovery > Content search
- Graph activity logsEntra admin center: Entra ID > Monitoring & health > Diagnostic settings
Key terms
Click a card to see the definition.
Check your understanding
3 questions. Score 80% or more and these skills are marked as confident in your SC-200 study plan.
Which audit event shows emails an attacker opened?
It records mailbox item access.
How do you delete all copies of a phishing email found by content search?
New-ComplianceSearchAction -Purge.
How do Graph activity logs get to Log Analytics?
They're an Entra log category.
Sources
- Microsoft Learn: Search the audit log
- Microsoft Learn: Use MailItemsAccessed to investigate compromised accounts
- Microsoft Learn: Search for and delete email messages
- Microsoft Learn: Microsoft Graph activity logs
Facts in this lesson are from Microsoft Learn. This site isn't affiliated with Microsoft.