mirror of
https://github.com/mandiant/capa-rules
synced 2026-06-08 15:41:20 +00:00
32 lines
1.0 KiB
YAML
32 lines
1.0 KiB
YAML
rule:
|
|
meta:
|
|
name: check for process debug object
|
|
namespace: anti-analysis/anti-debugging/debugger-detection
|
|
authors:
|
|
- michael.hunhoff@mandiant.com
|
|
scopes:
|
|
static: function
|
|
dynamic: process
|
|
mbc:
|
|
- Anti-Behavioral Analysis::Debugger Detection::NtQueryInformationProcess [B0001.012]
|
|
references:
|
|
- https://github.com/LordNoteworthy/al-khaser/blob/master/al-khaser/AntiDebug/NtQueryInformationProcess_ProcessDebugObject.cpp
|
|
features:
|
|
- and:
|
|
- or:
|
|
- api: kernel32.GetCurrentProcess
|
|
- api: System.Diagnostics.Process::GetCurrentProcess
|
|
- or:
|
|
- basic block:
|
|
- and:
|
|
- or:
|
|
- api: NtQueryInformationProcess
|
|
- api: ZwQueryInformationProcess
|
|
- number: 0x1E = ProcessDebugObjectHandle
|
|
- thread:
|
|
- and:
|
|
- or:
|
|
- api: NtQueryInformationProcess
|
|
- api: ZwQueryInformationProcess
|
|
- number: 0x1E = ProcessDebugObjectHandle
|