singtreb/sword-riding/analyzing-malware-sandbox-evasion-techniques

Claude Code and agent skill by singtreb/sword-riding

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Detect sandbox evasion techniques in malware samples by analyzing timing checks, VM artifact queries, user interaction

Install

npx vskill@latest install singtreb/sword-riding/analyzing-malware-sandbox-evasion-techniques

SKILL.md

The same SKILL.md was published earlier as singtreb/sword-riding/analyzing-malware-sandbox-evasion-techniques.

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

Detection Gaps & Validation

  • The evasion paradox: a clean report can mean total evasion. If the sample fingerprinted the sandbox and exited, the behavioral JSON has nothing to score - absence of malicious API calls is itself a signal, not proof of benignity. Flag "executed for 2s, no activity" as suspicious.
  • Hooked-API analysis misses unhooked checks. Direct syscalls (no ntdll hooks), RDTSC/CPUID timing instead of GetTickCount/QueryPerformanceCounter, and environment-keyed payloads (no VM-artifact API at all - they just fail to decrypt) won't appear in Cuckoo's API trace.
  • Single-sandbox blind spot. One environment can't distinguish "benign" from "evaded"; detonate the same sample across two differently-configured sandboxes (and bare metal) and compare - behavioral divergence is the strongest evasion indicator.
  • Confirm a hit: locate the actual check via static RE (Ghidra: find the VM-artifact string/registry query or timing instruction), patch/NOP it or run on a hardened/bare-metal host, and confirm the payload now detonates.
  • False positives: commercial packers, DRM, anti-cheat, and games legitimately use anti-debug, timing checks, and GetCursorPos. Require multiple correlated evasion techniques plus a malicious payload before classifying as evasive malware.

Prerequisites

  • Cuckoo Sandbox 2.0+ or AnyRun account for behavioral analysis reports
  • Python 3.8+ with json library for report parsing
  • Behavioral report exports in JSON format

Steps

  1. Parse Cuckoo/AnyRun behavioral report JSON files
  2. Extract API call sequences for timing-related functions
  3. Identify VM artifact detection via registry queries and WMI calls
  4. Detect sleep inflation by comparing requested vs actual sleep durations
  5. Flag user interaction checks (GetCursorPos, GetAsyncKeyState patterns)
  6. Score evasion sophistication based on technique count and diversity
  7. Map detected techniques to MITRE ATT&CK T1497 sub-techniques

Expected Output

JSON report listing detected evasion techniques with MITRE ATT&CK mapping, API call evidence, evasion sophistication score, and classification of evasion categories (timing, VM detection, user interaction, environment fingerprinting).

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/singtreb/sword-riding/analyzing-malware-sandbox-evasion-techniques/badge)](https://verified-skill.com/skills/singtreb/sword-riding/analyzing-malware-sandbox-evasion-techniques)

Something wrong with this skill or its page? Tell us.