meltedinhex/analyst-ai-pack / skills/detecting-sandbox-evasion-behavior
detecting-sandbox-evasion-behavior
VerifiedDetects sandbox and analysis evasion techniques in a sample by scanning static strings, imports, and API traces for VM artifact checks, timing/sleep stalls, anti-debug calls, and environment fingerprinting. Activates for requests to detect sandbox evasion, find anti-VM or anti-debug checks, or explain why a sample did not detonate.
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 340 B |
| SKILL.md | skill md | 2.7 KB |
| references/api-reference.md | markdown | 1.3 KB |
| scripts/analyst.py | script | 2.3 KB |
references/api-reference.md
View on GitHub# API Reference: Detecting Sandbox Evasion Behavior
## Overview
`scripts/analyst.py` extracts ASCII and UTF-16LE strings from a sample and matches them against
curated evasion artifact lists (anti-VM, anti-sandbox, anti-debug, timing, fingerprinting),
returning hits grouped by category. It reads bytes statically and executes nothing.
## Dependencies
| Package | Version | Purpose |
|---------|---------|---------|
| (stdlib) | — | regex, JSON, file IO |
## Core functions
### `scan(path)`
Returns categories found, per-category indicator hits, and an `evasion_suspected` boolean.
## Indicator categories
- **anti_vm**: VMware/VirtualBox/QEMU/Xen artifacts and guest tool names.
- **anti_sandbox**: Sandboxie, Cuckoo, analysis tools, telltale sample names/usernames.
- **anti_debug**: `IsDebuggerPresent`, `NtQueryInformationProcess`, etc.
- **timing**: `GetTickCount`, `rdtsc`, `Sleep` stalls.
- **fingerprint**: username/hostname/RAM/disk/CPUID environment checks.
## Usage
```bash
python scripts/analyst.py scan sample.bin
```
## Sources
- MITRE ATT&CK T1497 Virtualization/Sandbox Evasion — https://attack.mitre.org/techniques/T1497/
- MITRE ATT&CK T1622 Debugger Evasion — https://attack.mitre.org/techniques/T1622/
- Common VM/sandbox guest artifacts documented across public anti-analysis research
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |