Setting up an isolated malware analysis lab

From meltedinhex/analyst-ai-pack · View interactive version

Setting up an isolated malware analysis lab is an AI agent skill from the GitHub repository meltedinhex/analyst-ai-pack. Builds a safe, isolated environment for detonating and analyzing malware using virtualization, host-only or simulated networking, and snapshotting. Activates for requests about creating a malware lab, sandbox VM, isolated analysis environment, or safe detonation setup.

How to use this skill

Skill file

Setting Up an Isolated Malware Analysis Lab

When to Use

production systems or the internet.

Do not use this as guidance for detonating samples on a host OS or a cloud VM with live

egress; that risks self-spreading malware escaping. Use a dedicated, network-isolated

hypervisor instead.

Prerequisites

type-1 host. At least 16 GB RAM and 200 GB disk for two guests.

traffic.

adapter on the victim.

Safety & Handling

"internet" is simulated by the REMnux guest running INetSim.

detonation; these are escape and contamination paths.

every run.

victim VM.

Workflow

Step 1: Create and harden the victim VM

Install Windows in a new VM, apply analysis tooling, then strip escape paths:

VM settings (victim):
  Network adapter   -> Host-only (vmnet1) or Internal network
  Shared folders    -> Disabled
  Clipboard/DnD     -> Disabled
  USB controller    -> Disabled
  Snapshots         -> enabled

Step 2: Stand up simulated internet on REMnux

On the REMnux guest (same host-only network), give it a static IP and run INetSim so the

victim's DNS/HTTP/SMTP requests are answered locally:

# REMnux guest, e.g. 10.0.0.2 on the host-only network
sudo nano /etc/inetsim/inetsim.conf   # set service_bind_address and dns_default_ip
sudo systemctl start inetsim

Point the victim's DNS and default gateway at the REMnux IP so all resolution and traffic

flow to the simulator.

Step 3: Start packet capture

Capture from the REMnux side so the victim never sees a sniffer:

sudo tcpdump -i eth0 -w /cases/<sample-sha256>.pcap

Step 4: Snapshot, detonate, observe, revert

1. Snapshot victim as "clean-base"
2. Transfer the sample into the victim (read-only ISO or one-way copy)
3. Run procmon / process monitoring, then execute the sample
4. Observe for 3-10 minutes; collect artifacts (pcap, procmon log, dropped files)
5. Revert victim to "clean-base"

Use the helper script to verify a victim VM's adapters are isolated before you detonate.

python scripts/analyst.py --check-config vmx/victim.vmx

Validation

simulated, not real).

persist).

Pitfalls

tooling before isolating, then remove the adapter.

or tailored service responses.

References

and full source list.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.