Suspicious wevtutil.exe Usage for Event Log Clearing
Attackers frequently abuse the built-in 'wevtutil.exe' utility to clear Windows event logs, a common defense evasion technique used to disrupt forensic investigations and hide post-compromise activity.
The Windows utility 'wevtutil.exe' is a legitimate tool designed for managing event logs. However, it is frequently abused by threat actors during the post-compromise phase to clear critical logs - such as Security, System, and PowerShell operational logs. By deleting these event records, adversaries can successfully remove evidence of their persistence, lateral movement, and command-and-control activities. This behavior has been documented across various campaigns, including ransomware operations such as Rhysida, Clop, and activity attributed to groups like Scattered Spider. For security teams, detecting the unauthorized execution of this binary with clear-log parameters is vital, as it serves as a high-fidelity indicator that an adversary is attempting to sanitize the environment before discovery or final objective completion.
Attack Chain
- Attacker gains initial access to the Windows host through phishing, exploitation of a service, or credential abuse.
- The attacker escalates privileges to local administrator or SYSTEM level to gain permission to modify logs.
- The attacker identifies high-value event logs to clear, specifically targeting the Security, System, and PowerShell logs.
- The attacker invokes 'wevtutil.exe' via the command line or a script, passing the 'cl' (clear-log) argument and the specific log name.
- The utility processes the request, deleting all entries within the specified event log file.
- The attacker continues further malicious activities or deploys final payloads, confident that their earlier movements are no longer recorded.
Impact
Successful clearing of event logs severely hampers incident response and forensic analysis. It prevents responders from establishing a clear timeline, identifying the initial entry point, or determining the scope of lateral movement. In ransomware scenarios, this technique is a standard precursor to the final encryption phase, ensuring that security teams cannot rely on system audit logs to detect the malicious activity before the damage occurs.
Recommendation
Detection engineering teams should prioritize identifying the execution of 'wevtutil.exe' when invoked with arguments specifically designed to clear log files.
- Deploy the Sigma rule provided below to your SIEM/EDR platform to alert on suspicious command-line patterns.
- Establish a baseline for legitimate administrative usage of 'wevtutil.exe' by internal IT teams to reduce false positives during alert tuning.
- Enable Sysmon or EDR process creation logging with full command-line visibility to ensure the required telemetry is captured.
Immediate actions
Deploy Sigma detection rule to monitor for wevtutil.exe log clearing commands.
Threat Hunt
Search historical logs for wevtutil.exe execution strings containing 'cl' or 'clear-log'.
Data: Process command line telemetry
Detection coverage 1
Detect Suspicious wevtutil.exe Usage
mediumDetects the use of wevtutil.exe to clear Windows event logs, a technique commonly used to hide malicious activity.
Detection queries are available on the platform. Get full rules →