nerdexam
GIAC

GREM · Question #143

IsDebuggerPresent() returns false but debugging artifacts are detected. What is the malware likely doing?

The correct answer is C. Manual debugger detection. Manual debugger detection (C) is correct because malware can bypass the IsDebuggerPresent() API call - which simply checks a flag in the PEB (Process Environment Block) - by using alternative techniques like checking NtGlobalFlag, examining heap headers, timing attacks (rdtsc)…

Malware Obfuscation & Anti-Analysis Techniques

Question

IsDebuggerPresent() returns false but debugging artifacts are detected. What is the malware likely doing?

Options

  • AAPI hashing
  • BAnti-sandbox
  • CManual debugger detection
  • DHollowing

How the community answered

(43 responses)
  • A
    7% (3)
  • B
    5% (2)
  • C
    72% (31)
  • D
    16% (7)

Explanation

Manual debugger detection (C) is correct because malware can bypass the IsDebuggerPresent() API call - which simply checks a flag in the PEB (Process Environment Block) - by using alternative techniques like checking NtGlobalFlag, examining heap headers, timing attacks (rdtsc), or directly inspecting hardware debug registers (Dr0Dr3). Sophisticated malware does this precisely because it knows defenders might patch or hook the standard API.

  • A (API hashing) is about obfuscating which API functions are called at import time - it's an obfuscation technique, not a debugger detection bypass.
  • B (Anti-sandbox) refers to detecting automated analysis environments (e.g., checking for low uptime, minimal process count, or VM artifacts) - related, but distinct from debugger detection specifically.
  • D (Process hollowing) is a code injection technique where a legitimate process is spawned and its memory replaced with malicious code - unrelated to detecting a debugger.

Memory tip: Think of it as "manual = manual labor" - instead of calling the convenient Windows API shortcut, the malware does the debugger check by hand using low-level methods the API would normally abstract away.

Topics

#Debugger Detection#IsDebuggerPresent Bypass#Anti-Analysis Evasion#Manual Checks

Community Discussion

No community discussion yet for this question.

Full GREM Practice