Windows API reference
IsDebuggerPresent
Reports whether the calling process is being debugged by a user-mode debugger.
- Library
- Kernel32.dll
- Category
- Anti-Debugging
- Suspicion
- high
- MITRE ATT&CK
- T1622 Debugger Evasion
Detection summary
IsDebuggerPresent has no native event; anti-debug checks are inferred from API/EDR telemetry and surrounding control flow.
- Sysmon: No Sysmon event mapped
- ETW: No ETW provider mapped
- Notes: Use EDR user-mode hooks or call stacks and correlate with CheckRemoteDebuggerPresent, NtQueryInformationProcess, timing checks and debugger-detection branches. Sysmon does not log this query.
Sources and documentation
- Microsoft Learn documentation (direct documentation)
- MITRE ATT&CK T1622: Debugger Evasion
- Microsoft Sysmon events
Last reviewed: . Page metadata generated .
Legitimate use
Anti-cheat, DRM, licensing and crash-reporting components.
Related APIs
- CheckRemoteDebuggerPresent — Kernel32.dll
- NtQueryInformationProcess — Ntdll.dll