T1070.001

Clear Windows Event Logs

Adversaries clear Windows Event Logs to remove evidence of intrusion activity. Primary methods include the wevtutil command-line utility (wevtutil cl system/security/application), the PowerShell Remove-EventLog cmdlet, the Windows Event Viewer GUI, and direct deletion of .evtx log files from C:\Windows\System32\winevt\logs\. When a log is cleared, Windows generates Event ID 1102 (Security log cleared) in the Security log and Event ID 104 (System log cleared) in the System log — but these disappear if the generating log is also cleared. APT28, APT38, APT41, Volt Typhoon, LockBit 2.0/3.0, RansomHub, NotPetya, Olympic Destroyer, BlackCat, and many others routinely clear event logs as post-compromise cleanup.

Microsoft Sentinel / Defender
kusto
SecurityEvent
| where TimeGenerated > ago(24h)
| where EventID == 1102
| project TimeGenerated, Computer, Account, Activity, EventData
| union (
    Event
    | where TimeGenerated > ago(24h)
    | where Source == "Microsoft-Windows-Eventlog"
    | where EventID == 104
    | project TimeGenerated, Computer, UserName, RenderedDescription
)
| sort by TimeGenerated desc
| union (
    DeviceProcessEvents
    | where Timestamp > ago(24h)
    | where FileName =~ "wevtutil.exe"
    | where ProcessCommandLine has_any ("cl ", "clear-log ", "clear ")
    | project Timestamp, DeviceName, AccountName, FileName, ProcessCommandLine,
             InitiatingProcessFileName, InitiatingProcessCommandLine
    | extend Source = "WevtutilClear"
)
| sort by coalesce(TimeGenerated, Timestamp) desc
high severity high confidence

Data Sources

Windows Event Log: Security (EventID 1102) Windows Event Log: System (EventID 104) Process: Process Creation Microsoft Defender for Endpoint

Required Tables

SecurityEvent Event DeviceProcessEvents

False Positives

  • Authorized IT administrators clearing logs during scheduled maintenance windows
  • Log management scripts that periodically archive and clear logs as part of size management
  • Forensic investigators clearing logs on test or remediated systems after incident response
  • Some enterprise backup or audit solutions that clear logs after export to SIEM

Unlock Pro Content

Get the full detection package for T1070.001 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections