Potential CobaltStrike Process Patterns


Description

Detects potential process patterns related to Cobalt Strike beacon activity

Query · sigma

selection_generic_1:
  CommandLine|endswith: cmd.exe /C whoami
  ParentImage|startswith: C:\Temp\
selection_generic_2:
  ParentImage|endswith:
  - \runonce.exe
  - \dllhost.exe
  CommandLine|contains|all:
  - cmd.exe /c echo
  - '> \\\\.\\pipe'
selection_conhost_1:
  ParentCommandLine|contains|all:
  - cmd.exe /C echo
  - ' > \\\\.\\pipe'
  CommandLine|endswith: conhost.exe 0xffffffff -ForceV1
selection_conhost_2:
  ParentCommandLine|endswith: /C whoami
  CommandLine|endswith: conhost.exe 0xffffffff -ForceV1
condition: 1 of selection_*

Known false positives

  • Unknown
Raw source Potential CobaltStrike Process Patterns · Sigma
Esc
Published by SigmaHQ/sigma ↗, licensed under Detection Rule License 1.1 ↗. Reproduced here unmodified.
title: Potential CobaltStrike Process Patterns
id: f35c5d71-b489-4e22-a115-f003df287317
status: test
description: Detects potential process patterns related to Cobalt Strike beacon activity
references:
    - https://hausec.com/2021/07/26/cobalt-strike-and-tradecraft/
    - https://thedfirreport.com/2021/08/29/cobalt-strike-a-defenders-guide/
author: Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)
date: 2021-07-27
modified: 2023-03-29
tags:
    - attack.execution
    - attack.t1059
logsource:
    category: process_creation
    product: windows
detection:
    selection_generic_1:
        CommandLine|endswith: 'cmd.exe /C whoami'
        ParentImage|startswith: 'C:\Temp\'
    selection_generic_2:
        ParentImage|endswith:
            - '\runonce.exe'
            - '\dllhost.exe'
        CommandLine|contains|all:
            - 'cmd.exe /c echo'
            - '> \\\\.\\pipe'
    selection_conhost_1:
        ParentCommandLine|contains|all:
            - 'cmd.exe /C echo'
            - ' > \\\\.\\pipe'
        CommandLine|endswith: 'conhost.exe 0xffffffff -ForceV1'
    selection_conhost_2:
        ParentCommandLine|endswith: '/C whoami'
        CommandLine|endswith: 'conhost.exe 0xffffffff -ForceV1'
    condition: 1 of selection_*
falsepositives:
    - Unknown
level: high

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.