Build a safe home lab
tag: labtag: beginners
What you need
Section titled “What you need”- 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:
- VMware Workstation Pro or Fusion Pro: free for personal use.
- VirtualBox: free and open source.
- UTM: free, for Apple silicon Macs.
- One or two analysis VMs:
- Install the hypervisor, then create a Windows VM and, if you want it, a REMnux VM.
- Install your tools while the VM still has internet: run the FLARE VM installer, or use REMnux as it comes.
- 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.
- 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.
- 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.
- Take a clean snapshot and name it something like
clean-tools-installed. This is the state you return to. - After every session, revert to the snapshot. Assume anything that ran in the VM changed it.
Getting public samples safely
Section titled “Getting public samples safely”- 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.
Checklist
Section titled “Checklist”- 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
References
Section titled “References”
One Reverse Look
"A little learning is a dangerous thing." ~ A. Pope
One Reverse Look · Made with ❤ · Your friendly knowledge seeker

