To build a cybersecurity home lab, start with a PC that has 16 GB of RAM and a CPU with virtualization support, install VirtualBox or Proxmox, and create an isolated virtual network with no route to your home network. Add Kali Linux as the attacker, a vulnerable target such as Metasploitable or OWASP Juice Shop, and a detection tool such as Security Onion. Snapshot everything before you test, and never attack systems outside the lab.
Key takeaways
- Start free on your current PC with VirtualBox, Kali and one vulnerable target.
- Isolation comes first: lab machines must have no route to your home network or the internet.
- A detection tool such as Security Onion turns practice into job-ready SOC skills.
Reading about security and doing security are different skills. A home lab closes that gap: a private, isolated environment where you can attack, defend and break systems without legal or financial consequences. It is also the fastest way to turn a course certificate into something you can show an employer.
What is a cybersecurity home lab?
A cybersecurity home lab is a private, isolated computing environment where you can attack, defend and break systems safely. It usually runs as virtual machines on one computer, separated from your home network by a virtual firewall.
The distinction that matters is the goal. If you want blue-team and SOC analyst skills, your lab should skew toward detection tools such as Security Onion. If you want offensive skills, it should skew toward vulnerable targets and an attacker machine. Most beginners need a little of both.
A working lab in 2026 costs between $0 and $1,200 to build, takes roughly one weekend for the basic configuration, and consists of four parts: a hypervisor host, an isolated virtual network, a set of attack and defense virtual machines, and a detection stack. AI Cyber Check's 2026 setup guide reaches the same conclusion. This guide builds all four, in that order.
What hardware do you need for a home lab?
Start with the computer you already own. A machine with a quad-core CPU that supports virtualization extensions (Intel VT-x or AMD-V), 16 GB of RAM and a 500 GB SSD runs a useful beginner lab today.
| Build | Cost | Hardware | What it runs |
|---|---|---|---|
| Starter ($0) | $0 | Your current PC, 16 GB RAM | VirtualBox, Kali, 1–2 targets |
| Recommended ($200–$400) | $200–$400 | Refurbished small desktop, 32 GB RAM, 500 GB SSD | Proxmox, firewall, Kali, targets, detection |
| Advanced ($700+) | $700+ | Used server, 64 GB RAM, VLAN switch | Full enterprise-style network, SIEM, AD lab |
The practical minimum is a quad-core CPU with virtualization support, 32 GB of RAM and a 500 GB SSD if you can manage it. Security Onion alone wants 8 to 16 GB in production-style deployments, Kali runs comfortably in 4 to 8 GB, and a Windows target wants another 4 to 8 GB. RAM is the resource you will run out of first, so upgrade that before anything else.
Check that virtualization is enabled in your BIOS or UEFI settings before you install anything. Without Intel VT-x or AMD-V enabled, 64-bit virtual machines may not run at all, and the error messages will not tell you why.
Which hypervisor should you choose?
Your hypervisor decision shapes everything else. Three options dominate beginner setups in 2026, and the right one depends on your hardware and your career direction.
VirtualBox is free, beginner-friendly and runs on your existing Windows, Mac or Linux desktop. It is the right starting point if you are unsure whether you will stick with security work. Installing Kali and a Metasploitable target in VirtualBox costs nothing and teaches you most of the same lessons as a dedicated box.
Proxmox VE is the most common recommendation for a permanent lab because it is free, open source and Debian-based, and it exposes the same concepts you will meet in enterprise environments: VLANs, bridges, templates and backups. It needs a dedicated machine, since it replaces the operating system on that host.
VMware Workstation Pro is a polished desktop hypervisor that is free for personal use, and Hyper-V is built into Windows Pro. Both work well, but neither teaches you as much about enterprise infrastructure as Proxmox does.
A reasonable progression is to start on your existing PC with VirtualBox for the first two to four weeks, then move to a dedicated Proxmox box once you know you are committed. Moving a virtual machine between hypervisors is work, so do not over-invest in the first setup.
How do you isolate the lab network?
Build the isolated network before installing any attack tools. This is the step beginners skip, and it is the one that matters most for safety.
The standard beginner topology is a virtual firewall or router — pfSense or OPNsense, both free — sitting between a lab segment and your real home network, with three virtual subnets behind it: an attack segment, a target segment, and a detection segment where Security Onion or a SIEM lives.
- Create an isolated virtual network in your hypervisor, with no bridge to your home LAN and no NAT to the internet for target machines.
- Install pfSense as a virtual machine with two network interfaces: WAN facing your hypervisor, and LAN facing the lab subnet, for example 192.168.50.0/24.
- Give the lab its own subnet and let pfSense handle DHCP and DNS inside the lab only.
- Block lab traffic from reaching your home network with a firewall rule, and allow internet access only for the attacker machine when it needs updates.
- Test the isolation by trying to ping your home router from a lab machine. It should fail.
Use a dedicated lab subnet such as 192.168.50.0/24 so lab addresses are easy to spot in logs. Keep a written network diagram, even a simple one: when something stops working at midnight, the diagram is what saves you.
How do you build the lab, step by step?
Follow these steps in order. Each one is small on its own, and together they give you a working lab in a weekend.
Step 1: Install the hypervisor
Install VirtualBox on your current PC, or Proxmox VE on a dedicated machine. Enable virtualization in BIOS or UEFI first, then confirm the hypervisor can start a 64-bit virtual machine before going further.
Step 2: Install the firewall
Install pfSense or OPNsense as a virtual machine with two interfaces. Configure the LAN interface with a static address such as 192.168.50.1, open the web interface from a machine on the lab network, and confirm the default LAN rules block unsolicited inbound traffic.
Step 3: Install the attacker machine
Install Kali Linux as a virtual machine with 4 to 8 GB of RAM. Kali includes Nmap, Wireshark, Metasploit and hundreds of other tools, and it is the standard attacker platform in courses and certifications. Update it fully before your first exercise.
Step 4: Add vulnerable targets
Add Metasploitable 2 as your first network target and OWASP Juice Shop as your web target. Metasploitable is deliberately vulnerable in many ways and well documented; Juice Shop teaches the OWASP Top 10 in a modern online shop you can break legally. Put both on the isolated lab network only.
Step 5: Add detection
Install Security Onion or Wazuh on the detection segment. Security Onion bundles Suricata, Zeek and Elastic, and it watches lab traffic for the attacks you launch. This is the part of the lab that builds SOC analyst skills, and it is what most beginner labs are missing.
Step 6: Snapshot everything
Take a snapshot of every virtual machine before your first test. Snapshots let you roll a machine back in seconds after you break it, which you will do often. Name snapshots by date and purpose, such as "2026-11-25 clean Kali".
What software goes in the lab?
The table below is the standard beginner stack. Everything listed is free and open source, except the Windows target, which needs a license or an evaluation image.
| Role | Tool | Why it is there |
|---|---|---|
| Hypervisor | VirtualBox or Proxmox VE | Runs all the virtual machines |
| Firewall | pfSense or OPNsense | Isolates the lab and routes lab traffic |
| Attacker | Kali Linux | Nmap, Wireshark, Metasploit in one place |
| Network target | Metasploitable 2 | Deliberately vulnerable Linux server |
| Web target | OWASP Juice Shop, DVWA | OWASP Top 10 practice in a legal target |
| Detection | Security Onion or Wazuh | Suricata, Zeek and log analysis |
| Windows target | Windows 10/11 evaluation VM | Practice against the OS most offices run |
| DNS and ad blocking | Pi-hole | Learn DNS by running your own resolver |
Do not install everything at once. Add one machine, get it working, and practice with it before adding the next. A lab with three working machines teaches more than a lab with ten broken ones.
What should you practice first?
Start with skills that transfer to a first security job. The list below is a sensible first month, in order.
- Recon and enumeration inside the lab only: scan your Metasploitable machine with Nmap, identify open services, and write down what each one does.
- Web application basics: work through OWASP Juice Shop challenges and map each one to the OWASP Top 10.
- Log analysis: launch an attack from Kali, then find it in Security Onion. If you cannot find your own attack in the logs, a real attacker will be invisible too.
- Credential hygiene: practice lockout policies and strong passwords on lab machines, and test password strength with the free password strength checker.
- Patching and hardening: harden a target, then try to break it again and note what changed.
Write up every exercise in a few paragraphs: what you tried, what worked, what the logs showed. Those write-ups become the portfolio that gets you interviewed, and they matter more than the number of rooms you completed. If you need structured learning to go with the lab, our list of the best cybersecurity courses for beginners pairs well with this setup.
How do you keep a home lab safe and legal?
A home lab is legal only while everything you attack is yours and stays inside the lab. Attacking systems you do not own, even ones that look abandoned, is illegal in most countries. Never scan or test your employer's network, your ISP, or anything on the internet without written permission.
Keep lab machines on the isolated network, keep malware samples inside the lab, and never bridge a lab machine to your home LAN. Take snapshots before testing so you can roll back after an infection, and keep the host operating system patched and backed up separately from the lab.
Be careful with credentials too. Use unique, obviously fake passwords inside the lab, and never reuse a real password there. If a lab machine is ever exposed to the internet by mistake, assume it is compromised and rebuild it from a clean snapshot.
What mistakes do beginners make?
The most common mistake is buying hardware before practicing. A $700 server does not make you learn faster than a free VirtualBox setup; it mostly makes you spend a weekend on cabling instead of learning.
Other common mistakes include skipping network isolation, installing ten machines at once and debugging none of them, and never looking at logs. The detection side is where the career value lives: anyone can launch an attack, but finding one in the logs is the skill employers pay for.
Another mistake is treating the lab as a museum. Labs go stale. Rebuild your targets every few months, update Kali and Security Onion, and try a new scenario each time. A lab you rebuild is a lab you understand.
What comes after the beginner lab?
Once the beginner lab feels comfortable, add an Active Directory lab with a Windows domain controller and two clients. That setup mirrors most small enterprise networks and teaches the identity attacks and defenses that dominate real incident reports.
After that, add cloud: a small AWS or Azure free-tier environment, a container lab with Docker, or a network simulation tool such as GNS3 or EVE-NG. Each one adds a skill that shows up in job postings, and each one reuses the isolation habits you built here.
The bottom line
A cybersecurity home lab does not need to be expensive or impressive. It needs to be isolated, working, and used regularly. Start free on your current PC, add a firewall and a detection tool, and practice finding your own attacks in the logs.
Pair the lab with structured learning from our list of the best cybersecurity courses for beginners.
Keep your real accounts safe while you practice by testing passwords with the free password strength checker, and compare hardware options in Cybrary's home lab guide.
Frequently asked questions
How much does a cybersecurity home lab cost?
It can cost nothing. VirtualBox, Kali Linux, Metasploitable and OWASP Juice Shop are all free, so a lab on your current PC costs $0. A dedicated setup with a refurbished small-form-factor desktop with 32 GB of RAM typically costs $200 to $400, and a used server build runs $700 or more.
How much RAM do I need for a cybersecurity home lab?
16 GB of RAM is the practical minimum for a useful lab, and 32 GB is strongly recommended. Kali Linux runs comfortably in 4 to 8 GB, a Windows target needs another 4 to 8 GB, and a detection stack such as Security Onion wants 8 to 16 GB on its own.
Is a cybersecurity home lab legal?
Yes, as long as everything you attack is yours and stays inside your isolated lab. Attacking systems you do not own, even ones that look abandoned, is illegal in most countries. Never scan or test your employer's network, your ISP, or anything on the internet without written permission.
Should I use VirtualBox or Proxmox for my home lab?
Use VirtualBox if you are starting out on your existing PC, because it installs in minutes and costs nothing. Move to Proxmox when you want a dedicated, always-on lab, because it is a bare-metal hypervisor that teaches enterprise concepts such as bridges, VLANs, templates and backups.
What is the best vulnerable machine for beginners?
Metasploitable 2 is the classic first target because it is deliberately vulnerable in many ways and well documented. OWASP Juice Shop is the best web target, because it teaches the OWASP Top 10 in a modern shop you can break legally. Use both: one for network attacks, one for web attacks.
Do I need a separate computer for a home lab?
No. Start on the computer you already own with VirtualBox and two or three virtual machines. Buy a dedicated machine only once you know you will stick with it, usually after two to four weeks of regular practice.
Can I build a cybersecurity home lab on a Raspberry Pi?
You can run lightweight services such as Pi-hole or a small detection sensor on a Raspberry Pi, but it is a poor main lab host. Virtual machines need x86 hardware with virtualization support and plenty of RAM, which a Pi cannot provide.
How do I keep my home lab from infecting my home network?
Put lab machines on an isolated virtual network with no bridge to your home LAN, and place a virtual firewall such as pfSense between the lab and everything else. Take snapshots before testing, keep lab malware samples inside the lab, and never connect a lab machine to your real network.
Sources
- AI Cyber Check — What's the best cybersecurity home lab setup guide for beginners in 2026?
- Cybrary — Building a Cybersecurity Lab Environment at Home
- InnoVirtuoso — Build a Home Lab: Your Safe Hacking, Coding, and Networking Playground at Home
- Undercode Testing — Building A Home Cybersecurity Lab: The Ultimate Guide
- Scrimba — Best Cybersecurity Courses for Beginners (2026 Comparison)
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against 2026 home-lab guides from Cybrary, AI Cyber Check and InnoVirtuoso, and the official documentation for VirtualBox, Proxmox, Kali Linux, pfSense and Security Onion.
How we write and fact-check →