Detection rules › Sigma

HackTool - Covenant PowerShell Launcher

Status
test
Severity
high
Log source
product windows, category process_creation
Author
Florian Roth (Nextron Systems), Jonhnathan Ribeiro, oscd.community
Source
github.com/SigmaHQ/sigma

Detects suspicious command lines used in Covenant luanchers

MITRE ATT&CK coverage

Event coverage

Rule body yaml

title: HackTool - Covenant PowerShell Launcher
id: c260b6db-48ba-4b4a-a76f-2f67644e99d2
status: test
description: Detects suspicious command lines used in Covenant luanchers
references:
    - https://posts.specterops.io/covenant-v0-5-eee0507b85ba
author: Florian Roth (Nextron Systems), Jonhnathan Ribeiro, oscd.community
date: 2020-06-04
modified: 2023-02-21
tags:
    - attack.execution
    - attack.stealth
    - attack.t1059.001
    - attack.t1564.003
logsource:
    category: process_creation
    product: windows
detection:
    selection_1:
        CommandLine|contains|all:
            - '-Sta'
            - '-Nop'
            - '-Window'
            - 'Hidden'
        CommandLine|contains:
            - '-Command'
            - '-EncodedCommand'
    selection_2:
        CommandLine|contains:
            - 'sv o (New-Object IO.MemorySteam);sv d '
            - 'mshta file.hta'
            - 'GruntHTTP'
            - '-EncodedCommand cwB2ACAAbwAgA'
    condition: 1 of selection_*
level: high

Stages and Predicates

Stage 0: condition

1 of selection_*

Stage 1: selection_1

selection_1:
    CommandLine|contains|all:
        - '-Sta'
        - '-Nop'
        - '-Window'
        - 'Hidden'
    CommandLine|contains:
        - '-Command'
        - '-EncodedCommand'

Stage 2: selection_2

selection_2:
    CommandLine|contains:
        - 'sv o (New-Object IO.MemorySteam);sv d '
        - 'mshta file.hta'
        - 'GruntHTTP'
        - '-EncodedCommand cwB2ACAAbwAgA'

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
  • -Command corpus 2 (sigma 2)
  • -EncodedCommand corpus 3 (sigma 1, elastic 1, kusto 1)
  • -EncodedCommand cwB2ACAAbwAgA
  • -Nop corpus 2 (sigma 2)
  • -Sta
  • -Window
  • GruntHTTP
  • Hidden corpus 4 (sigma 4)
  • mshta file.hta
  • sv o (New-Object IO.MemorySteam);sv d