0x0a /setup
A home lab for breaking things
A target you are allowed to attack, isolated so it cannot hurt anything real. Network layout, where to get deliberately vulnerable machines, and the one rule that keeps it safe.
You cannot practise on things you do not own, and you should not practise on things you cannot break. A home lab solves both: deliberately vulnerable targets on a network that touches nothing else. Everything in the other entries here is meant to be rehearsed in a box like this first.
The one rule#
The lab never reaches the internet, and the internet never reaches the lab. Vulnerable machines are vulnerable to everyone, not just you. A deliberately broken box with a public route is someone else's foothold within hours. Isolation is not a nicety here; it is the whole point.
The shape#
Three pieces: a hypervisor, an isolated network, and targets on it.
┌──────────────────────────────────────────────┐
│ host (your machine, stays clean) │
│ └── hypervisor │
│ └── host-only / internal network ─────┼── no route out
│ ├── kali / attacker VM │
│ ├── target: web app │
│ └── target: windows + AD │
└──────────────────────────────────────────────┘The attacker VM and the targets share an internal or host-only network. That virtual switch has no uplink, so packets cannot leave. Give the attacker VM a second, NAT adapter only when you need to pull updates or tools, and disable it again before you start.
The hypervisor#
Any of them work; pick what runs well on your hardware.
- VirtualBox — free, cross-platform, simplest to start.
- VMware Workstation / Fusion — now free for personal use, better performance.
- Proxmox — if you want a dedicated box or old hardware as a permanent lab server.
- KVM/libvirt — the native Linux option, scriptable with
virt-install.
Create one network and set it to host-only (reachable from your host) or internal (VM-to-VM only, the stricter choice). Attach every lab VM to that, and nothing else.
Targets#
Do not build vulnerable machines by hand when the community has made good ones:
| Target | What it teaches |
|---|---|
| Metasploitable 2/3 | Classic network and service bugs |
| OWASP Juice Shop | Modern web app flaws, scored |
| DVWA | Web bugs with a difficulty dial |
| VulnHub images | Full boot-to-root machines |
| GOAD (Game of Active Directory) | A realistic multi-host AD lab |
Download, import, attach to the isolated network, snapshot, go. The snapshot is what makes a lab worth having: break the box, learn from it, roll back in seconds, try the next approach.
Beyond the local box#
When the local lab gets small, the hosted platforms give you fresh targets and a legal scope without any setup:
- Hack The Box and TryHackMe — guided and unguided machines, connect over their VPN.
- PortSwigger Web Security Academy — free, the best structured web-bug training there is.
- Public bug-bounty programs — real targets, but only ever within the published scope. The scope is the authorisation; outside it there is none.
A reusable layout#
$ mkdir -p ~/lab/{isos,vms,loot,notes}Keep images in isos, per-target notes in notes, and anything you extract in loot. Treat the
lab like a real engagement — same note-taking, same discipline — and the habits are already built
when a real one arrives.
The lab exists so that the only place you ever run an untested technique is a machine you are free to destroy. Keep it isolated, keep snapshots, and break as much as you like.