Security tools · Lesson 11 of 14
Build a safe practice lab
Set up a free home cybersecurity lab with VirtualBox or UTM, Ubuntu and Kali Linux, snapshots and isolated networks, so you can practise safely.
⏱ 20 min🎯 Beginner🧪 Hands-on practice
By the end, you’ll be able to…
- Explain what a virtual machine is and why labs use them
- Choose safe network settings (NAT, host-only, bridged)
- Know where you’re allowed to practise, and where you’re not
Key words
- Virtual machine (VM)
- A full computer simulated inside your real computer.
- Hypervisor
- The software that runs VMs, like VirtualBox, VMware or UTM.
- Snapshot
- A saved moment of a VM you can roll back to.
- Host-only network
- A private network between your computer and its VMs, with no internet access.
- Bridged network
- The VM joins your real network like a separate device. Use with care.
- Scope
- The exact list of systems you’re allowed to test.
Why a lab?
You learn security by doing. But “doing” on systems you don’t own is illegal in most countries and against every school and work policy. A lab solves this: you own everything in it, so you can break, scan and fix things freely, and reset when it all goes wrong.
What you need
- A computer with at least 8 GB of RAM (16 GB is more comfortable) and about 60 GB of free disk space.
- A hypervisor: VirtualBox (free, Windows/Linux/Intel Macs) or UTM (free, Apple Silicon Macs).
- An Ubuntu VM: a normal Linux machine to practise admin and defence.
- Optional: a Kali Linux VM, which comes with security tools pre-installed. Kali also publishes ready-made VM images.
Step by step
- Install your hypervisor from its official site.
- Download the Ubuntu ISO from ubuntu.com and verify its hash.
- Create a VM: 2 CPUs, 4 GB RAM, 25 GB disk, then attach the ISO and install.
- Take a snapshot right after setup, named something like “clean install”.
- Optionally add Kali the same way, or import Kali’s pre-built VM image.
- Put both VMs on the same NAT network or host-only network so they can talk to each other.
Network modes, explained
| Mode | VM can reach | Use it for |
|---|---|---|
| NAT | The internet, through your computer | Updates and downloads |
| NAT network | The internet, plus other VMs on the same NAT network | Labs where VMs talk to each other |
| Host-only | Only your computer and other VMs. No internet | Deliberately vulnerable machines |
| Bridged | Your real home network, like any other device | Rarely. Never for vulnerable VMs |
Rule of thumb: anything intentionally vulnerable stays on host-only. Never bridge a vulnerable VM onto a home, school or work network.
Where else can I practise legally?
- OverTheWire Bandit: Linux wargame.
- picoCTF: beginner-friendly capture-the-flag challenges.
- PortSwigger Web Security Academy: free web hacking labs.
- OWASP Juice Shop: a vulnerable web shop you run locally.
- TryHackMe and Hack The Box: guided platforms with practice targets they own.
🧪 Hands-on
Practice
Tick off your lab setup. Your progress is saved in this browser.
✅ Check yourself
Quick quiz
🔗 Go further
Trustworthy resources
- VirtualBox Free hypervisor for Windows, Linux and Intel Macs.
- UTM Free VMs on Apple Silicon Macs.
- Kali Linux docs Official install guides, including VM images.
- Ubuntu Desktop Official download.