Detection rules › Sigma

PowerShell Downgrade Attack - PowerShell

Status
test
Severity
medium
Log source
product windows, category ps_classic_start
Author
Florian Roth (Nextron Systems), Lee Holmes (idea), Harish Segar (improvements)
Source
github.com/SigmaHQ/sigma

Detects PowerShell downgrade attack by comparing the host versions with the actually used engine version 2.0

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: PowerShell Downgrade Attack - PowerShell
id: 6331d09b-4785-4c13-980f-f96661356249
status: test
description: Detects PowerShell downgrade attack by comparing the host versions with the actually used engine version 2.0
references:
    - http://www.leeholmes.com/blog/2017/03/17/detecting-and-preventing-powershell-downgrade-attacks/
author: Florian Roth (Nextron Systems), Lee Holmes (idea), Harish Segar (improvements)
date: 2017-03-22
modified: 2023-10-27
tags:
    - attack.execution
    - attack.t1059.001
logsource:
    product: windows
    category: ps_classic_start
detection:
    selection:
        Data|contains: 'EngineVersion=2.'
    filter_main:
        Data|contains: 'HostVersion=2.'
    condition: selection and not filter_main
falsepositives:
    - Unknown
level: medium

Stages and Predicates

Stage 0: condition

selection and not filter_main

Stage 1: selection

selection:
    Data|contains: 'EngineVersion=2.'

Stage 2: not filter_main

filter_main:
    Data|contains: 'HostVersion=2.'

Exclusions

Top-level NOT(...) conjuncts: predicates this rule actively suppresses.

FieldKindExcluded values
DatamatchHostVersion=2.

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
Datamatch
  • EngineVersion=2. corpus 2 (sigma 2)