Detection rules › Sigma
WMI spwaning PowerShell process - WMImplant
Detects scenarios where an attacker WMIimplant
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Execution | T1047 Windows Management Instrumentation |
Event coverage
| Provider | Event | Title |
|---|---|---|
| Sysmon | Event ID 1 | Process creation |
| Security-Auditing | Event ID 4688 | A new process has been created. |
Rule body yaml
title: WMI spwaning PowerShell process - WMImplant
description: Detects scenarios where an attacker WMIimplant
references:
- https://github.com/mdecrevoisier/EVTX-to-MITRE-Attack/tree/master/TA0002-Execution/T1047-Windows%20Management%20Instrumentation
- https://github.com/FortyNorthSecurity/WMImplant/
- https://www.darkoperator.com/blog/2017/10/14/basics-of-tracking-wmi-activity
- Inspired from https://github.com/SigmaHQ/sigma/blob/7bca85e40618126643b9712b80bd663c21908e26/rules/windows/process_creation/win_wmi_spwns_powershell.yml
tags:
- attack.execution
- attack.t1047
author: Markus Neis/@Karneades, adapted by mdecrevoisier
status: experimental
logsource:
product: windows
category: process_creation
detection:
selection_basic:
EventID: 4688
Version: 2
ParentProcessName|endswith: \WmiPrvSE.exe
NewProcessName|endswith:
- \powershell.exe
- \pwsh.exe # PowerShell v6
- \powershell_ise.exe # Development GUI
selection_sysmon:
EventID: 1
ParentImage|endswith: \WmiPrvSE.exe
Image|endswith|endswith:
- \powershell.exe
- \pwsh.exe # PowerShell v6
- \powershell_ise.exe # Development GUI
filter:
CommandLine: "-" # Exclude empty command line
condition: (selection_basic or selection_sysmon) and not filter
falsepositives:
- Unknown
level: high
Stages and Predicates
Stage 0: condition
(selection_basic or selection_sysmon) and not filterStage 1: selection_basic
selection_basic:
EventID: 4688
Version: 2
ParentProcessName|endswith: \WmiPrvSE.exe
NewProcessName|endswith:
- \powershell.exe
- \pwsh.exe
- \powershell_ise.exe
Stage 2: selection_sysmon
selection_sysmon:
EventID: 1
ParentImage|endswith: \WmiPrvSE.exe
Image|endswith|endswith:
- \powershell.exe
- \pwsh.exe
- \powershell_ise.exe
Stage 3: not filter
filter:
CommandLine: "-"
Exclusions
Top-level NOT(...) conjuncts: predicates this rule actively suppresses.
| Field | Kind | Excluded values |
|---|---|---|
CommandLine | eq | - |
Indicators
Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.
| Field | Kind | Values |
|---|---|---|
Image | ends_with |
|
NewProcessName | ends_with |
|
ParentImage | ends_with |
|
ParentProcessName | ends_with |
|
Version | eq |
|