EVENT 1102
EVENT 104
WEVTUTIL
CLEAR-EVENTLOG
DetectionBlue TeamSOCOctober 12, 2026•9 min read

Detecting Event Log Clearing: Event 1102, 104 and wevtutil

Clearing the log is rarely subtle, and that is the point of detecting it. The clear event itself survives, and if you forward logs, so does everything before it.

Scroll

Wiping Windows event logs is one of the oldest anti-forensic moves, and it is still routine in ransomware intrusions. Windows records the act itself: Security Event 1102 and System Event 104 are written after a clear. The detection problem is less about spotting the clear and more about making sure the evidence already left the host.

Signals at a Glance

SignalWhereATT&CK
Security log cleared (Event 1102)Security log, forwardedT1070.001
Other log cleared (Event 104, Microsoft-Windows-Eventlog)System logT1070.001
wevtutil cl or clear-log command lineSysmon 1, 4688T1070.001
Clear-EventLog, Remove-EventLog or Get-WinEvent piped to clearPowerShell 4104T1070.001
Event log service stopped or log file deleted from diskService Control Manager 7036, Sysmon 23T1070

The Clear Events

Event 1102 is written to the Security log with the account that performed the clear; Event 104 is its System-log counterpart for other channels such as PowerShell Operational or Sysmon. Both are cheap, near-zero-false-positive alerts. In KQL against forwarded Security events:

// Microsoft Sentinel (KQL) - any log clear, with who and from where
let cleared = SecurityEvent
| where EventID == 1102
| project TimeGenerated, Computer, Account = SubjectUserName, Channel = "Security";
let others = Event
| where EventID == 104 and Source == "Microsoft-Windows-Eventlog"
| extend Channel = tostring(parse_xml(EventData).DataItem.UserData.LogFileCleared.Channel)
| project TimeGenerated, Computer, Account = UserName, Channel;
cleared
| union others
| order by TimeGenerated desc
// tune/validate: suppress known golden-image builds and lab hosts by name.

The command-line route is just as telling, and it fires even when the attacker later removes the event. Sigma for the common utilities:

title: Windows Event Log Cleared via Command Line
logsource:
  product: windows
  category: process_creation
detection:
  wevtutil:
    Image|endswith: '\wevtutil.exe'
    CommandLine|contains:
      - ' cl '
      - 'clear-log'
  powershell:
    CommandLine|contains:
      - 'Clear-EventLog'
      - 'Remove-EventLog'
      - 'ClearLog('
  condition: wevtutil or powershell
level: high
# tune/validate: allow patching scripts that rotate custom channels.

Preserving the Evidence

A detection that fires after the logs are gone is a notification, not a defence. The control that matters is moving events off the host quickly, so a clear removes only a few seconds of local data.

Vetted sources

Use the SigmaHQ event-log-clearing rules, Splunk ESCU content for Event 1102 and wevtutil, Elastic’s indicator-removal detections, the MITRE CAR analytics for log clearing and the Atomic Red Team T1070.001 tests. Baseline your own environment — imaging and lab workflows clear logs on purpose.

Build Detections That Fire

Mjolnir Security helps blue teams turn threat intelligence into high-fidelity detections across endpoint, network, identity and cloud telemetry.

Detection EngineeringManaged Detection & ResponseThreat HuntingIncident ResponsePurple Teaming
  • Detection Engineering We build and tune detections mapped to ATT&CK from your own telemetry.
  • Threat Hunting as a Service Hypothesis-driven hunts for the behaviours on this page.
  • 24/7 Incident Response Containment when a detection fires. Call +1 833 403 5875.
Written by: Mjolnir Threat Research (MTAC)  |  Published: October 12, 2026  |  Last reviewed: October 12, 2026