Windows: Suspicious Cdb.EXE Proxy Execution via Debugger Script Parameters

Alerts on cdb.exe starting with debugger script arguments that may be used to execute arbitrary commands.

FreeReviewedSigma · Medium · v2
Product
windows
Category
process_creation
Author
Beyu Denis, oscd.community, Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2019-10-26
Updated
2026-07-31
title: "Windows: Suspicious Cdb.EXE Proxy Execution via Debugger Script Parameters"
id: 72763bd1-6e57-40ef-a2da-86779ccb8883
status: test
description: This rule flags process creation where cdb.exe is launched with command-line arguments consistent with debugger script execution (e.g., using -c or -cf). Attackers can abuse cdb.exe to proxy execution and run attacker-controlled commands through the debugger workflow. The detection relies on Windows process creation telemetry, matching the cdb.exe image name and specific command-line substrings.
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
  - https://github.com/SigmaHQ/sigma/blob/master/rules/windows/process_creation/proc_creation_win_cdb_arbitrary_command_execution.yml
author: Beyu Denis, oscd.community, Nasreddine Bencherchali (Nextron Systems), Huntrule Team
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 "
      - " -cf "
  condition: all of selection*
falsepositives:
  - Legitimate use of debugging tools
level: medium
license: DRL-1.1
related:
  - id: b5c7395f-e501-4a08-94d4-57fe7a9da9d2
    type: derived