Sensitive Audit Policy Sub-Category Disabled
Identifies attempts to disable auditing for some security sensitive audit policy sub-categories. This is often done by attackers in an attempt to evade detection and forensics on a system.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2025/01/14"
3integration = ["windows", "system"]
4maturity = "production"
5updated_date = "2025/01/22"
6min_stack_version = "8.14.0"
7min_stack_comments = "Breaking change at 8.14.0 for the Windows Integration."
8
9[rule]
10author = ["Elastic"]
11description = """
12Identifies attempts to disable auditing for some security sensitive audit policy sub-categories. This is often done by
13attackers in an attempt to evade detection and forensics on a system.
14"""
15from = "now-9m"
16index = [
17 "winlogbeat-*",
18 "logs-windows.forwarded*",
19 "logs-system.security-*"
20]
21language = "kuery"
22license = "Elastic License v2"
23name = "Sensitive Audit Policy Sub-Category Disabled"
24note = """## Triage and analysis
25
26### Investigating Sensitive Audit Policy Sub-Category Disabled
27
28Windows event logs are a fundamental data source for security monitoring, forensics, and incident response. Adversaries can tamper, clear, and delete this data to break SIEM detections, cover their tracks, and slow down incident response.
29
30This rule looks for attempts to disable security-sensitive audit policies.
31
32#### Possible investigation steps
33
34- Investigate the process execution chain (parent process tree) for unknown processes. Examine their executable files for prevalence, whether they are located in expected locations, and if they are signed with valid digital signatures.
35- Identify the user account that performed the action and whether it should perform this kind of action.
36- Contact the account owner and confirm whether they are aware of this activity.
37- Investigate other alerts associated with the user/host during the past 48 hours.
38 - Verify if any other anti-forensics behaviors were observed.
39- Investigate the event logs prior to the action for suspicious behaviors that an attacker may be trying to cover up.
40
41### False positive analysis
42
43- This activity is unlikely to happen legitimately. Benign true positives (B-TPs) can be added as exceptions if necessary.
44
45### Response and remediation
46
47- Initiate the incident response process based on the outcome of the triage.
48- Isolate the involved host to prevent further post-compromise behavior.
49- Re-enable affected logging components, services, and security monitoring.
50- Investigate credential exposure on systems compromised or used by the attacker to ensure all compromised accounts are identified. Reset passwords for these accounts and other potentially compromised credentials, such as email, business systems, and web services.
51- Run a full antimalware scan. This may reveal additional artifacts left in the system, persistence mechanisms, and malware components.
52- Determine the initial vector abused by the attacker and take action to prevent reinfection through the same vector.
53- Using the incident response data, update logging and audit policies to improve the mean time to detect (MTTD) and the mean time to respond (MTTR).
54"""
55references = [
56 "https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-10/security/threat-protection/auditing/event-4719",
57 "https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-gpac/77878370-0712-47cd-997d-b07053429f6d",
58]
59risk_score = 47
60rule_id = "0ef5d3eb-67ef-43ab-93b7-305cfa5a21f6"
61setup = """## Setup
62
63The 'Audit Audit Policy Change' logging policy must be configured for (Success, Failure).
64Steps to implement the logging policy with Advanced Audit Configuration:
Computer Configuration > Policies > Windows Settings > Security Settings > Advanced Audit Policies Configuration > Audit Policies > Policy Change > Audit Audit Policy Change (Success,Failure)
1"""
2severity = "medium"
3tags = [
4 "Domain: Endpoint",
5 "OS: Windows",
6 "Use Case: Threat Detection",
7 "Tactic: Defense Evasion",
8 "Resources: Investigation Guide",
9 "Data Source: System",
10]
11timestamp_override = "event.ingested"
12type = "query"
13
14query = '''
15event.code : "4719" and host.os.type : "windows" and
16 winlog.event_data.AuditPolicyChangesDescription : "Success removed" and
17 winlog.event_data.SubCategory : (
18 "Logon" or
19 "Audit Policy Change" or
20 "Process Creation" or
21 "Audit Other System Events" or
22 "Audit Security Group Management" or
23 "Audit User Account Management"
24 )
25'''
26
27
28[[rule.threat]]
29framework = "MITRE ATT&CK"
30[[rule.threat.technique]]
31id = "T1070"
32name = "Indicator Removal"
33reference = "https://attack.mitre.org/techniques/T1070/"
34[[rule.threat.technique.subtechnique]]
35id = "T1070.001"
36name = "Clear Windows Event Logs"
37reference = "https://attack.mitre.org/techniques/T1070/001/"
38
39
40[[rule.threat.technique]]
41id = "T1562"
42name = "Impair Defenses"
43reference = "https://attack.mitre.org/techniques/T1562/"
44[[rule.threat.technique.subtechnique]]
45id = "T1562.002"
46name = "Disable Windows Event Logging"
47reference = "https://attack.mitre.org/techniques/T1562/002/"
48
49[[rule.threat.technique.subtechnique]]
50id = "T1562.006"
51name = "Indicator Blocking"
52reference = "https://attack.mitre.org/techniques/T1562/006/"
53
54
55
56[rule.threat.tactic]
57id = "TA0005"
58name = "Defense Evasion"
59reference = "https://attack.mitre.org/tactics/TA0005/"
Triage and analysis
Investigating Sensitive Audit Policy Sub-Category Disabled
Windows event logs are a fundamental data source for security monitoring, forensics, and incident response. Adversaries can tamper, clear, and delete this data to break SIEM detections, cover their tracks, and slow down incident response.
This rule looks for attempts to disable security-sensitive audit policies.
Possible investigation steps
- Investigate the process execution chain (parent process tree) for unknown processes. Examine their executable files for prevalence, whether they are located in expected locations, and if they are signed with valid digital signatures.
- Identify the user account that performed the action and whether it should perform this kind of action.
- Contact the account owner and confirm whether they are aware of this activity.
- Investigate other alerts associated with the user/host during the past 48 hours.
- Verify if any other anti-forensics behaviors were observed.
- Investigate the event logs prior to the action for suspicious behaviors that an attacker may be trying to cover up.
False positive analysis
- This activity is unlikely to happen legitimately. Benign true positives (B-TPs) can be added as exceptions if necessary.
Response and remediation
- Initiate the incident response process based on the outcome of the triage.
- Isolate the involved host to prevent further post-compromise behavior.
- Re-enable affected logging components, services, and security monitoring.
- Investigate credential exposure on systems compromised or used by the attacker to ensure all compromised accounts are identified. Reset passwords for these accounts and other potentially compromised credentials, such as email, business systems, and web services.
- Run a full antimalware scan. This may reveal additional artifacts left in the system, persistence mechanisms, and malware components.
- Determine the initial vector abused by the attacker and take action to prevent reinfection through the same vector.
- Using the incident response data, update logging and audit policies to improve the mean time to detect (MTTD) and the mean time to respond (MTTR).
References
Related rules
- Kerberos Pre-authentication Disabled for User
- Attempt to Install Kali Linux via WSL
- Control Panel Process with Unusual Arguments
- Execution via Windows Subsystem for Linux
- ImageLoad via Windows Update Auto Update Client