Skip to main content

anti-debug

Anti-debugging detection and bypass — ptrace, debugger detection, timing checks, breakpoint detection. Trigger: anti debug, debugger detect, bypass debug, ptrace, anti-debugging, 反调试.

소스 정보

저장소
alicewe1/alice_skill
최근 소스 활동
2026년 9월 23일 19:28
감지된 SKILL.md 언어
영어
스타
40
포크
6

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
--- name: anti-debug description: Anti-debugging detection and bypass — ptrace, debugger detection, timing checks, breakpoint detection. Trigger: anti debug, debugger detect, bypass debug, ptrace, anti-debugging, 反调试. x-alice-class: reverse ---# 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 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
GitHub에서 보기