bittersecurity/decepticon/anti-debug-bypass
Claude Code and agent skill by bittersecurity/decepticon
- community
Checking that the SKILL.md file is still in the repository.
Detect and neutralize anti-debug / anti-VM checks — IsDebuggerPresent, ptrace, NtGlobalFlag, timing, hardware-breakpoint detection.
Install
npx vskill@latest install bittersecurity/decepticon/anti-debug-bypassSKILL.md
The same SKILL.md was published earlier as bittersecurity/decepticon/anti-debug-bypass.
Anti-Debug Bypass Playbook
Malware and protected commercial software check for debuggers and sandboxes before running real logic. Bypassing these checks is required to dynamically analyze them. Each check has a known counter.
1. Enumerate anti-debug techniques in the binary
Static signature scan
Decepticon helper:
2. Common checks + bypasses
Windows checks
| Check | What it does | Bypass | |
|---|---|---|---|
IsDebuggerPresent() | reads PEB.BeingDebugged byte | Set PEB.BeingDebugged = 0 in debugger; ScyllaHide handles | |
CheckRemoteDebuggerPresent() | calls NtQueryInformationProcess(ProcessDebugPort) | Patch return to FALSE; ScyllaHide hooks the syscall | |
NtQueryInformationProcess(ProcessDebugPort) | returns nonzero if debugger attached | Hook + return 0 | |
NtQueryInformationProcess(ProcessDebugFlags) | returns 0 if debugger, 1 if not | Force return 1 | |
NtQueryInformationProcess(ProcessDebugObjectHandle) | nonzero handle if attached | Force NULL | |
PEB.NtGlobalFlag | 0x70 if heap debugging | Set to 0 | |
PEB.HeapFlags & PEB.ForceFlags | non-default if debugger | Reset to defaults | |
NtSetInformationThread(ThreadHideFromDebugger) | unhook debugger from thread | Hook NtSetInformationThread | |
INT 2D / INT 3 exception handling | normal flow if no debugger | Set exception handler in debugger | |
Hardware breakpoint detection (GetThreadContext check) | reads DR0-3, fails if BPs set | Use software BPs, or zero DRs before check |
ScyllaHide (x64dbg/x32dbg/IDA plugin) handles essentially all of these automatically.
Linux checks
| Check | What it does | Bypass | |
|---|---|---|---|
ptrace(PTRACE_TRACEME) | fails if already traced | Run w/o ptrace, or use LD_PRELOAD to hook | |
Read /proc/self/status TracerPid: | nonzero if debugger | LD_PRELOAD hook reading; or modify /proc on a fork | |
prctl(PR_SET_DUMPABLE, 0) | prevents gdb attach | Patch out the prctl | |
getppid() parent process name | if it's gdb/strace | rename gdb binary, or LD_PRELOAD getppid | |
Timing checks via rdtsc | measures execution time | Use gdb's set $rax = ... to fake; or patch rdtsc out |
LD_PRELOAD bypass example
3. Anti-VM / sandbox detection
| Check | Bypass | |
|---|---|---|
| CPUID leaf 0x40000000 (hypervisor bit) | Mask CPUID via KVM -cpu host,-hypervisor or VMM config | |
VMware backdoor 0x564D5868 magic via IN/OUT | Patch the magic number check | |
| MAC address vendor (00:0C:29 = VMware) | Spoof MAC in VM config | |
| Disk size < 50GB | Allocate larger disk for the analysis VM | |
| RAM < 2GB | Provision more RAM | |
Username sandbox, vagrant, virtual | Change username in analysis env | |
| Recent file count low | Pre-populate Documents folder before run | |
| Mouse cursor never moves | Use xdotool to inject mouse jitter | |
| Process count, uptime, kernel objects | Boot the VM a while before analysis |
4. Dynamic bypass via debugger
x64dbg / x32dbg (Windows)
- Install ScyllaHide plugin
- In the plugin, enable all checks (PEB patches, NtSetInformation hooks, etc)
- Open the binary, set BP at entry → continue
- ScyllaHide neutralizes most checks transparently
IDA Pro
- Built-in remote debugger + IDAStealth plugin
- For step-tracing through anti-debug:
Debugger options → Suspend on library load/unload = no
radare2 / r2dbg
gdb / pwndbg
For Linux:
5. Patching for static-replay analysis
If you only need to analyze the unpacked / decrypted state, sometimes easier to patch the anti-debug checks to no-ops:
Caution: patching may break self-checksums. Run static-validation YARA post-patch to ensure binary still loads.
6. Promote
OPSEC (for malware analysis)
- Run in isolated VM w/ NO connectivity to your network — many anti-VM
checks involve DNS / HTTP probes
- Snapshot before run, revert after
- Don't analyze on host w/ persistent creds in browsers
- For commercial protected SW (legitimate analysis), document
authorization to bypass DRM-adjacent protections
Tool cheat sheet
| Tool | Use for | |
|---|---|---|
| ScyllaHide | x64dbg/IDA plugin, neutralizes Windows checks | |
| HideDebugger | Older but still useful x32dbg plugin | |
| Phant0m | OllyDbg-era plugin | |
gdb-peda / pwndbg / gef | gdb plugins w/ anti-debug awareness | |
ltrace / strace | observe library / syscall use | |
frida | runtime hooking, can no-op checks dynamically | |
MalwareAnalysisSandbox / Cuckoo | full automated detonation w/ anti-anti-VM | |
unpac.me | community unpack service (engagement-permitting) |
Known exemplars
- Stuxnet: multiple anti-VM checks (Siemens PLC env detection)
- Conti / Ryuk: PEB checks, sleep timer skipping, mouse-cursor check
- Most banking trojans (Trickbot, Emotet): full Anti-Debug + anti-sandbox + anti-emul
- Cobalt Strike beacons: lighter anti-debug, more anti-AV focus
- iOS / Android packers: ptrace + frida-detect (objection bypasses most)
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/decepticon/decepticon/skills/standard/reverser/anti-debug-bypass/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bittersecurity/decepticon/anti-debug-bypass)