How to Flatten AuditData JSON in Microsoft 365 Unified Audit Log CSV Exports
Learn how to unpack nested AuditData JSON inside Microsoft Purview Unified Audit Log CSV exports locally in your browser without PowerShell timeouts or server uploads.
Searchable technical references organized across five Microsoft 365 DFIR pillars—covering Purview AuditData flattening, Exchange BEC rules, Entra Sign-In error codes, AiTM cookie replay, OAuth persistence, and Sentinel KQL.
Learn how to unpack nested AuditData JSON inside Microsoft Purview Unified Audit Log CSV exports locally in your browser without PowerShell timeouts or server uploads.
Export complete, non-truncated Microsoft 365 Unified Audit Logs using Search-UnifiedAuditLog with SessionId pagination and large-tenant slicing.
Understand Microsoft Purview MailItemsAccessed telemetry, Bind vs Sync operations, throttling thresholds, and how to prove whether an attacker read emails.
Reference guide for Microsoft Purview Audit Standard 180-day retention vs Audit Premium 1-year and 10-year retention across Exchange, Entra, and SharePoint.
Detect adversary defense evasion in Microsoft 365 by hunting Set-AdminAuditLogConfig, mailbox AuditBypassAssociation, and missing audit gaps.
Complete cheat sheet mapping Microsoft Purview RecordType integers (1, 2, 4, 6, 8, 9, 14, 15, 25, 50) to workloads for faster DFIR triage.
Decode Exchange Online ClientInfoString tags (Client=OWA, REST, EWS, ActiveSync, MSExchangeRPC) to distinguish normal Outlook users from attacker tooling.
Correlate stolen session cookies and AiTM token replays across Entra Sign-In logs and Microsoft Purview Exchange/SharePoint activity using SessionId.
Avoid critical incident timeline mistakes caused by Purview Portal local timezone exports vs. UTC CreationTime inside AuditData JSON.
Learn why uploading Microsoft 365 Unified Audit Logs and Entra sign-ins to third-party servers violates client confidentiality and how browser-local tools solve it.
Spot BEC attackers hiding invoice replies and phishing evidence using New-InboxRule and Set-InboxRule parameters in Purview Unified Audit Logs.
Understand the forensic difference between UpdateInboxRules and New-InboxRule in Exchange Online audit logs and how to uncover hidden MAPI rules.
Why Microsoft 365 threat actors divert replies to RSS Feeds and Conversation History, and how to hunt folder manipulation in Purview logs.
Hunt unauthorized ForwardingSmtpAddress mailbox edits, New-TransportRule redirections, and outbound spam filter overrides in Microsoft 365 logs.
Track unauthorized phishing emails sent from compromised M365 accounts using Send, SendAs, and SendOnBehalf events inside Purview Unified Audit Logs.
Catch BEC reconnaissance in Microsoft 365 by auditing SearchQueryInitiatedExchange and SearchQueryInitiatedSharePoint QueryText terms.
Differentiate SoftDelete vs. HardDelete in Exchange Online audit logs, detect anti-forensic Sent Items purging, and recover deleted attacker messages.
Hunt silent Exchange Online persistence where attackers grant FullAccess mailbox delegation to secondary accounts via Add-MailboxPermission.
Step-by-step Microsoft 365 Business Email Compromise triage playbook covering token revocation, inbox rules, OAuth apps, MFA cleanup, and UAL forensics.
Detect MFA-bypassing legacy protocol sign-ins (IMAP4, POP3, Authenticated SMTP, Exchange ActiveSync) across Entra Sign-In and Purview logs.
Spot Adversary-in-the-Middle (AiTM) reverse-proxy phishing and stolen MFA session cookie replay in Entra ID Sign-In JSON exports and Purview logs.
Decode common Microsoft Entra ID sign-in status.errorCode numbers in DFIR investigations to separate failed password sprays from MFA stalls and CA blocks.
Understand why attackers vanish from standard Entra Interactive Sign-In views and how Non-Interactive token refreshes reveal ongoing cookie replay.
Identify AiTM cookie replay and automated BEC scripts by hunting scripted UserAgent strings inside Entra Sign-In JSON and Purview AuditData.
Catch attacker persistence via My Sign-Ins, Authenticator app additions, and phone/FIDO2 changes in Microsoft Entra Audit and Purview UAL logs.
Recognize stolen PRT and browser cookie replay attacks across deviceDetail, tokenIssuerType, sessionId, and cross-location Entra Sign-In events.
Hunt OAuth Device Code Authentication phishing attacks in Entra Sign-In JSON exports via authenticationProtocol = deviceCode and cross-IP issuance.
Interpret conditionalAccessStatus and appliedConditionalAccessPolicies in Entra ID Sign-In logs to catch policy gaps and bypasses during breaches.
Understand riskLevelDuringSignIn, riskLevelAggregated, and riskEventTypes_v2 in Entra Sign-In JSON exports to prioritize real account takeovers.
Distinguish genuine multi-country BEC/AiTM account takeovers from corporate VPNs, iCloud Private Relay, and mobile carrier hopping in Entra logs.
Detect rogue third-party OAuth app phishing (Mail.Read, Files.Read.All) in Purview and Entra Audit logs and revoke attacker permissions.
Understand how Entra ID pairs Consent to application, Add service principal, and Add OAuth2PermissionGrant events during OAuth abuse.
Catch stealth cloud backdoors where attackers add new client secrets or certificates to existing Entra apps via Add service principal credentials.
Detect unauthorized privilege escalation via Add member to role and Add eligible member to role in Entra ID and Purview Audit Logs.
Investigate suspicious Entra ID PIM role activations, justification text spoofing, and skipped MFA prompts in Entra Audit and Sign-In logs.
Audit and monitor Microsoft 365 emergency break-glass accounts in Entra Sign-In and Audit logs so any credential probe or login triggers instant response.
Audit malicious Azure AD / Entra ID Enterprise Applications, Graph API permissions, and hidden tenant backdoors during M365 breach containment.
Spot adversaries abusing Microsoft Graph PowerShell (14d82eec), Azure CLI, and app-only Graph tokens in Entra Sign-In and Purview logs.
Detect rogue ADFS trust modifications, federation domain updates, and anomalous SAML token issuers in Microsoft 365 and Entra logs.
Investigate unauthorized Reset user password and Self-Service Password Reset (SSPR) events in Microsoft Entra Audit and Purview logs.
Spot insider data theft and automated SharePoint/OneDrive downloads using FileDownloaded, SourceFileName, and burst thresholds in Purview logs.
Hunt unauthorized "Anyone with the link" SharePoint/OneDrive shares via AnonymousLinkCreated, CompanyLinkCreated, and SharingSet events.
Investigate external Microsoft Teams social engineering (Black Basta / IT helpdesk impersonation) in Purview UAL RecordType 25 logs.
Interpret FileSyncDownloadedFull vs FileSyncUploadedFull in Purview UAL to track unmanaged endpoint OneDrive syncing during insider or breach cases.
Catch adversaries or malicious insiders using New-ComplianceSearch and eDiscovery exports to dump tenant mailboxes and Teams chats.
Production-ready KQL hunting queries for SigninLogs, AuditLogs, and OfficeActivity covering AiTM, BEC inbox rules, OAuth grants, and exfiltration.
Reference matrix mapping M365 Purview UAL operations and Entra ID events to MITRE ATT&CK Cloud Matrix techniques (T1078, T1114, T1098, T1528, T1550).
Work around the Microsoft Purview Audit Search 50,000-row export ceiling using PowerShell time-chunking and Microsoft Graph auditLogQuery.
Extract deduplicated attacker IPs, User-Agents, AppIDs, and external forwarding targets from Microsoft 365 logs without leaking corporate IPs.
Actionable post-breach M365 & Entra ID hardening checklist: phishing-resistant FIDO2 MFA, Device Code block, OAuth consent lockdown, and audit verification.