File contents Anti-Debugging Bypass
Detection Patterns
Linux
ptrace(PTRACE_TRACEME) — if fails, debugger attached
/proc/self/status → TracerPid field
LD_PRELOAD hook detection
Timing checks: rdtsc before/after operations
Windows
IsDebuggerPresent() / CheckRemoteDebuggerPresent()
NtQueryInformationProcess(ProcessDebugPort)
NtGlobalFlag in PEB
CloseHandle with invalid handle → exception if debugged
Timing: QueryPerformanceCounter / rdtsc
macOS
ptrace(PT_DENY_ATTACH)
sysctl kinfo_proc → p_flag & P_TRACED
task_info(TASK_FLAGS_INFO)
Bypass Techniques
LD_PRELOAD hook to intercept ptrace/IsDebuggerPresent
Patch PEB directly (NtGlobalFlag = 0, BeingDebugged = 0)
Frida hook: Interceptor.attach to return false
SMC (Self-Modifying Code) to hide breakpoints
Nanomites/timing: normalize rdtsc deltas
TLS callback to run before debugger init
Execution
When triggered by "anti debug" or "debugger bypass":
Identify target platform and anti-debug technique used
Generate platform-specific bypass code
Verify bypass works
Write patched binary / hook script to disk
1 --- 2 name: anti-debug 3 description: Anti-Debugging Bypass 4 --- 5 6 # Anti-Debugging Bypass 7 8 ## Detection Patterns 9 10 ### Linux 11 - ptrace(PTRACE_TRACEME) — if fails, debugger attached 12 - /proc/self/status → TracerPid field 13 - LD_PRELOAD hook detection 14 - Timing checks: rdtsc before/after operations 15 16 ### Windows 17 - IsDebuggerPresent() / CheckRemoteDebuggerPresent() 18 - NtQueryInformationProcess(ProcessDebugPort) 19 - NtGlobalFlag in PEB 20 - CloseHandle with invalid handle → exception if debugged 21 - Timing: QueryPerformanceCounter / rdtsc 22 23 ### macOS 24 - ptrace(PT_DENY_ATTACH) 25 - sysctl kinfo_proc → p_flag & P_TRACED 26 - task_info(TASK_FLAGS_INFO) 27 28 ## Bypass Techniques 29 1. LD_PRELOAD hook to intercept ptrace/IsDebuggerPresent 30 2. Patch PEB directly (NtGlobalFlag = 0, BeingDebugged = 0) 31 3. Frida hook: Interceptor.attach to return false 32 4. SMC (Self-Modifying Code) to hide breakpoints 33 5. Nanomites/timing: normalize rdtsc deltas 34 6. TLS callback to run before debugger init 35 36 ## Execution 37 When triggered by "anti debug" or "debugger bypass": 38 1. Identify target platform and anti-debug technique used 39 2. Generate platform-specific bypass code 40 3. Verify bypass works 41 4. Write patched binary / hook script to disk
lingbol088-spec/5.6-jailbreak-nerv-codex-instruct-5.6/tree/main/skills/anti-debug commit d2d9ced0fb
Frequently asked questions How do I install the Anti Debug skill? Run npx skillmds@latest add lingbol088-spec/anti-debug in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Anti Debug skill do? Anti-Debugging Bypass It is listed under Coding & Dev Tools on SkillMD.
Is Anti Debug safe to use? This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Anti Debug? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Anti Debug free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Anti Debug? lingbol088-spec (@lingbol088-spec) published this skill. Their other Agent Skills are listed on their SkillMD profile.