Detection rules › Sigma

Remote Code Execute via Winrm.vbs

Severity
medium
Author
Julia Fomina, oscd.community
Source
upstream

Detects an attempt to execute code or create service on remote host via winrm.vbs.

MITRE ATT&CK coverage

TacticTechniques
Defense EvasionT1216 System Script Proxy Execution

Event coverage

ProviderEvent IDTitle
Sysmon1Process creation

Stages and Predicates

Stage 1: all of selection_img

or:
Image|endswith: '\cscript.exe'
OriginalFileName: cscript.exe

Stage 2: all of selection_cli

CommandLine|contains: '-r:http'
CommandLine|contains: 'invoke Create wmicimv2/Win32_'
CommandLine|contains: winrm

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
CommandLinematch
  • -r:http
  • invoke Create wmicimv2/Win32_
  • winrm corpus 2 (sigma 2)
Imageends_with
  • \cscript.exe corpus 64 (sigma 64)
OriginalFileNameeq
  • cscript.exe corpus 15 (sigma 15)