Detection rules › Sigma

Event log clear attempt (wmi)

Status
experimental
Severity
high
Log source
category process_creation, product windows
Author
mdecrevoisier
Source
github.com/mdecrevoisier/SIGMA-detection-rules

Detects scenarios where an attacker attempts to clear the event logs.

Known false positives

  • None

MITRE ATT&CK coverage

Telemetry coverage

Rule body

title: Event log clear attempt (wmi)
description: Detects scenarios where an attacker attempts to clear the event logs.
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0005-Defense%20Evasion/T1070.001-Clear%20Windows%20event%20logs
- https://www.windows-commandline.com/backup-delete-event-log-files/
- https://lolbas-project.github.io/lolbas/Binaries/Wmic/
tags:
- attack.defense_evasion
- attack.t1070.001
author: mdecrevoisier
status: experimental
logsource:
  product: windows
  category: process_creation
detection: # full command: "wmic nteventlog where filename="security" cleareventlog"
  selection:
    NewProcessName|endswith: '\WMIC.exe'
    CommandLine|contains|all:
      - wmic
      - cleareventlog
  condition: selection
falsepositives:
- None
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
  NewProcessName|endswith: '\WMIC.exe'
  CommandLine|contains|all:
    - wmic
    - cleareventlog

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • cleareventlog corpus 2 (sigma 2)
  • wmic corpus 6 (sigma 6)
field:"CommandLine" kind:match
NewProcessNameends_with
  • \WMIC.exe corpus 62 (sigma 62)
field:"Image" kind:ends_with value:"\WMIC.exe"