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.

· 2 min read · beginner

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:

ModeReaches internet?VMs see each other?Use for
Host-onlyNoYesthe isolated lab network
NATYes (outbound)Usually nopulling 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.

text
        ┌─────────── 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.

Related

Security intermediate

The Web Vulnerabilities Worth Knowing

The handful of classic web bugs behind most real breaches — injection, XSS, broken access control — explained with the one-line principle that prevents each.

· 2 min read
Security intermediate

Crypto You Actually Need as a Developer

Hashing vs encryption, how to store passwords without regret, what TLS gives you, and the one rule that keeps you out of trouble — don't roll your own.

· 2 min read