Detectionhightest

Operator Bloopers Cobalt Strike Commands

Detects use of Cobalt Strike commands accidentally entered in the CMD shell

Open in Detection LabConvert ruleBuild Package
_pete_0, TheDFIRReportCreated 2022-05-06Updated 2023-01-30647c7b9e-d784-4fda-b9a0-45c565a7b729windows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic2 selectors
detection:
    selection_img:
        - OriginalFileName: 'Cmd.Exe'
        - Image|endswith: '\cmd.exe'
    selection_cli:
        CommandLine|startswith:
            - 'cmd '
            - 'cmd.exe'
            - 'c:\windows\system32\cmd.exe'
        CommandLine|contains:
            - 'psinject'
            - 'spawnas'
            - 'make_token'
            - 'remote-exec'
            - 'rev2self'
            - 'dcsync'
            - 'logonpasswords'
            - 'execute-assembly'
            - 'getsystem'
    condition: all of selection_*
False Positives
Unknown

False positive likelihood has not been assessed. Additional context may be needed during triage.

MITRE ATT&CK
Rule Metadata
Rule ID
647c7b9e-d784-4fda-b9a0-45c565a7b729
Status
test
Level
high
Type
Detection
Created
2022-05-06
Modified
2023-01-30
Path
rules/windows/process_creation/proc_creation_win_hktl_cobaltstrike_bloopers_cmd.yml
Raw Tags
attack.executionattack.t1059.003stp.1u
View on GitHub