Anti debug

From mtecoYY/ai-baike · View interactive version

Anti debug is an AI agent skill from the GitHub repository mtecoYY/ai-baike. Anti-debugging detection and bypass — ptrace, debugger detection, timing checks, breakpoint detection. Trigger: anti debug, debugger detect, bypass debug, ptrace, anti-debugging, 反调试.

How to use this skill

Skill file

Anti-Debugging Bypass

Detection Patterns

Linux

Windows

macOS

Bypass Techniques

  1. LD_PRELOAD hook to intercept ptrace/IsDebuggerPresent
  2. Patch PEB directly (NtGlobalFlag = 0, BeingDebugged = 0)
  3. Frida hook: Interceptor.attach to return false
  4. SMC (Self-Modifying Code) to hide breakpoints
  5. Nanomites/timing: normalize rdtsc deltas
  6. TLS callback to run before debugger init

Execution

When triggered by "anti debug" or "debugger bypass":

  1. Identify target platform and anti-debug technique used
  2. Generate platform-specific bypass code
  3. Verify bypass works
  4. Write patched binary / hook script to disk
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.