Skip to content

meltedinhex/analyst-ai-pack / skills/identifying-anti-debugging-techniques

identifying-anti-debugging-techniques

Verified

Identifies and bypasses anti-debugging and anti-analysis checks in malware: PEB flags, debugger-detection APIs, timing checks, and exception tricks, then neutralizes them to continue analysis. Activates for requests to identify anti-debugging, bypass anti-debug checks, or analyze evasion that blocks a debugger.

FileKindSize
LICENSEother340 B
SKILL.mdskill md3.3 KB
references/api-reference.mdmarkdown1.2 KB
scripts/analyst.pyscript2.3 KB

references/api-reference.md

View on GitHub
# API Reference: Identifying Anti-Debugging Techniques

## Overview

`scripts/analyst.py` scans a binary for anti-debug API names and instruction-byte patterns
(rdtsc, int2d, PEB access) and returns findings with brief neutralization guidance. It is a
static scan and never executes the sample.

## Dependencies

| Package | Version | Purpose |
|---------|---------|---------|
| (stdlib) | — | regex, file IO |

## External tools

| Tool | Purpose |
|------|---------|
| x64dbg | Confirm checks at runtime |
| ScyllaHide | Hook and hide common anti-debug checks automatically |

## Core functions

### `scan(path)`
Returns detected API-based checks, instruction-byte patterns, per-finding guidance, and a
likelihood flag.

### `ANTIDBG_APIS` / `BYTE_PATTERNS`
The API-name and instruction-pattern signatures used for detection.

## Usage

```bash
python scripts/analyst.py scan sample.bin
```

## Sources

- Microsoft debug APIs (IsDebuggerPresent, CheckRemoteDebuggerPresent) —
  https://learn.microsoft.com/windows/win32/api/debugapi/
- PEB fields BeingDebugged / NtGlobalFlag (Windows internals documentation)
- Common anti-debug instruction patterns (rdtsc timing, int2d, PEB access)
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 321kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 321kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 321kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 197kUpdated Claude CodeCodexVerifiedInstall