Suspicious Eventlog Clear

Last updated on:

About the rule

Rule Type

Standard

Rule Description

Detects usage of known powershell cmdlets such as "Clear-EventLog" to clear the Windows event logs

Severity

Trouble

Rule Requirement

Criteria

Action1: actionname = "PowerShell Script Block Logged" AND SCRIPTEXECUTED contains "Clear-EventLog ,Remove-EventLog ,Limit-EventLog ,Clear-WinEvent " OR (SCRIPTEXECUTED contains "Eventing.Reader.EventLogSession" AND SCRIPTEXECUTED contains "ClearLog") OR SCRIPTEXECUTED contains "Diagnostics.EventLog,Clear" select Action1.HOSTNAME,Action1.MESSAGE,Action1.SCRIPTEXECUTED

Detection

Execution Mode

realtime

Log Sources

Windows

Author

Nasreddine Bencherchali (Nextron Systems)