WMIC Unquoted Services Path Lookup - PowerShell

Last updated on:

About the rule

Rule Type

Standard

Rule Description

Detects known WMI recon method to look for unquoted service paths, often used by pentest inside of powershell scripts attackers enum scripts

Severity

Trouble

Rule Requirement

Criteria

Action1: actionname = "PowerShell Script Block Logged" AND SCRIPTEXECUTED contains "Get-WmiObject ,gwmi " AND (SCRIPTEXECUTED contains " Win32_Service " AND SCRIPTEXECUTED contains "Name" AND SCRIPTEXECUTED contains "DisplayName" AND SCRIPTEXECUTED contains "PathName" AND SCRIPTEXECUTED contains "StartMode") select Action1.HOSTNAME,Action1.MESSAGE,Action1.SCRIPTEXECUTED

Detection

Execution Mode

realtime

Log Sources

Windows

Author

Nasreddine Bencherchali (Nextron Systems)