O365 Advanced Audit Disabled
Description
The following analytic detects instances where the O365 advanced audit is disabled for a specific user within the Office 365 tenant. It uses O365 audit logs, focusing on events related to audit license changes in AzureActiveDirectory workloads. This activity is significant because the O365 advanced audit provides critical logging and insights into user and administrator activities. Disabling it can blind security teams to potential malicious actions. If confirmed malicious, attackers could operate within the user's mailbox or account with reduced risk of detection, leading to unauthorized data access, data exfiltration, or account compromise.
- Type: TTP
- Product: Splunk Enterprise, Splunk Enterprise Security, Splunk Cloud
- Datamodel: Change
- Last Updated: 2024-05-17
- Author: Mauricio Velazco, Michael Haag, Splunk
- ID: 49862dd4-9cb2-4c48-a542-8c8a588d9361
Annotations
ATT&CK
Kill Chain Phase
- Exploitation
NIST
- DE.CM
CIS20
- CIS 10
CVE
Search
1
2
3
4
5
6
7
8
9
10
11
12
`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`
Macros
The SPL above uses the following Macros:
o365_advanced_audit_disabled_filter is a empty macro by default. It allows the user to filter out any results (false positives) without editing the SPL.
Required fields
List of fields required to use this analytic.
- _time
- Operation
- ExtendedProperties{}.Name
- ExtendedProperties{}.Value
- user
- object
How To Implement
You must install the Splunk Microsoft Office 365 Add-on and ingest Office 365 management activity events.
Known False Positives
Administrators might temporarily disable the advanced audit for troubleshooting, performance reasons, or other administrative tasks. Filter as needed.
Associated Analytic Story
RBA
Risk Score | Impact | Confidence | Message |
---|---|---|---|
32.0 | 40 | 80 | Advanced auditing for user $object$ was disabled by $user$ |
The Risk Score is calculated by the following formula: Risk Score = (Impact * Confidence/100). Initial Confidence and Impact is set by the analytic author.
Reference
- https://attack.mitre.org/techniques/T1562/008/
- https://www.mandiant.com/sites/default/files/2022-08/remediation-hardening-strategies-for-m365-defend-against-apt29-white-paper.pdf
- https://www.csoonline.com/article/570381/microsoft-365-advanced-audit-what-you-need-to-know.html
Test Dataset
Replay any dataset to Splunk Enterprise by using our replay.py
tool or the UI.
Alternatively you can replay a dataset into a Splunk Attack Range
source | version: 2