Operator On The Wire
Join
← Back to Knowledge Base
BLUE TEAM / THREAT HUNT / WINDOWS / EVASION

Log Clearing

This note documents detection patterns related to Log Clearing within Windows environments.


Direct Indicators

LogEvent IDMeaningForensic ValueNotes
Security1102Audit log clearedCriticalHighest-value native indicator that Security log was cleared.
System104Log file clearedCriticalDetects clearing of System / Application logs.
Security4688Process creationCriticalDetects wevtutil, PowerShell, or custom clearing tools.
Sysmon1Process creationCriticalBest execution source for log clearing commands and lineage.
PowerShell4104Script block loggingCriticalCaptures Clear-EventLog, Remove-EventLog, or wevtutil wrappers.
Sysmon11File createMediumTemporary export files before deletion.
Sysmon23File deleteHighLog file deletion attempts or temp cleanup.

Indirect Indicators

IndicatorWhat To Look ForForensic ValueNotes
wevtutil cl usageClear specific log channelCriticalCommon attacker method.
Security log cleared after attack chainCover-up timingCriticalStrong intent signal.
PowerShell clears logsScripted anti-forensicsCriticalCommon in automation.
Multiple logs cleared rapidlyBroad anti-forensicsCriticalAggressive cleanup pattern.
Event gap appearsMissing timeline continuityHighStrong forensic clue.
Log export before clearSelective removal workflowHighIndicates operator discipline.

Common Tools

ToolUsage
wevtutil.exeNative log clearing
PowerShellClear-EventLog / Remove-EventLog
cmd.exeWrapper for wevtutil
custom scriptsBulk channel clearing
eventvwr.mscManual GUI clearing

Relevant Artifacts

  • Security Event ID 1102
  • System Event ID 104
  • Security Event ID 4688
  • Sysmon Event IDs 1, 11, 23
  • PowerShell 4104
  • Prefetch: WEVTUTIL.EXE, POWERSHELL.EXE
  • Amcache / ShimCache
  • EDR command lineage
  • Surviving forwarded logs
  • SIEM retention copy

MITRE ATT&CK References

  • T1070.001 Clear Windows Event Logs
  • T1070 Indicator Removal on Host

Decision Tree

  1. Which log cleared?

    • Security
    • System
    • Application
    • Custom channel
  2. Which process executed clear?

    • wevtutil
    • PowerShell
    • GUI
  3. Timing suspicious?

    • After execution
    • After credential theft
    • Before disconnect
  4. Surviving telemetry?

    • Sysmon
    • EDR
    • Forwarded logs
  5. Expand:

    • Adjacent anti-forensics
    • File deletion
    • Registry cleanup
  6. Scope:

    • Single host
    • Multi-host cleanup
    • Automated script

Example Detection Templates

KQL

SecurityEvent
| where EventID == 1102
| project TimeGenerated, Computer, Account
Sysmon
| where EventID == 1
| where CommandLine has_any ("wevtutil cl","Clear-EventLog","Remove-EventLog")
| project TimeGenerated, Computer, User, CommandLine

EQL

process where process.command_line like "*wevtutil cl*" or process.command_line like "*Clear-EventLog*"
sequence by host.name with maxspan=5m
  [ process where process.name in ("wevtutil.exe","powershell.exe") ]
  [ any where event.code in ("1102","104") ]

Sigma

title: Windows Log Clearing Detection
id: 8a2c5f10-log-clearing
status: experimental
description: Detects Windows event log clearing activity
references:
  - https://attack.mitre.org/
author: Vergil
date: 2026-03-07
logsource:
  product: windows
detection:
  selection:
    EventID:
      - 1102
      - 104
  condition: selection
fields:
  - EventID
  - Account
falsepositives:
  - Administrative maintenance
level: high
tags:
  - attack.defense_evasion
  - attack.t1070.001

Mitigation & Hardening

Control AreaMitigationEffectivenessNotes
Forward logs centrallyPreserve remote copyCriticalDefeats local clear
Alert on 1102 / 104Immediate detectionCriticalHigh-confidence signal
Restrict wevtutil useLimit admin accessHighReduce abuse
PowerShell loggingCapture scripted clearsHighStrong visibility
Timeline gap reviewHunt abrupt silenceHighStrong forensic clue