Skip to content

meltedinhex/analyst-ai-pack / skills/detecting-sandbox-evasion-behavior

detecting-sandbox-evasion-behavior

Verified

Detects 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.

FileKindSize
LICENSEother340 B
SKILL.mdskill md2.7 KB
references/api-reference.mdmarkdown1.3 KB
scripts/analyst.pyscript2.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
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated 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: 198kUpdated Claude CodeCodexVerifiedInstall