Skip to content
Back to skills

Detecting Sandbox Evasion Behavior

ASecurity

'Detects sandbox and analysis evasion techniques in a sample by scanning static

  • 22 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 11, 2026
securitypythongobashapisecurity

Works with

  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 11, 2026

npx -y skills add meltedinhex/analyst-ai-pack --skill detecting-sandbox-evasion-behavior --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Detecting Sandbox Evasion Behavior?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Detecting Sandbox Evasion Behavior
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/meltedinhex-detecting-sandbox-evasion-behavior/badge)](https://www.skillsdirectory.com/skills/meltedinhex-detecting-sandbox-evasion-behavior)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: detecting-sandbox-evasion-behavior
description: '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.'
domain: cybersecurity
subdomain: malware-analysis
tags:
  - malware-analysis
  - evasion
  - anti-vm
  - anti-debug
  - sandbox
version: 1.0.0
author: analyst-ai-pack
license: Apache-2.0
mitre_attack:
  - T1497
  - T1497.001
  - T1622
d3fend:
  - D3-DA
  - D3-SDA
references:
  - '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/'
---

# Detecting Sandbox Evasion Behavior

## When to Use

- A sample ran inertly in a sandbox and you suspect evasion.
- You want to enumerate anti-VM, anti-debug, timing, and environment-fingerprinting checks from
  static strings/imports and/or an API trace.

**Do not use** this to conclude a sample is benign — evasion is itself a malicious signal, and
absence of detected checks does not prove there are none.

## Prerequisites

- The sample (read inertly) and optionally a JSON API trace.

## Safety & Handling

- Read bytes statically; never execute the sample to "see if it evades."

## Workflow

### Step 1: Scan for evasion indicators

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

Searches for VM/sandbox artifact strings (`VMware`, `VBOX`, `vmtoolsd`, `sbiedll`, common
sandbox usernames/hostnames), anti-debug APIs (`IsDebuggerPresent`, `CheckRemoteDebuggerPresent`,
`NtQueryInformationProcess`), timing stalls (`Sleep`, `GetTickCount`, `rdtsc`), and CPUID checks.

### Step 2: Categorize techniques

Group hits into anti-VM, anti-debug, anti-sandbox, and timing/stalling categories.

### Step 3: Recommend bypass and report

Suggest analysis adjustments (patch sleeps, hardened VM, hooking) and map findings to ATT&CK.

## Validation

- Detected indicators are grouped by evasion category.
- Findings distinguish static-string evidence from API-trace evidence when both are provided.
- Each category maps to an ATT&CK technique/subtechnique.

## Pitfalls

- False positives from benign software that also queries the environment — corroborate.
- Strings can be obfuscated; absence of plaintext artifacts is not absence of evasion.
- Confusing a hung sample with deliberate stalling without timing evidence.

## References

- See [`references/api-reference.md`](references/api-reference.md) for the scanner.
- ATT&CK T1497 and T1622 (linked in frontmatter).

Files in this skill

  • LICENSE340 B
  • SKILL.md2.7 KB
  • references/api-reference.md1.3 KB
  • scripts/analyst.py2.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.