Windows Event Logs Cleared
Identifies attempts to clear Windows event log stores. This is often done by attackers in an attempt to evade detection or destroy forensic evidence on a system.
Elastic rule (View on GitHub)
1[metadata]
2creation_date = "2020/11/12"
3integration = ["system", "windows"]
4maturity = "production"
5updated_date = "2024/10/28"
6min_stack_version = "8.14.0"
7min_stack_comments = "Breaking change at 8.14.0 for the Windows Integration."
8
9[rule]
10author = ["Elastic", "Anabella Cristaldi"]
11description = """
12Identifies attempts to clear Windows event log stores. This is often done by attackers in an attempt to evade detection
13or destroy forensic evidence on a system.
14"""
15from = "now-9m"
16index = ["winlogbeat-*", "logs-system.*", "logs-windows.*"]
17language = "kuery"
18license = "Elastic License v2"
19name = "Windows Event Logs Cleared"
20note = """## Triage and analysis
21
22### Investigating Windows Event Logs Cleared
23
24Windows 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.
25
26This rule looks for the occurrence of clear actions on the `security` event log.
27
28#### Possible investigation steps
29
30- 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.
31- Identify the user account that performed the action and whether it should perform this kind of action.
32- Contact the account owner and confirm whether they are aware of this activity.
33- Investigate other alerts associated with the user/host during the past 48 hours.
34 - Verify if any other anti-forensics behaviors were observed.
35- Investigate the event logs prior to the action for suspicious behaviors that an attacker may be trying to cover up.
36
37### False positive analysis
38
39- This activity is unlikely to happen legitimately. Benign true positives (B-TPs) can be added as exceptions if necessary.
40
41### Response and remediation
42
43- Initiate the incident response process based on the outcome of the triage.
44 - This activity is potentially done after the adversary achieves its objectives on the host. Ensure that previous actions, if any, are investigated accordingly with their response playbooks.
45- Isolate the involved host to prevent further post-compromise behavior.
46- 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.
47- Run a full antimalware scan. This may reveal additional artifacts left in the system, persistence mechanisms, and malware components.
48- Determine the initial vector abused by the attacker and take action to prevent reinfection through the same vector.
49- 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).
50"""
51risk_score = 21
52rule_id = "45ac4800-840f-414c-b221-53dd36a5aaf7"
53severity = "low"
54tags = [
55 "Domain: Endpoint",
56 "OS: Windows",
57 "Use Case: Threat Detection",
58 "Tactic: Defense Evasion",
59 "Resources: Investigation Guide",
60 "Data Source: System",
61]
62timestamp_override = "event.ingested"
63type = "query"
64
65query = '''
66event.action:("audit-log-cleared" or "Log clear") and winlog.api:"wineventlog" and
67 not winlog.provider_name:"AD FS Auditing"
68'''
69
70
71[[rule.threat]]
72framework = "MITRE ATT&CK"
73[[rule.threat.technique]]
74id = "T1070"
75name = "Indicator Removal"
76reference = "https://attack.mitre.org/techniques/T1070/"
77[[rule.threat.technique.subtechnique]]
78id = "T1070.001"
79name = "Clear Windows Event Logs"
80reference = "https://attack.mitre.org/techniques/T1070/001/"
81
82
83
84[rule.threat.tactic]
85id = "TA0005"
86name = "Defense Evasion"
87reference = "https://attack.mitre.org/tactics/TA0005/"
Triage and analysis
Investigating Windows Event Logs Cleared
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 the occurrence of clear actions on the security
event log.
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.
- This activity is potentially done after the adversary achieves its objectives on the host. Ensure that previous actions, if any, are investigated accordingly with their response playbooks.
- Isolate the involved host to prevent further post-compromise behavior.
- 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).
Related rules
- Kerberos Pre-authentication Disabled for User
- Potential Credential Access via Windows Utilities
- Potential Evasion via Filter Manager
- Execution from Unusual Directory - Command Line
- Account Configured with Never-Expiring Password