EventLog Query Requests By Builtin Utilities

Last updated on:

About the rule

Rule Type

Standard

Rule Description

Detect attempts to query the contents of the event log using command line utilities. Attackers use this technique in order to look for sensitive information in the logs such as passwords, usernames, IPs, etc.

Severity

Trouble

Rule Requirement

Criteria

Action1: actionname = "Process started" AND (COMMANDLINE contains "Select" AND COMMANDLINE contains "Win32_NTLogEvent") OR ((PROCESSNAME endswith "\wevtutil.exe" OR ORIGINALFILENAME = "wevtutil.exe") AND COMMANDLINE contains " qe , query-events ") OR ((PROCESSNAME endswith "\wmic.exe" OR ORIGINALFILENAME = "wmic.exe") AND COMMANDLINE contains " ntevent") OR COMMANDLINE contains "Get-WinEvent ,get-eventlog " select Action1.HOSTNAME,Action1.MESSAGE,Action1.COMMANDLINE,Action1.FILE_NAME,Action1.PROCESSNAME,Action1.USERNAME,Action1.PARENTPROCESSNAME

Detection

Execution Mode

realtime

Log Sources

Windows

Author

Ali Alwashali, Nasreddine Bencherchali (Nextron Systems)