-
Notifications
You must be signed in to change notification settings - Fork 164
/
check-for-debugger-via-api.yml
25 lines (25 loc) · 1.16 KB
/
check-for-debugger-via-api.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
rule:
meta:
name: check for debugger via API
namespace: anti-analysis/anti-debugging/debugger-detection
authors:
scope: function
mbc:
- Anti-Behavioral Analysis::Debugger Detection::CheckRemoteDebuggerPresent [B0001.002]
- Anti-Behavioral Analysis::Debugger Detection::WudfIsAnyDebuggerPresent [B0001.031]
references:
- https://github.com/LordNoteworthy/al-khaser/blob/master/al-khaser/AntiDebug/CheckRemoteDebuggerPresent.cpp
examples:
- al-khaser_x86.exe_:0x420000
features:
- or:
# We're not including kernel32.IsDebuggerPresent here because some exception handlers and other compiler-inserted
# code may add calls to it, especially in debug builds. So, likely even with pretty good library code detection
# this feature could result in many false positives.
- api: kernel32.CheckRemoteDebuggerPresent
- api: WUDFPlatform.WudfIsAnyDebuggerPresent
- api: WUDFPlatform.WudfIsKernelDebuggerPresent
- api: WUDFPlatform.WudfIsUserDebuggerPresent
- property/read: System.Diagnostics.Debugger::IsAttached