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
Nasreddine BencherchaliCreated 2022-06-20Updated 2022-11-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
2022-06-20
Modified
2022-11-25
Author
Path
rules/windows/powershell/powershell_script/posh_ps_wmi_unquoted_service_search.yml
Raw Tags
attack.executionattack.t1047