Sigma rule: Failed Event Log Clear Via WMI NTEventLogFile ClearEventLog

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-67ab3d8da185, updated 2026-07-01T00:00:00.000Z.

Rule

Title
Failed Event Log Clear Via WMI NTEventLogFile ClearEventLog
Status
test
Level
medium
Author
Swachchhanda Shrawan Poudel (Nextron Systems)
Date
2026-07-01
File
rules/windows/builtin/wmi/win_wmi_activity_nteventlogfile_cleareventlog.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

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.

Log source

product
windows
service
wmi

Detection

selection:
    EventID: 5858
    Operation|contains|all:
        - 'Win32_NTEventlogFile'
        - 'cleareventlog'
condition: selection

False positives (as the rule lists them)

  • Unknown

Tags

  • attack.defense-impairment
  • attack.t1685.005

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/builtin/wmi/win_wmi_activity_nteventlogfile_cleareventlog.yml

Sources and licences

  • SigmaHQ

    "Failed Event Log Clear Via WMI NTEventLogFile ClearEventLog" by Swachchhanda Shrawan Poudel (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/builtin/wmi/win_wmi_activity_nteventlogfile_cleareventlog.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Failed Event Log Clear Via WMI NTEventLogFile ClearEventLog",
entity page, dataset version ref-67ab3d8da185, updated 2026-07-01T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/d4f1a2b3-7c8e-4d5f-b6a9-1e0c2d3f4e5b (accessed 2026-11-03).
Underlying source: SigmaHQ rule d4f1a2b3-7c8e-4d5f-b6a9-1e0c2d3f4e5b, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.