2018-06-09 00:15:06 +02:00
|
|
|
---
|
|
|
|
Name: Cdb.exe
|
2018-09-22 04:58:00 +02:00
|
|
|
Description: Debugging tool included with Windows Debugging Tools.
|
|
|
|
Author: 'Oddvar Moe'
|
2021-01-10 16:04:52 +01:00
|
|
|
Created: 2018-05-25
|
2018-06-09 00:15:06 +02:00
|
|
|
Commands:
|
|
|
|
- Command: cdb.exe -cf x64_calc.wds -o notepad.exe
|
|
|
|
Description: Launch 64-bit shellcode from the x64_calc.wds file using cdb.exe.
|
2018-09-22 04:58:00 +02:00
|
|
|
Usecase: Local execution of assembly shellcode.
|
2018-09-26 11:41:58 +02:00
|
|
|
Category: Execute
|
2018-09-22 04:58:00 +02:00
|
|
|
Privileges: User
|
2021-11-05 21:06:57 +01:00
|
|
|
MitreID: T1127
|
2018-09-22 04:58:00 +02:00
|
|
|
OperatingSystem: Windows
|
2021-02-08 14:28:25 +01:00
|
|
|
- Command: |
|
|
|
|
cdb.exe -pd -pn <process_name>
|
|
|
|
.shell <cmd>
|
|
|
|
Description: Attaching to any process and executing shell commands
|
|
|
|
Usecase: Run a shell command under a trusted Microsoft signed binary
|
|
|
|
Category: Execute
|
|
|
|
Privileges: User
|
2021-11-05 21:06:57 +01:00
|
|
|
MitreID: T1127
|
2021-02-08 14:28:25 +01:00
|
|
|
OperatingSystem: Windows
|
2018-12-10 14:28:12 +01:00
|
|
|
Full_Path:
|
2018-09-26 11:41:58 +02:00
|
|
|
- Path: C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\cdb.exe
|
|
|
|
- Path: C:\Program Files (x86)\Windows Kits\10\Debuggers\x86\cdb.exe
|
2018-12-10 14:28:12 +01:00
|
|
|
Code_Sample:
|
2018-09-26 11:41:58 +02:00
|
|
|
- Code:
|
|
|
|
Detection:
|
2021-11-15 14:19:03 +01:00
|
|
|
- Sigma: https://github.com/SigmaHQ/sigma/blob/08ca62cc8860f4660e945805d0dd615ce75258c1/rules/windows/process_creation/win_susp_cdb.yml
|
|
|
|
- Elastic: https://github.com/elastic/detection-rules/blob/414d32027632a49fb239abb8fbbb55d3fa8dd861/rules/windows/defense_evasion_unusual_process_network_connection.toml
|
|
|
|
- Elastic: https://github.com/elastic/detection-rules/blob/414d32027632a49fb239abb8fbbb55d3fa8dd861/rules/windows/defense_evasion_network_connection_from_windows_binary.toml
|
|
|
|
- BlockRule: https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-defender-application-control/microsoft-recommended-block-rules
|
2018-06-09 00:15:06 +02:00
|
|
|
Resources:
|
2018-09-26 11:41:58 +02:00
|
|
|
- Link: http://www.exploit-monday.com/2016/08/windbg-cdb-shellcode-runner.html
|
|
|
|
- Link: https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/cdb-command-line-options
|
|
|
|
- Link: https://gist.github.com/mattifestation/94e2b0a9e3fe1ac0a433b5c3e6bd0bda
|
2021-02-08 14:28:25 +01:00
|
|
|
- Link: https://blog.thecybersecuritytutor.com/the-power-of-cdb-debugging-tool/
|
2021-11-05 19:58:26 +01:00
|
|
|
Acknowledgement:
|
2018-09-22 04:58:00 +02:00
|
|
|
- Person: Matt Graeber
|
|
|
|
Handle: '@mattifestation'
|
2021-02-08 14:28:25 +01:00
|
|
|
- Person: mr.d0x
|
|
|
|
Handle: '@mrd0x'
|
|
|
|
- Person: Spooky Sec
|
2021-02-12 20:26:16 +01:00
|
|
|
Handle: '@sec_spooky'
|
2021-11-05 19:58:26 +01:00
|
|
|
---
|