Detection rules › Sigma

Potential Binary Proxy Execution Via Cdb.EXE

Status
test
Severity
medium
Log source
category process_creation, product windows
Author
Beyu Denis, oscd.community, Nasreddine Bencherchali (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects usage of "cdb.exe" to launch arbitrary processes or commands from a debugger script file

Known false positives

  • Legitimate use of debugging tools

MITRE ATT&CK coverage

Telemetry coverage

ProviderRecord / event type
SysmonEvent ID 1: Process creation

Rule body

title: Potential Binary Proxy Execution Via Cdb.EXE
id: b5c7395f-e501-4a08-94d4-57fe7a9da9d2
status: test
description: Detects usage of "cdb.exe" to launch arbitrary processes or commands from a debugger script file
references:
    - https://lolbas-project.github.io/lolbas/OtherMSBinaries/Cdb/
    - https://web.archive.org/web/20170715043507/http://www.exploit-monday.com/2016/08/windbg-cdb-shellcode-runner.html
    - https://twitter.com/nas_bench/status/1534957360032120833
author: Beyu Denis, oscd.community, Nasreddine Bencherchali (Nextron Systems)
date: 2019-10-26
modified: 2024-04-22
tags:
    - attack.execution
    - attack.stealth
    - attack.t1106
    - attack.t1218
    - attack.t1127
logsource:
    category: process_creation
    product: windows
detection:
    selection_img:
        - Image|endswith: '\cdb.exe'
        - OriginalFileName: 'CDB.Exe'
    selection_cli:
        CommandLine|contains:
            - ' -c ' # Using a debugger script
            - ' -cf '
    condition: all of selection*
falsepositives:
    - Legitimate use of debugging tools
level: medium

Stages and Predicates

Stage 0: condition

all of selection*

Stage 1: selection_img

selection_img:
    - Image|endswith: '\cdb.exe'
    - OriginalFileName: 'CDB.Exe'

Stage 2: selection_cli

selection_cli:
    CommandLine|contains:
        - ' -c '
        - ' -cf '

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
CommandLinematch
  • -c corpus 13 (sigma 13)
  • -cf
field:"CommandLine" kind:match
Imageends_with
  • \cdb.exe
field:"Image" kind:ends_with value:"\cdb.exe"
OriginalFileNameeq
  • CDB.Exe corpus 3 (elastic 2, sigma 1)
field:"OriginalFileName" kind:eq value:"CDB.Exe"