Detection of Windows Event Log Clearing via Wevtutil
This brief details the detection of malicious Windows Event Log clearing using the native wevtutil utility, a common technique employed by ransomware groups to obstruct forensic investigations.
Adversaries and ransomware operators frequently utilize the built-in Windows utility wevtutil.exe to clear system and application event logs. By executing the clear-log command or its shorthand cl, threat actors effectively remove evidence of their post-exploitation activity, such as credential dumping, lateral movement, or service manipulation. This behavior is a cornerstone of anti-forensics during the final stages of a ransomware deployment, such as those associated with Rhysida, Clop, and ShrinkLocker campaigns. Monitoring for this activity requires visibility into command-line arguments and process creation telemetry. Defenders must balance this detection against legitimate administrative use of the utility while prioritizing logs originating from non-standard or unusual parent processes.
Attack Chain
- Initial access is established via compromised credentials or software vulnerabilities.
- The actor gains execution privileges to perform administrative-level tasks on the host.
- The actor identifies target log files (e.g., Security, System, or custom application logs).
- The actor invokes
wevtutil.exevia command line with theclorclear-logparameters. - The utility clears the specified event log, resulting in the loss of historical forensic evidence.
- The actor continues subsequent stages, such as data exfiltration or encryption, with a reduced footprint.
Impact
Clearing event logs significantly degrades the ability of incident responders to reconstruct the attack timeline, identify the initial entry point, or determine the extent of data exfiltration. This technique is observed across multiple ransomware sectors, hindering investigations and delaying effective incident containment.
Recommendation
- Enable comprehensive process creation logging (Sysmon Event ID 1 or Security Event ID 4688) to capture full command-line arguments.
- Implement the Sigma rule provided in this brief to alert on suspicious usage of
wevtutil.exe. - Establish a baseline for legitimate administrative log-management scripts to minimize false positives.
- Integrate process GUID and parent process tracking into your SIEM to distinguish between authorized system management and potentially malicious command-line execution.
Immediate actions
Deploy the provided Sigma rule to monitor for log clearing attempts
Threat Hunt
Search for instances of wevtutil.exe being executed with clear-log parameters in historical logs.
Data: Process creation events (Sysmon/4688)
Mitigations
Restrict execution of wevtutil.exe via AppLocker or EDR policies to authorized service accounts only.
T1070.001
Detection coverage 1
Detect Windows Event Log Clearing via Wevtutil
mediumDetects the use of wevtutil.exe with the clear-log or cl parameter to remove event logs, a technique used to hinder forensic analysis.
Detection queries are available on the platform. Get full rules →