LoFP LoFP / administrators might temporarily disable the advanced audit for troubleshooting, performance reasons, or other administrative tasks. filter as needed.

Techniques

Sample rules

O365 Advanced Audit Disabled

Description

The following analytic identifies instances where the O365 advanced audit is disabled for a specific user within the Office 365 tenant. It leverages O365 audit logs, specifically events related to audit license changes or modifications within the AzureActiveDirectory workloads. The O365 advanced audit provides granular logging and insights into user and administrator activities, making it a crucial tool for security monitoring and incident response. Disabling this audit for a user can blind security teams to potential malicious or unauthorized activities related to that user’s mailbox or account. Attackers may disable these audits to obscure their actions and reduce the chances of detection. If an attacker successfully disables the O365 advanced audit for a user, they can operate within that user’s mailbox or account with reduced risk of detection. This can lead to unauthorized data access, data exfiltration, account compromise, or other malicious activities without leaving a detailed audit trail.

Detection logic

`o365_management_activity` Operation="Change user license."  
| eval property_name = mvindex ('ExtendedProperties{}.Name', 1) 
| search property_name = "extendedAuditEventCategory" 
| eval additionalDetails = mvindex('ExtendedProperties{}.Value',0) 
| eval split_value=split(additionalDetails, "NewValue") 
| eval possible_plan=mvindex(split_value, 1)  
| rex field="possible_plan" "DisabledPlans=\[(?P<DisabledPlans>[^\]]+)\]" 
| search DisabledPlans IN ("*M365_ADVANCED_AUDITING*") 
| stats min(_time) as firstTime max(_time) as lastTime by Operation user object DisabledPlans 
| `security_content_ctime(firstTime)`  
| `security_content_ctime(lastTime)` 
| `o365_advanced_audit_disabled_filter`