Detectionmediumtest
WMIC Unquoted Services Path Lookup - PowerShell
Detects known WMI recon method to look for unquoted service paths, often used by pentest inside of powershell scripts attackers enum scripts
Convert In Phoenix Studio
Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.
Launch
Nasreddine Bencherchali (Nextron Systems)Created Mon Jun 20Updated Fri Nov 2509658312-bc27-4a3b-91c5-e49ab9046d1bwindows
Log Source
WindowsPowerShell Script
ProductWindows← raw: windows
CategoryPowerShell Script← raw: ps_script
Definition
Requirements: Script Block Logging must be enabled
Detection Logic
Detection Logic1 selector
detection:
selection:
ScriptBlockText|contains:
- 'Get-WmiObject '
- 'gwmi '
ScriptBlockText|contains|all:
- ' Win32_Service '
- 'Name'
- 'DisplayName'
- 'PathName'
- 'StartMode'
condition: selectionFalse Positives
Unknown
False positive likelihood has not been assessed. Additional context may be needed during triage.
MITRE ATT&CK
Tactics
Rule Metadata
Rule ID
09658312-bc27-4a3b-91c5-e49ab9046d1b
Status
test
Level
medium
Type
Detection
Created
Mon Jun 20
Modified
Fri Nov 25
Path
rules/windows/powershell/powershell_script/posh_ps_wmi_unquoted_service_search.yml
Raw Tags
attack.executionattack.t1047