Beginner journey
How to Set Up a Safe Cybersecurity Home Lab on Your Laptop
A home lab is where you are allowed to break things. It lets you practise attacks and defences legally, on machines you own. Here is how to set one up without spending money or putting your home network at risk.
Why every beginner needs a lab
Watching videos teaches you words. A lab teaches you skills. In a lab you can run scans, read logs, break a web app and fix it, all without asking anyone's permission, because every machine belongs to you.
The legal point is serious. Scanning or attacking systems you do not own, without written permission, can be an offence under the Information Technology Act, 2000 in India, even if you "were just learning". A lab removes that risk completely.
What hardware do you need?
You do not need a gaming PC. A practical minimum:
- RAM: 8 GB works for one or two small VMs. 16 GB is comfortable.
- Storage: 50 to 100 GB free space, ideally on an SSD.
- CPU: any recent processor with virtualization support enabled in BIOS or UEFI (often called Intel VT-x or AMD-V).
If your laptop is weaker, use lightweight Linux VMs, run one VM at a time, or use browser based practice platforms and CTFs for a while.
Step by step setup
- Install a hypervisor. VirtualBox is free and runs on Windows, Linux and macOS hosts (check the official site for current Apple silicon support). VMware Workstation and Fusion also offer free personal use editions. Pick one.
- Create a workstation VM. Ubuntu is great for learning basics. Kali Linux provides ready made VM images if you want security tools pre installed.
- Add a target. Good beginner options are OWASP Juice Shop (a deliberately insecure web shop, run with Docker), DVWA (Damn Vulnerable Web Application) or vulnerable VMs from trusted training sources.
- Configure an isolated network. In VirtualBox, use a Host only adapter or an Internal Network for the target. This keeps vulnerable machines off your home WiFi and away from the internet.
- Take a snapshot of each VM in a clean state.
Network isolation, explained simply
Intentionally vulnerable machines are, by design, easy to hack. If you connect one in bridged mode, it becomes a real device on your home network, visible to everything on your WiFi. In the worst case, a misconfigured setup could expose it further.
The safe rule: the vulnerable target should only be able to talk to your attacker or workstation VM. Give your workstation a second adapter with NAT if it needs internet for updates. Disconnect the target from the internet entirely. Draw a small diagram of your lab network in your notes. Interviewers love it when freshers can explain this.
Your first five lab exercises
- Find the IP addresses of both VMs with
ip aand ping one from the other. - Scan your target with nmap and list its open ports. Our nmap own lab guide explains the commands.
- Open the target's web app in the workstation browser and explore every page.
- Capture the traffic between the two VMs with Wireshark.
- Read the target's logs after your scan and see what your activity looked like from the defender side.
That last step is gold. It teaches you both red and blue thinking at the same time.
Good lab habits
- Revert to a clean snapshot before each new exercise.
- Keep a lab notebook: what you tried, what worked, what you learned.
- Update your workstation VM regularly.
- Never store real passwords, personal files or work data inside lab VMs.
- Turn VMs off when you are not using them.
Once your lab is ready, you are set for the rest of this journey. Next, Part 8 covers free certifications that are worth your time.
Frequently asked questions
Can I use a cloud VM instead of my laptop? You can, but be careful. Running intentionally vulnerable machines on the public internet is risky, and many cloud providers have rules about scanning and security testing. For beginners, a local isolated lab is safer and cheaper.
Is it okay to practise on my college or office network? Only with written permission from whoever owns that network. Without it, even a simple scan can get you into serious trouble. Keep your practice inside your own lab.
My laptop only has 8 GB RAM. What should I run? One lightweight Linux workstation and one small target at a time. Close the browser while the VMs run, and use browser based wargames on lighter days.
Educational content, not legal advice. Check official sources before you rely on it. If you have lost money, call 1930 now. Terms