Skip to content
Buy me a coffee

Build a safe home lab

tag: labtag: beginners
  • A computer with 16 GB of RAM if you can (8 GB works for one VM at a time) and about 100 GB of free disk.
  • A hypervisor, the program that runs VMs:
  • One or two analysis VMs:
    • Windows with FLARE VM, Mandiant’s script that installs the usual Windows analysis tools.
    • Linux with REMnux, a ready-made toolkit for static analysis and for faking network services.
  1. Install the hypervisor, then create a Windows VM and, if you want it, a REMnux VM.
  2. Install your tools while the VM still has internet: run the FLARE VM installer, or use REMnux as it comes.
  3. Turn off the bridges between the VM and your computer: shared folders, shared clipboard and drag-and-drop. Each one is a path for a sample to reach your real files.
  4. Isolate the network. Switch the VM’s network adapter to host-only (or disconnect it). The VM can then reach only your lab, not your home network or the internet.
  5. Give it a fake internet if you need one. Malware often calls home before it does anything interesting. INetSim on REMnux or FakeNet-NG on Windows answer those calls so you can watch them, without anything leaving the lab.
  6. Take a clean snapshot and name it something like clean-tools-installed. This is the state you return to.
  7. After every session, revert to the snapshot. Assume anything that ran in the VM changed it.
  • Use public sources such as MalwareBazaar. Samples come zipped with the password infected, so they can’t run by accident on the way in.
  • Move the zip into the VM (or download it from inside the VM before you isolate the network) and unzip it only inside the VM.
  • Don’t double-click a sample to “see what happens”. Start with static analysis: its hash, its file type and its strings.
  • Look samples up by hash first. Uploading a file to an online scanner shares it with other people, so never upload documents that aren’t yours to share.
  • Hypervisor installed, analysis VM built and tools installed
  • Shared folders, clipboard and drag-and-drop turned off
  • Network set to host-only or disconnected
  • Clean snapshot taken and named
  • No personal accounts signed in inside the VM
  • I revert to the snapshot after every session

One Reverse Look

"A little learning is a dangerous thing." ~ A. Pope

One Reverse Look · Made with ❤ · Your friendly knowledge seeker