Failed Event Log Clear Via WMI NTEventLogFile ClearEventLog

Original Source: [Sigma source]
Title: Failed Event Log Clear Via WMI NTEventLogFile ClearEventLog
Status: test
Description:Detects failed attempts to clear Windows event logs via the WMI NTEventLogFile ClearEventLog method. Event 5858 in the WMI-Activity operational log is an error event, meaning it is only generated when the WMI operation encounters an error (e.g. access denied, provider failure). It could be an indication of an attacker attempting to clear event logs via WMI, but failing due to insufficient privileges or other issues. Successful clearing operations will NOT produce this event; for those, correlate with Security event 1102 or System event 104.
References:
  -https://learn.microsoft.com/en-us/windows/win32/cimwin32prov/cleareventlog-method-in-class-win32-nteventlogfile
Author: Swachchhanda Shrawan Poudel (Nextron Systems)
Date: 2026-07-01
modified:None
Tags:
  • -'attack.defense-impairment'
  • -'attack.t1685.005'
Logsource:
  • product: windows
  • service: wmi
Detection:
  selection:
    EventID: '5858'
    Operation|contains|all:
      -'Win32_NTEventlogFile'
      -'cleareventlog'

  condition:selection
Falsepositives:
  -Unknown
Level: medium