Setting Up a Safe Home Security Lab
Build an isolated playground of virtual machines where you can break things, run malware safely and practise attacks — with zero risk to the real world.
Every skill in the security domain needs somewhere safe to practise. A home lab is a few virtual machines on an isolated network — your sandbox for doing things you must never do on real systems.
What you need
- A hypervisor: VirtualBox or VMware Workstation Player (free), or KVM/Proxmox if you want to go further.
- A host with enough RAM — 16 GB is comfortable for 2–3 small VMs; 8 GB works if you're frugal.
- VM images: a Linux "attacker" (e.g. Kali or plain Debian with tools), and one or more "target" VMs.
The critical part: network modes
Your hypervisor offers several networking modes. For a lab, you care about two:
| Mode | Reaches internet? | VMs see each other? | Use for |
|---|---|---|---|
| Host-only | No | Yes | the isolated lab network |
| NAT | Yes (outbound) | Usually no | pulling updates/tools |
Build your lab on a host-only network so the VMs can talk to each other but cannot reach the internet or your real LAN. Flip a VM to NAT only briefly when you need to install something, then switch it back.
┌─────────── host-only network (isolated) ───────────┐
│ [ attacker VM ] ◀────────▶ [ target VM ] │
└──────────────────────────────────────────────────────┘
(no path to the internet or your home network)Snapshots: your undo button
Before any experiment, take a snapshot. When you've trashed a VM — or detonated something that changed it — restore the snapshot and you're instantly back to a clean state. This single habit is what makes a lab fearless.
Starter experiments
Once isolated and snapshotted, you can safely:
- Practise the exercises from across this roadmap for real (reverse connections, egress filtering, packet captures).
- Run a deliberately vulnerable app like OWASP Juice Shop or DVWA and attack it.
- Study real malware samples — only in a host-only VM you'll revert afterwards.
- Build and break a small network of services to understand how one foothold spreads.
Hygiene rules
- Default to host-only; grant internet only deliberately and temporarily.
- Snapshot before every experiment.
- Never bridge a lab VM straight onto your home LAN.
- Keep anything genuinely malicious off shared folders and USB passthrough.
- When in doubt, revert.
Takeaways
- A home lab is isolated VMs — your consequence-free place to practise everything else.
- Use host-only networking so experiments can't reach the internet or your real network.
- Snapshot before, revert after — that's what makes breaking things safe.
- It unlocks the hands-on exercises in the rest of the roadmap, legally and safely.