Windows Event Log Clearing Detected
Attackers commonly clear or disable Windows event logs using `wevtutil.exe` or the `Clear-EventLog` PowerShell cmdlet in an attempt to evade detection and destroy forensic evidence on compromised systems.
Triage facts
Revision 2- Applicability
- Microsoft Defender XDR, Elastic Defend +2
- Evidence
- Unknown
- Severity
- Medium
- Sources
- 5 public sources
- Freshness
- Revision 2Jan 25, 12:00 UTC
- Detection
- 2 rules
Revision history 1 entry · Revision 2
- Revision 2
Repaired a legacy canonical identity collision
Changed: slug
Attackers frequently target Windows Event Logs to cover their tracks after gaining access to a system. By clearing or disabling these logs, they aim to evade detection, hinder forensic investigations, and prolong their presence on the compromised network. This activity is typically performed using the wevtutil.exe utility or the Clear-EventLog PowerShell cmdlet. Elastic has observed and documented this technique, providing a rule that detects such attempts across various data sources, including endpoint telemetry and security event logs. The rule aims to identify malicious usage of these tools for defense evasion.
Attack Chain
- Initial access is gained through methods such as phishing or exploiting vulnerabilities (not directly covered in the source).
- The attacker executes a privileged shell, such as
cmd.exeorpowershell.exe. - The attacker uses
wevtutil.exewith theclorclear-logargument to clear specific event logs (e.g., Security, Application, System). Alternatively, the/e:falseargument is used to disable specific event logs. - If PowerShell is available, the attacker may use the
Clear-EventLogcmdlet to achieve the same result. - The attacker removes traces of their actions by deleting relevant command history files or modifying timestamps.
- The attacker continues lateral movement or other malicious activities, now with reduced risk of detection due to the cleared logs.
- The attacker exfiltrates data, deploys ransomware, or achieves other objectives.
Impact
Successful clearing of Windows Event Logs can severely impair an organization's ability to detect and respond to security incidents. Without proper logging, administrators lose visibility into malicious activities, making it difficult to identify compromised systems and understand the scope of an attack. This can lead to delayed incident response, increased dwell time for attackers, and greater potential for data loss or system damage. The rule has a risk score of 21, indicating a potentially serious compromise.
Recommendation
- Deploy the provided Sigma rule to detect the execution of
wevtutil.exeorClear-EventLogwith suspicious arguments in your SIEM, and tune for your environment. - Enable Sysmon process-creation logging to capture command-line arguments for
wevtutil.exeandpowershell.exe, activating relevant portions of the Sigma rules. - Investigate any alerts generated by this rule by examining process execution chains and user accounts to identify potentially malicious activity.
- Review and harden event log security policies to prevent unauthorized clearing or disabling of logs.
- Monitor Windows Security Event Logs for Event ID 1102 (Audit log was cleared) as an alternative detection method.
Detection coverage 2
Detect Windows Event Log Clearing via Wevtutil
mediumDetects the clearing of Windows event logs using wevtutil.exe, a common technique for defense evasion.
Detect Windows Event Log Clearing via PowerShell
mediumDetects the clearing of Windows event logs using the Clear-EventLog PowerShell cmdlet.
Detection queries are available on the platform. Get full rules →