Files
mandiant-capa-rules/nursery/check-for-process-debug-object.yml
Yacine Elhamer 0aea484e04 updated rules
2023-08-21 19:14:45 +02:00

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