definition: Requirements: Script Block Logging must be enabled
Detection: selection: - ScriptBlockText|contains: - 'Clear-EventLog ' - 'Remove-EventLog ' - 'Limit-EventLog ' - 'Clear-WinEvent ' - ScriptBlockText|contains|all: - 'Eventing.Reader.EventLogSession' - 'ClearLog' - ScriptBlockText|contains|all: - 'Diagnostics.EventLog' - 'Clear' condition:selection Falsepositives:
-Rare need to clear logs before doing something. Sometimes used by installers or cleaner scripts. The script should be investigated to determine if it's legitimate Level:medium