Detection rules › Sigma

Powershell Token Obfuscation - Process Creation

Severity
high
Author
frack113
Source
upstream

Detects TOKEN OBFUSCATION technique from Invoke-Obfuscation

MITRE ATT&CK coverage

TacticTechniques
Defense EvasionT1027.009 Obfuscated Files or Information: Embedded Payloads

Event coverage

ProviderEvent IDTitle
Sysmon1Process creation
Security-Auditing4688A new process has been created.

Stages and Predicates

Stage 1: selection

or:
CommandLine|re: '(?i)\$\{`?e`?n`?v`?:`?p`?a`?t`?h`?\}'
CommandLine|re: '"(\{\d\})+"\s*-f'
CommandLine|re: '\w+`(\w+|-|.)`[\w+|\s]'

Stage 2: not 1 of filter_main_envpath

CommandLine|contains: '${env:path}'

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
  • ${env:path}
CommandLineregex_match
  • "(\{\d\})+"\s*-f
  • (?i)\$\{`?e`?n`?v`?:`?p`?a`?t`?h`?\}
  • \w+`(\w+|-|.)`[\w+|\s]