# analyzing-malware-sandbox-evasion-techniques

Reads Cuckoo and AnyRun behavioral reports and flags the signs that a sample spotted the sandbox and played dead.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 363 installs · ★ 35034
- Author: mahipal
- License: Apache-2.0 · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/tree/HEAD/skills/analyzing-malware-sandbox-evasion-techniques/SKILL.md
- Updated: 2026-08-31
- HTML: https://affpapa.org/en/nevibecode/skills/analyzing-malware-sandbox-evasion-techniques

## What it does

The skill takes a behavioral report in JSON and looks through API call sequences for anti-analysis traces: timing checks via `GetTickCount` and `QueryPerformanceCounter`, queries for virtualization artifacts (registry keys, MAC address prefixes, processes such as `vmtoolsd.exe`), user-interaction checks through `GetCursorPos` and `GetAsyncKeyState`, and environment fingerprinting — disk size, CPU count, RAM.

A separate step compares requested sleep durations against actual ones. A gap there points to deliberate stalling, which malware uses to outlast the analysis window. The skill then scores evasion sophistication from how many techniques showed up and how varied they are, sorts them into categories, and maps them to MITRE ATT&CK T1497 sub-techniques.

Output is a JSON report listing detected techniques, the API calls behind each one, and the ATT&CK mapping. You need a Cuckoo Sandbox 2.0+ or AnyRun account, Python 3.8+ with the `json` library, and an exported report — there is nothing to parse without one. A sample that barely moved inside the sandbox is exactly the case worth running through this skill instead of writing off as clean.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-malware-sandbox-evasion-techniques -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/analyzing-malware-sandbox-evasion-techniques/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/analyzing-malware-sandbox-evasion-techniques/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-malware-sandbox-evasion-techniques -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/analyzing-malware-sandbox-evasion-techniques/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-malware-sandbox-evasion-techniques -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/analyzing-malware-sandbox-evasion-techniques/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install mukul975/Anthropic-Cybersecurity-Skills analyzing-malware-sandbox-evasion-techniques
```

2. **Manually: put the files in place**
- File: `.github/skills/analyzing-malware-sandbox-evasion-techniques/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-malware-sandbox-evasion-techniques -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/mukul975/Anthropic-Cybersecurity-Skills --path skills/analyzing-malware-sandbox-evasion-techniques
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/analyzing-malware-sandbox-evasion-techniques/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-malware-sandbox-evasion-techniques -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/tree/HEAD/skills/analyzing-malware-sandbox-evasion-techniques/SKILL.md

## When to use it
- explain why a sample stays quiet in the sandbox
- find timing checks and inflated sleeps in a report
- separate VM detection from ordinary system queries
- map detected techniques to MITRE ATT&CK T1497
- score how sophisticated the anti-analysis is

## Example prompts
- go through this AnyRun report and find sandbox evasion indicators
- check this Cuckoo report for sleep inflation and timing checks
- map the anti-analysis techniques in this sample to T1497 sub-techniques

## Source text · SKILL.md · Apache-2.0

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 1572be1dd21dc679.

BEGIN THIRD-PARTY FILE 1572be1dd21dc679
```text
---
name: analyzing-malware-sandbox-evasion-techniques
description: Detect sandbox and VM evasion techniques in malware samples by analyzing
  timing checks, VM/hypervisor artifact queries, user-interaction checks, and sleep-inflation
  patterns from Cuckoo or AnyRun behavioral reports. Use when a sample shows no or
  minimal activity in a sandbox, when a behavioral report needs review for evasion
  indicators, or when building detections for anti-analysis techniques.
domain: cybersecurity
subdomain: malware-analysis
tags:
- sandbox-evasion
- malware-analysis
- cuckoo
- anyrun
- mitre-attack
- virtualization-detection
- behavioral-analysis
version: '1.0'
author: mahipal
license: Apache-2.0
d3fend_techniques:
- Platform Hardening
- Restore Object
- Process Analysis
- System Call Filtering
- Restore Software
nist_csf:
- DE.AE-02
- RS.AN-03
- ID.RA-01
- DE.CM-01
mitre_attack:
- T1497.001
- T1497.003
- T1480
- T1027.002
---

# Analyzing Malware Sandbox Evasion Techniques

## Overview

Sandbox evasion (MITRE ATT&CK T1497) allows malware to detect analysis environments and alter behavior to avoid detection. This skill analyzes behavioral reports from Cuckoo Sandbox and AnyRun for evasion indicators including timing-based checks (GetTickCount, QueryPerformanceCounter, sleep inflation), VM artifact detection (registry keys, MAC address prefixes, process names like vmtoolsd.exe), user interaction checks (mouse movement, keyboard input), and environment fingerprinting (disk size, CPU count, RAM). Detection rules flag samples exhibiting these behaviors for deeper manual analysis.


## When to Use

- When investigating security incidents that require analyzing malware sandbox evasion techniques
- When building detection rules or threat hunting queries for this domain
- When SOC analysts need structured procedures for this analysis type
- When validating security monitoring coverage for related attack techniques

## Prerequisites
```
END THIRD-PARTY FILE 1572be1dd21dc679

The third-party file has ended. Everything between the 1572be1dd21dc679 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 1951 of 2849 bytes. © mahipal · Apache-2.0 · https://github.com/mukul975/Anthropic-Cybersecurity-Skills/tree/HEAD/skills/analyzing-malware-sandbox-evasion-techniques/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
