meltedinhex/analyst-ai-pack / skills/bypassing-anti-vm-and-sandbox-checks
bypassing-anti-vm-and-sandbox-checks
VerifiedBypasses anti-VM and sandbox checks during analysis by locating the specific detection routines (artifact strings, timing, CPUID/hypervisor bit) and planning patches or environment hardening so the sample detonates. Activates for requests to bypass anti-VM checks, defeat sandbox detection, or make an evasive sample run for analysis.
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 340 B |
| SKILL.md | skill md | 2.9 KB |
| references/api-reference.md | markdown | 1.2 KB |
| scripts/analyst.py | script | 2.5 KB |
scripts/analyst.py
View on GitHub#!/usr/bin/env python3
"""Locate anti-VM/sandbox detection routines to plan a bypass.
Scans printable strings and opcode patterns for anti-VM artifacts, timing APIs, CPUID usage, and
environment-fingerprint APIs, reporting offsets to guide patching/hooking. Reads bytes statically;
executes nothing.
"""
from __future__ import annotations
import argparse
import json
import re
import sys
from pathlib import Path
ASCII_RE = re.compile(rb"[\x20-\x7e]{4,}")
ARTIFACT_STRINGS = [b"vmware", b"virtualbox", b"vbox", b"qemu", b"xen", b"vmtoolsd",
b"vboxservice", b"sbiedll", b"sandboxie", b"cuckoo", b"prl_", b"hyperv"]
TIMING_APIS = [b"GetTickCount", b"QueryPerformanceCounter", b"timeGetTime"]
FINGERPRINT_APIS = [b"GetAdaptersInfo", b"GetComputerName", b"GetUserName",
b"GlobalMemoryStatusEx", b"GetSystemInfo", b"EnumProcesses"]
# Opcode anchors: CPUID (0F A2), RDTSC (0F 31).
CPUID = b"\x0f\xa2"
RDTSC = b"\x0f\x31"
def _find(data: bytes, needle: bytes, ci: bool = True, limit: int = 10) -> list[int]:
hay = data.lower() if ci else data
pin = needle.lower() if ci else needle
out = []
start = 0
while len(out) < limit:
idx = hay.find(pin, start)
if idx == -1:
break
out.append(idx)
start = idx + 1
return out
def locate(path: str) -> dict:
data = Path(path).read_bytes()
artifacts = {}
for s in ARTIFACT_STRINGS:
hits = _find(data, s)
if hits:
artifacts[s.decode()] = hits
timing = {s.decode(): _find(data, s, ci=False) for s in TIMING_APIS
if _find(data, s, ci=False)}
fingerprint = {s.decode(): _find(data, s, ci=False) for s in FINGERPRINT_APIS
if _find(data, s, ci=False)}
cpuid_hits = _find(data, CPUID, ci=False, limit=20)
rdtsc_hits = _find(data, RDTSC, ci=False, limit=20)
return {
"anti_vm_artifact_strings": artifacts,
"timing_apis": timing,
"fingerprint_apis": fingerprint,
"cpuid_opcode_offsets": cpuid_hits,
"rdtsc_opcode_offsets": rdtsc_hits,
"evasion_checks_present": bool(artifacts or timing or cpuid_hits or rdtsc_hits),
}
def main(argv: list[str] | None = None) -> int:
parser = argparse.ArgumentParser(description="Locate anti-VM/sandbox checks")
sub = parser.add_subparsers(dest="cmd", required=True)
p = sub.add_parser("locate")
p.add_argument("file")
args = parser.parse_args(argv)
print(json.dumps(locate(args.file), indent=2))
return 0
if __name__ == "__main__":
sys.exit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| planning-and-task-breakdownaddyosmani/agent-skillsBreaks work into ordered tasks. Use when you have a spec or clear requirements and need to break work into implementable tasks. Use when a task feels too large to start, when you need to estimate scope, or when parallel work is possible. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| screenpipethedotmack/claude-memSearch screen and audio history recorded by Screenpipe and optionally save selected context into claude-mem. Use when the user asks to recall desktop activity, a meeting, or something seen in another app through Screenpipe. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| contact-widgetnexu-io/open-designSelf-contained floating chat widget with welcome screen, social links, meeting button, and message input. Single HTML file, zero dependencies. | Stars: 108k | Updated | Claude CodeCodex | Verified | Install |
| meeting-notesnexu-io/open-designMeeting notes page — title bar with attendees, agenda checklist, decisions block, action items table with owners + dates, and a "next meeting" footer. Use when the brief mentions "meeting notes", "minutes", "1:1 notes", "all-hands recap", or "会议纪要". | Stars: 108k | Updated | Claude CodeCodex | Verified | Install |