Suspicious Eventlog Clearing or Configuration Change Activity

Last updated on:

About the rule

Rule Type

Standard

Rule Description

Detects the clearing or configuration tampering of EventLog using utilities such as "wevtutil", "powershell" and "wmic". This technique were seen used by threat actors and ransomware strains in order to evade defenses.

Severity

Trouble

Rule Requirement

Criteria

Action1: actionname = "Process started" AND ((PROCESSNAME endswith "\wevtutil.exe" OR ORIGINALFILENAME = "wevtutil.exe") AND COMMANDLINE contains "clear-log , cl ,set-log , sl ,lfn:") OR (PROCESSNAME endswith "\powershell.exe,\powershell_ise.exe,\pwsh.exe" AND (COMMANDLINE contains "Clear-EventLog ,Remove-EventLog ,Limit-EventLog ,Clear-WinEvent " OR (COMMANDLINE contains "Eventing.Reader.EventLogSession" AND COMMANDLINE contains "ClearLog") OR (COMMANDLINE contains "Diagnostics.EventLog" AND COMMANDLINE contains "Clear"))) OR ((PROCESSNAME endswith "\powershell.exe,\powershell_ise.exe,\pwsh.exe,\wmic.exe" AND COMMANDLINE contains "ClearEventLog") AND (PARENTPROCESSNAME != "C:\Windows\SysWOW64\msiexec.exe,C:\Windows\System32\msiexec.exe" OR COMMANDLINE notcontains " sl ")) select Action1.HOSTNAME,Action1.MESSAGE,Action1.COMMANDLINE,Action1.FILE_NAME,Action1.PROCESSNAME,Action1.USERNAME,Action1.PARENTPROCESSNAME

Detection

Execution Mode

realtime

Log Sources

Windows

Author

Ecco, Daniil Yugoslavskiy, oscd.community, D3F7A5105