The firewall keeps the analysis network off the internet. That’s necessary, but it isn’t the whole design. This post covers the layers inside it, following one sample from the honeypot to the VM where it gets opened.

Layer 1: zipped before it moves

Cowrie saves captured files named by their SHA-256 hash, with no extension. Before anything leaves the VPS, a script zips each new file with the password infected, which is the convention sample-sharing sites like MalwareBazaar use. The password isn’t secrecy. It stops antivirus quarantining the file in transit, and it stops anything opening it by accident.

Layer 2: the Pi stores, never runs

The Raspberry Pi pulls the zips over Tailscale. Here’s a detail that’s easy to miss: a Pi 4 is an ARM Linux computer, and a lot of what SSH honeypots catch is ARM Linux malware (Mirai-style IoT bots ship builds for every architecture). An unzipped sample on the Pi isn’t inert; it’s runnable. So the Pi only ever holds zips, on a mount with noexec, and the pull job copies no symlinks or permissions from the VPS.

On the Proxmox host there are two virtual switches:

  • vmbr0 is wired to the physical port and carries the host’s own management traffic on the analysis network.
  • vmbr1 has no physical port and no IP address on the host. VMs attached to it can talk to each other and nothing else, not even the Proxmox host or the firewall.

REMnux and FLARE-VM live on vmbr1. REMnux plays “the internet” for FLARE-VM using INetSim and fake DNS, so a sample thinks it’s online while every packet stays inside the bridge.

Layer 4: samples go in on a read-only ISO

No file shares, no SSH into the analysis VMs. For each sample:

  1. The zip is copied to the Proxmox host (which never opens it).
  2. The host wraps it in an ISO image with genisoimage.
  3. The ISO is attached to the VM as a virtual CD-ROM.
  4. Inside the VM, the zip is copied off the CD and unpacked.

A CD-ROM is one-way by nature, so there’s no path for anything to flow back out.

Layer 5: snapshots, every time

Each VM has a clean snapshot taken before any sample ever touched it. Every analysis starts with a rollback to clean and ends with one. My notes live outside the VM; I read the Proxmox console in a browser and type into my notes app. Nothing gets copied out.

References