Remote PowerShell Session Host Process (WinRM)
Detects remote PowerShell sections by monitoring for wsmprovhost (WinRM host process) as a parent or child process (sign of an active PowerShell remote session).
Sigma rule (View on GitHub)
1title: Remote PowerShell Session Host Process (WinRM)
2id: 734f8d9b-42b8-41b2-bcf5-abaf49d5a3c8
3status: test
4description: Detects remote PowerShell sections by monitoring for wsmprovhost (WinRM host process) as a parent or child process (sign of an active PowerShell remote session).
5references:
6 - https://threathunterplaybook.com/hunts/windows/190511-RemotePwshExecution/notebook.html
7author: Roberto Rodriguez @Cyb3rWard0g
8date: 2019-09-12
9modified: 2022-10-09
10tags:
11 - attack.execution
12 - attack.lateral-movement
13 - attack.t1059.001
14 - attack.t1021.006
15logsource:
16 category: process_creation
17 product: windows
18detection:
19 selection:
20 - Image|endswith: '\wsmprovhost.exe'
21 - ParentImage|endswith: '\wsmprovhost.exe'
22 condition: selection
23fields:
24 - ComputerName
25 - User
26 - CommandLine
27falsepositives:
28 - Legitimate usage of remote Powershell, e.g. for monitoring purposes.
29level: medium
References
Related rules
- Potential Remote PowerShell Session Initiated
- Remote LSASS Process Access Through Windows Remote Management
- Remote PowerShell Session (PS Classic)
- Remote PowerShell Session (PS Module)
- Suspicious Non PowerShell WSMAN COM Provider