Detection rules › Sigma

Suspicious Processes Spawned by WinRM

Status
test
Severity
high
Log source
product windows, category process_creation
Author
Andreas Hunkeler (@Karneades), Markus Neis
Source
github.com/SigmaHQ/sigma

Detects suspicious processes including shells spawnd from WinRM host process

MITRE ATT&CK coverage

TacticTechniques
Initial AccessT1190 Exploit Public-Facing Application

Event coverage

Rule body yaml

title: Suspicious Processes Spawned by WinRM
id: 5cc2cda8-f261-4d88-a2de-e9e193c86716
status: test
description: Detects suspicious processes including shells spawnd from WinRM host process
author: Andreas Hunkeler (@Karneades), Markus Neis
references:
    - Internal Research
date: 2021-05-20
modified: 2022-07-14
tags:
    - attack.t1190
    - attack.initial-access
    - attack.persistence
    - attack.privilege-escalation
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        ParentImage|endswith: '\wsmprovhost.exe'
        Image|endswith:
            - '\cmd.exe'
            - '\sh.exe'
            - '\bash.exe'
            - '\powershell.exe'
            - '\pwsh.exe'
            - '\wsl.exe'
            - '\schtasks.exe'
            - '\certutil.exe'
            - '\whoami.exe'
            - '\bitsadmin.exe'
    condition: selection
falsepositives:
    - Legitimate WinRM usage
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ParentImage|endswith: '\wsmprovhost.exe'
    Image|endswith:
        - '\cmd.exe'
        - '\sh.exe'
        - '\bash.exe'
        - '\powershell.exe'
        - '\pwsh.exe'
        - '\wsl.exe'
        - '\schtasks.exe'
        - '\certutil.exe'
        - '\whoami.exe'
        - '\bitsadmin.exe'

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.

FieldKindValues
Imageends_with
  • \bash.exe corpus 22 (sigma 22)
  • \bitsadmin.exe corpus 29 (sigma 29)
  • \certutil.exe corpus 43 (sigma 43)
  • \cmd.exe corpus 130 (sigma 130)
  • \powershell.exe corpus 182 (sigma 182)
  • \pwsh.exe corpus 168 (sigma 168)
  • \schtasks.exe corpus 56 (sigma 56)
  • \sh.exe corpus 16 (sigma 16)
  • \whoami.exe corpus 19 (sigma 19)
  • \wsl.exe corpus 11 (sigma 11)
ParentImageends_with
  • \wsmprovhost.exe corpus 2 (sigma 2)