Detection rules › Sigma

Potential POWERTRASH Script Execution

Status
test
Severity
high
Log source
product windows, category ps_script
Author
Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects potential execution of the PowerShell script POWERTRASH

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: Potential POWERTRASH Script Execution
id: 4e19528a-f081-40dd-be09-90c39352bd64
status: test
description: Detects potential execution of the PowerShell script POWERTRASH
references:
    - https://labs.withsecure.com/publications/fin7-target-veeam-servers
author: Nasreddine Bencherchali (Nextron Systems)
date: 2023-05-04
tags:
    - attack.execution
    - attack.t1059.001
    - attack.g0046
    - detection.emerging-threats
logsource:
    product: windows
    category: ps_script
    definition: bade5735-5ab0-4aa7-a642-a11be0e40872
detection:
    selection:
        ScriptBlockText|contains|all:
            - 'IO.Compression.DeflateStream'
            - 'IO.MemoryStream'
            - '::FromBase64String'
            - 'GetDelegateForFunctionPointer'
            - '.Invoke()'
            - 'GlobalAssemblyCache'
    condition: selection
falsepositives:
    - Unknown
level: high

Stages and Predicates

Stage 0: condition

selection

Stage 1: selection

selection:
    ScriptBlockText|contains|all:
        - 'IO.Compression.DeflateStream'
        - 'IO.MemoryStream'
        - '::FromBase64String'
        - 'GetDelegateForFunctionPointer'
        - '.Invoke()'
        - 'GlobalAssemblyCache'

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
ScriptBlockTextmatch
  • .Invoke()
  • ::FromBase64String
  • GetDelegateForFunctionPointer corpus 2 (sigma 2)
  • GlobalAssemblyCache
  • IO.Compression.DeflateStream
  • IO.MemoryStream corpus 3 (splunk 2, sigma 1)