Potential Unquoted Service Path Reconnaissance Via Wmic.EXE

Last updated on:

About the rule

Rule Type

Standard

Rule Description

Detects known WMI recon method to look for unquoted service paths using wmic. Often used by pentester and attacker enumeration scripts

Severity

Trouble

Rule Requirement

Criteria

Action1: actionname = "Process started" AND (ORIGINALFILENAME = "wmic.exe" OR PROCESSNAME endswith "\WMIC.exe") AND (COMMANDLINE contains " service get " AND COMMANDLINE contains "name,displayname,pathname,startmode") select Action1.HOSTNAME,Action1.MESSAGE,Action1.COMMANDLINE,Action1.FILE_NAME,Action1.PROCESSNAME,Action1.USERNAME,Action1.PARENTPROCESSNAME

Detection

Execution Mode

realtime

Log Sources

Windows

Author

Nasreddine Bencherchali (Nextron Systems)