{"id":"79df3f68-dccb-48e9-9171-b75cbc37c51d","title":"Potential Lateral Movement via Windows Remote Shell","description":"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.\n","author":"Liran Ravich","status":"experimental","level":"medium","date":"2025-10-22","modified":"","tags":["attack.lateral-movement","attack.t1021.006"],"technique_ids":["T1021.006"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Legitimate use of WinRM within the organization"],"references":["https://cardinalops.com/blog/living-off-winrm-abusing-complexity-in-remote-management/","https://www.ired.team/offensive-security/lateral-movement/winrs-for-lateral-movement"],"source_path":"rules/windows/process_creation/proc_creation_win_winrshost_command_execution.yml","source_sha256":"694797cfcc6ce9474ec91eff610770645b1e79b23714c1b3127b2e40553213d2","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_winrshost_command_execution.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Potential Lateral Movement via Windows Remote Shell\nid: 79df3f68-dccb-48e9-9171-b75cbc37c51d\nstatus: experimental\ndescription: |\n    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.\nreferences:\n    - https://cardinalops.com/blog/living-off-winrm-abusing-complexity-in-remote-management/\n    - https://www.ired.team/offensive-security/lateral-movement/winrs-for-lateral-movement\nauthor: Liran Ravich\ndate: 2025-10-22\ntags:\n    - attack.lateral-movement\n    - attack.t1021.006\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection:\n        # Note: Example of command to simulate (winrm needs to be enabled): \"c:\\Windows\\System32\\winrs.exe\" powershell\n        ParentImage|endswith: '\\winrshost.exe'\n    filter_main_conhost:\n        Image: 'C:\\Windows\\System32\\conhost.exe'\n    condition: selection and not 1 of filter_main_*\nfalsepositives:\n    - Legitimate use of WinRM within the organization\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1021.006","id":"T1021.006","name":"Windows Remote Management","page":"techniques/enterprise/T1021.006/"}],"data_path":"data/detection-rules/79df3f68-dccb-48e9-9171-b75cbc37c51d.json","kind":"sigma"}
