Skip to content
Threat Feed
high advisory

Detection of Windows Event Log Clearing

Detection of Windows Security Event ID 1102 or System Event ID 104 indicates an attempt to disrupt forensic logging and cover tracks after system compromise.

Clearing Windows event logs is a common technique used by attackers to hide malicious activity, such as persistence establishment, credential theft, or lateral movement, by removing forensic footprints. This activity is identified by the generation of Windows Security Event ID 1102 (audit log was cleared) or System Event ID 104 (log file was cleared). Defenders should treat this as a high-fidelity signal of potential post-compromise activity, as seen in various ransomware campaigns such as Clop and ShrinkLocker. While system administrators may occasionally clear logs for maintenance purposes, unauthorized clearing is a critical red flag that warrants immediate investigation and correlation with other suspicious events on the endpoint.

Impact

Successful clearing of Windows event logs hinders incident response and forensic investigations by destroying historical audit trails. This action is frequently observed during ransomware attacks and unauthorized access attempts to prevent detection and prolong attacker dwell time. Unauthorized log clearing often precedes final-stage payloads like data exfiltration or system encryption, making prompt detection and alerting essential for early intervention.

Recommendation

  • Deploy the provided Sigma rule to detect the specific Event IDs associated with log clearing.
  • Establish a baseline of authorized administrative activity to reduce false positives generated by system maintenance.
  • Integrate endpoint event logs with a SIEM or security analytics platform to facilitate automated alerting and historical data retention, ensuring logs are preserved even if local files are cleared.
  • Correlate instances of log clearing with other high-severity alerts such as service manipulation, suspicious process execution, or unauthorized network connections.

Immediate actions

Deploy Sigma rule to monitor for Event ID 1102 and 104.

Detection Engineering 24h

Threat Hunt

Search for historical instances of Event IDs 1102 or 104 in the past 30 days.

T1070.001 high high confidence hunt now

Data: Windows Security and System event logs

Mitigations

Enable centralized log forwarding to a secure, remote SIEM.

medium_term IT Operations

Prevention of evidence destruction.

Detection coverage 1

Detect Windows Event Log Clearing

high

Detects the clearing of Windows Security or System event logs by monitoring for Event IDs 1102 and 104.

sigma tactics: defense_evasion techniques: T1070.001 sources: process_creation, windows

Detection queries are available on the platform. Get full rules →