Detectionmediumexperimental

Potential Lateral Movement via Windows Remote Shell

Detects a child process spawned by 'winrshost.exe', which suggests remote command execution through Windows Remote Shell (WinRs) and may indicate potential lateral movement activity.

Convert In Phoenix Studio

Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.

Launch
Liran RavichCreated Wed Oct 2279df3f68-dccb-48e9-9171-b75cbc37c51dwindows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic2 selectors
detection:
    selection:
        # Note: Example of command to simulate (winrm needs to be enabled): "c:\Windows\System32\winrs.exe" powershell
        ParentImage|endswith: '\winrshost.exe'
    filter_main_conhost:
        Image: 'C:\Windows\System32\conhost.exe'
    condition: selection and not 1 of filter_main_*
False Positives

Legitimate use of WinRM within the organization

Rule Metadata
Rule ID
79df3f68-dccb-48e9-9171-b75cbc37c51d
Status
experimental
Level
medium
Type
Detection
Created
Wed Oct 22
Path
rules/windows/process_creation/proc_creation_win_winrshost_command_execution.yml
Raw Tags
attack.lateral-movementattack.t1021.006
View on GitHub