PowerShell Script Block Logging: Suspicious Windows Event Log Clearing Cmdlets

Flags PowerShell script blocks that call event log clearing cmdlets or ClearLog to impair Windows log visibility.

FreeReviewedSigma · Medium · v2
Product
windows
Category
ps_script
Author
Nasreddine Bencherchali (Nextron Systems), Swachchhanda Shrawan Poudel (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2022-09-12
Updated
2026-07-31

ATT&CK techniques

  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Discovery

  10. Lateral Movement

  11. Collection

  12. C2

  13. Exfiltration

  14. Impact

What it detects

This rule flags PowerShell script activity that contains event log clearing cmdlets and related .NET clear-log usage patterns, including Clear-EventLog, Clear-WinEvent, Remove-EventLog, and Limit-EventLog. Attackers may clear or limit logs to hinder incident response and forensic investigation after malicious activity. It relies on Script Block Logging telemetry and matches specific text fragments within the recorded script block content.

Related detections9 linkedT1685.005 — drag to rearrange
Suspicious Windows Event Log Clearing via wevtutil (via process_creation)
Malicious USN Change Journal Deletion via Fsutil for Anti-Forensics
Suspicious Windows Event Log Clearing via wevtutil
Suspicious Windows Event Log Cleared via wevtutil during Ransomware Staging (via process_creation)
Suspicious Deletion of Terminal Server Client History via reg by UNC1549
Suspicious Windows Event Log Clearing via process_creation
Malicious Windows Event Log Clearing via wevtutil
Suspicious Event Log Clearing via Renamed Log Utility
Suspicious Event Log Clearing via PowerShell Invoke-Expression
PowerShell Script Block Logging: Suspicious Windows Event Log Clearing Cmdlets
Pivot detection · T1685.005 · 9 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.