Skip to content

Expert · Careers and certifications · topic 42 of 43 · 35 min

Building a home lab and a portfolio

Explanation

A home lab is a small, isolated set of virtual machines on your own computer where you can safely generate logs, practise investigations and test detections. A portfolio is public proof of that work: write-ups, scripts and detection rules on GitHub or a blog. Together they let you show, not just say, that you can do the job.

Why a lab beats another certificate

In interviews, "I set up Sysmon and Wazuh, simulated a brute-force attack on my own Windows VM, and here is the alert and my write-up" is far stronger than "I watched videos about SIEMs". A lab also makes everything in this course real: you see Event 4625 appear because you caused it.

What you need

  • A computer with at least 16 GB of RAM if possible (8 GB works for a very small lab), a modern CPU with virtualisation turned on in the BIOS/UEFI, and 100 GB or more of free disk space.
  • A hypervisor (software that runs virtual machines): Oracle VirtualBox or VMware Workstation Pro (free for personal use).
  • Operating systems: Ubuntu Server or Desktop (free), and a Windows evaluation edition from Microsoft's Evaluation Center (time-limited, free for testing).

A starter blue-team lab

MachineRoleRAM (approx.)
Ubuntu Server with Wazuh (or Splunk Free / Elastic)SIEM: collects and searches logs4–8 GB
Windows 10/11 or Server evaluation with Sysmon and the SIEM agentThe "victim" endpoint that generates logs4 GB
Ubuntu or Kali LinuxThe machine you simulate attacks from, only against your own VMs2–4 GB

Put the VMs on a host-only or internal network, so they can talk to each other but not to your home network or the internet (allow internet only when installing updates). Take snapshots (saved states) so you can roll back after experiments.

bash
$ VBoxManage list vms
"siem-wazuh" {3f6c...}
"win-victim" {9a12...}
"attacker" {b77e...}
$ VBoxManage snapshot "win-victim" take "clean-before-test"
VirtualBox from the command line: list VMs and take a snapshot before an experiment.

Lab exercises that map to jobs

  1. Brute force: from the attacker VM, try wrong passwords against the Windows VM (RDP or SMB) and find the 4625 events and the SIEM alert. Then turn on account lockout and see 4740.
  2. Persistence: create a scheduled task on the Windows VM yourself, and find it in Sysmon and Security logs (4698).
  3. Phishing analysis: analyse sample phishing emails from legal practice platforms; extract headers and IOCs.
  4. Detection: write a Sigma rule for one behaviour, convert it, and test it.
  5. Python: write a script that parses exported logs and prints a summary.
Careful: Never download real malware to your personal computer, and never point lab attacks at anything outside your lab network. For malware analysis practice, use the guided, legal blue-team platforms (such as LetsDefend, CyberDefenders, Blue Team Labs Online and TryHackMe), which provide safe, prepared data.

Building a portfolio

  • A GitHub profile with: your Python scripts from this course, Sigma rules, lab setup notes.
  • Write-ups: one page per investigation: scenario, evidence, timeline, verdict, what you would improve. Use made-up or provided data only, never real company data.
  • A short blog or LinkedIn posts explaining what you learned in plain words.
  • Completion badges from practice platforms, listed honestly as practice, not as jobs.

Common mistakes

  • Bridged networking, putting a deliberately weak VM on your home Wi-Fi.
  • Spending weeks on lab hardware and never writing up results.
  • Copying other people's write-ups. Interviewers ask follow-up questions.
  • Publishing screenshots that contain your real IP address, passwords or employer data.

Need help?

Stuck on a word or an idea? Search this course, or every course, and jump straight to the explanation or a worked question.

Try:

Watch the lesson

Building a home lab and a portfolio · 1/6

Cause it · See it · Explain it

A home lab lets you see real logs because you caused them.

Prefer a video by a teacher? Find free videos on “build a cybersecurity home lab wazuh sysmon virtualbox SOC analyst” on YouTube ↗

In real life: The write-up that got an interview

Sneha from Nagpur published a two-page write-up: "Detecting password spraying in my home lab". It showed her lab diagram, the 4625 events with Sub Status 0xC000006A, her Wazuh rule, the alert, a timeline, and what account lockout changed. A SOC manager at a Pune MSSP saw it on LinkedIn and invited her to interview. Most of the interview was a discussion of that write-up.

Practice (0/3 done)

Task 1 · Question

Which network mode keeps lab VMs talking to each other but away from your home network?

Task 2 · Code · Python

Write lab_fits(vms, host_ram_gb, reserve_gb) where vms is a dict of VM name → RAM in GB. Return True if the total VM RAM plus reserve_gb (left for the host OS) is at most host_ram_gb. Write also largest_vm(vms) returning the name of the VM with the most RAM.

Task 3 · Practice

Build the starter lab (or the smallest version your computer allows). Generate failed logons on the Windows VM yourself, find them in the SIEM, and publish a one-page write-up on GitHub or a blog.

Quick quiz

Question 1

1.What is a hypervisor?

Question 2

2.Why take a snapshot before an experiment?

Question 3

3.Where should you get a Windows VM for your lab legally?

Question 4

4.What should a portfolio write-up never contain?

Question 5

5.Where can you safely practise malware analysis as a beginner?

Read more (free)

Open a question to see the answer and why. The first ones are this topic's own quiz, so try the quiz above before you peek.

What is a hypervisor?

Answer: Software that runs virtual machines

VirtualBox and VMware Workstation are hypervisors.

Why take a snapshot before an experiment?

Answer: To roll back to a clean state afterwards

Snapshots save a known-good state.

Where should you get a Windows VM for your lab legally?

Answer: Microsoft's Evaluation Center (time-limited evaluation)

Microsoft offers free, time-limited evaluation editions for testing.

What should a portfolio write-up never contain?

Answer: Real company data, passwords or personal data

Use made-up or provided data only.

Where can you safely practise malware analysis as a beginner?

Answer: Guided legal platforms with prepared data, like LetsDefend or CyberDefenders

Guided platforms provide safe, legal exercises.

The most important property of a practice lab is…Related

Answer: Isolation from real systems and the internet

Isolation keeps your attacks safe and legal.

From Why you need an isolated lab

A portfolio is valuable because it…Related

Answer: Shows real, documented ability and communication

It is evidence of how you work and think.

From Building a portfolio and getting hired

What must never be pushed to a public GitHub repository?Related

Answer: API keys and personal data

Secrets and personal data in public repos are a serious risk.

From Portfolio, projects and interviews

What should NEVER be in your public Ansible GitHub repo?Related

Answer: Plain-text passwords or vault password files

Use vault, and keep password files out of Git.

From Careers, salaries in India and your next steps

Pass the quiz (60% or more) or mark this topic as done when you are ready.

Your progress is saved on this device only.

Next steps

  1. 1 more topic in “Careers and certifications” before its exam: Interviews, CVs and honest salary expectations.
  2. Module 10 exam: Careers and certifications · 11 questions · 15 min, without help. 4 topics of this module still to finish first.
  3. 43 topics left in the course before the final exam.

← Previous: Certifications: what, when and why