Purview UAL & Parsing · T1562.008

How to Check If Unified Audit Logging Was Disabled or Tampered With in M365

Direct Answer (Key Forensic Takeaway)

Adversaries holding compromised Exchange or Global Admin access blind defenders by running Set-AdminAuditLogConfig -UnifiedAuditLogIngestionEnabled $false or exempting specific mailboxes with Set-MailboxAuditBypassAssociation -AuditBypassEnabled $true. AuditVane rule AV-012 immediately flags Set-AdminAuditLogConfig, Remove-MailboxSearch, and HardDelete tampering.

Detection Objective & Threat Scope

Cloud defense evasion (MITRE ATT&CK T1562.008) is rare compared to everyday BEC phishing, yet when it strikes, it signals a sophisticated intruder or insider deliberately trying to erase forensic footprints before pivoting across mailboxes or eDiscovery.

Even if an attacker pauses tenant-wide auditing, Exchange Online logs the cmdlet that disabled ingestion right before the telemetry stream shuts off—and parallel independent channels like Entra ID Sign-In logs and Exchange Message Trace continue recording untouched.

Beyond toggling tenant-wide ingestion via Set-AdminAuditLogConfig, stealthier attackers leave global logging turned on so SIEM health monitors look normal while quietly disabling auditing on a single target executive mailbox using Set-Mailbox -AuditEnabled $false or Set-MailboxAuditBypassAssociation -AuditBypassEnabled $true.

Another tampering technique involves purging Exchange search history (Remove-MailboxSearch) or lowering mailbox AuditLogAgeLimit to zero. Verifying both tenant-wide config AND per-mailbox audit flags ensures no silent blind spot survives containment.

1. RAW TELEMETRY Purview UAL & Parsing T1562.008 2. CLIENT-SIDE PARSE AuditVane Engine check if unified audit logging dis 0 Bytes Uploaded 3. SOC OUTCOME Scoped Containment IOCs · CSV · KQL
Local browser DFIR workflow for check if unified audit logging disabled (T1562.008)
AdSense-Ready In-Article Placement

Forensic Telemetry Fields & High-Signal Indicators

Telemetry Field / Pattern Meaning in M365 / Entra High-Signal Threat Indicator
Set-AdminAuditLogConfigModified tenant-wide UAL ingestion settingUnifiedAuditLogIngestionEnabled = False
Set-MailboxAuditBypassAssociationExempted specific user/admin from mailbox auditingAuditBypassEnabled = True
Set-Mailbox (AuditEnabled)Disabled auditing on one specific mailboxAuditEnabled = False or AuditLogAgeLimit = 0
Remove-MailboxSearchDeleted existing compliance/eDiscovery searchHiding investigation or prior exports
Set-OrganizationConfigTenant-level Exchange setting modifiedInspect Parameters for audit overrides
HardDelete burstsPurged emails past Deleted ItemsAnti-forensic cleanup of Sent Items lures

Audit Tenant Ingestion State, Mailbox Bypasses & Tampering in PowerShell

Connect-ExchangeOnline
Get-AdminAuditLogConfig | Select-Object UnifiedAuditLogIngestionEnabled
Get-MailboxAuditBypassAssociation -ResultSize Unlimited | Where-Object { $_.AuditBypassEnabled -eq $true } | Select-Object Identity, AuditBypassEnabled
Get-Mailbox -ResultSize Unlimited | Where-Object { $_.AuditEnabled -eq $false -or $_.AuditLogAgeLimit -lt 90 } | Select-Object UserPrincipalName, AuditEnabled, AuditLogAgeLimit

Sample Tampering Sweep Output

UnifiedAuditLogIngestionEnabled : True

Identity               AuditBypassEnabled
--------               ------------------
svc-legacylinker       True  <-- VERIFY IMMEDIATELY

What Remains Logged Even If Purview UAL Is Disabled

Telemetry PipelineAffected by Set-AdminAuditLogConfig?Forensic Fallback Value
Purview Exchange/SharePoint UALYes — halts after propagation delay (~60m)Blind window until re-enabled
Entra ID Sign-In LogsNo — completely independent identity planePreserves all logins, IPs, UserAgents, MFA/CA verdicts
Entra Directory Audit Logs (Blade)No — Entra portal logs survive 30 daysPreserves role grants, OAuth consents, password resets
Exchange Message TraceNo — transport pipeline logs independentlyProves external senders, subjects, and recipients (90d)

Set-AdminAuditLogConfig Tampering Event in Purview UAL

{
  "CreationTime": "2026-12-01T16:03:22Z",
  "Operation": "Set-AdminAuditLogConfig",
  "RecordType": 1,
  "Workload": "Exchange",
  "UserId": "compromised.admin@contoso-demo.invalid",
  "ClientIP": "185.220.101.45",
  "Parameters": [
    { "Name": "UnifiedAuditLogIngestionEnabled", "Value": "False" }
  ]
}

Notice the Parameters array explicitly captures UnifiedAuditLogIngestionEnabled = False along with the initiating administrator UserId and ClientIP.

AuditVane rule AV-012 flags Set-AdminAuditLogConfig automatically regardless of parameter order so any tenant audit toggle rises straight to the top of your triage list.

Real-World Incident Walkthrough

During an insider-threat investigation involving a departing IT administrator, Purview UAL exports show normal activity up until Tuesday at 16:04 UTC—followed by complete silence on the CEO’s mailbox despite confirmed emails being sent.

Checking AuditVane AV-012 findings reveals Set-MailboxAuditBypassAssociation executed by the IT admin at 16:03 UTC targeting the CEO’s identity, while Entra Sign-In logs and Exchange Message Trace remained fully intact and proved unauthorized reads and forwards.

Step-by-Step Triage, Containment & Verification

  1. Run Get-AdminAuditLogConfig immediately to confirm UnifiedAuditLogIngestionEnabled is True.
  2. Sweep all mailboxes for AuditEnabled=$false or AuditBypassEnabled=$true via PowerShell.
  3. Load available Purview UAL CSVs into AuditVane and check AV-012 findings for Set-AdminAuditLogConfig, Remove-MailboxSearch, and HardDelete.
  4. If a blind gap exists in UAL, immediately export Entra ID Sign-In JSON, Entra Directory Audit JSON, and Exchange Extended Message Trace before they expire.
  5. Re-enable ingestion (`Set-AdminAuditLogConfig -UnifiedAuditLogIngestionEnabled $true`) and strip unauthorized AuditBypass associations.
  6. Investigate the admin account that triggered the change for AiTM compromise or insider misconduct.

How to Verify Containment Completed Cleanly

  • UnifiedAuditLogIngestionEnabled confirmed True across the tenant.
  • Zero unauthorized accounts listed under Get-MailboxAuditBypassAssociation.
  • Parallel Entra Sign-In and Message Trace logs collected for any identified UAL gap.

Analyst Blind Spots, Licensing Quirks & False Positives

Legacy Exchange migration tools or third-party backup appliances sometimes legitimately enable AuditBypassEnabled on a single dedicated service account. Never whitelist those accounts blindly—verify whether the bypassed account is a human user or shared mailbox.

Remember that disabling Unified Audit Logging takes up to ~60 minutes to propagate across Exchange Online backend shards, and re-enabling it never backfills missed events.

Frequently Asked Questions

Does disabling Unified Audit Logging stop Entra ID Sign-In logs?

No. Entra ID Sign-In and Entra Directory Audit logs run on an independent identity plane unaffected by Exchange AdminAuditLogConfig.

Can attackers hide one mailbox without turning off tenant auditing?

Yes, via Set-Mailbox -AuditEnabled $false or Set-MailboxAuditBypassAssociation -AuditBypassEnabled $true.

Does AuditVane alert on audit tampering automatically?

Yes, rule AV-012 flags Set-AdminAuditLogConfig, Remove-MailboxSearch, New-ComplianceSearchAction, and HardDelete events.

Can standard users run Set-AdminAuditLogConfig?

No—only Organization Management or Audit Logs administrators can alter tenant audit settings, making any unexpected AV-012 hit an admin-level incident.

Related Forensics Guides