Building a Defender Home Lab

Set up a small, isolated lab with endpoints, logging and a SIEM so you can practise detection and response safely.

Intermediate · about 10 hours · difficulty 2/5

Learn first: Log Sources and Telemetry

A home lab is where theory turns into skill. For defenders, the goal is a small environment that generates realistic logs you can collect, search and investigate, all on hardware you control.

A practical starter design

  • Hypervisor: VirtualBox, VMware Workstation Player, Proxmox or Hyper-V. 16 GB RAM is comfortable; 8 GB works with fewer VMs.
  • Network: an isolated or NAT network, with pfSense or OPNsense as a lab firewall if you want segmentation practice.
  • Endpoints: a Windows VM with Sysmon and a Linux server VM with auditd.
  • Directory: an optional Windows Server domain controller to practise Active Directory logging.
  • SIEM: Splunk Free, Elastic, Wazuh or Security Onion.

Generating useful data

  • Perform normal admin tasks: create users, install software, change groups.
  • Replay public sample datasets and PCAPs from training sites.
  • Use Atomic Red Team tests, which are small, documented simulations mapped to MITRE ATT&CK, only in your isolated lab, to check whether your detections fire.

Keep it safe and tidy

  • Isolate lab networks from your home network and never expose lab services to the internet.
  • Snapshot VMs before changes so you can roll back.
  • Document the lab in a diagram and README; this becomes portfolio material.

Pitfalls

  • Spending weeks building infrastructure and never investigating anything.
  • Running untrusted samples outside an isolated setup.

Good enough to move on: you have at least one Windows and one Linux VM shipping logs to a SIEM, and you can find a new user creation event within minutes.

Key concepts

  • Hypervisor and resources
  • Isolated lab networking
  • Windows endpoint with Sysmon
  • Linux server with auditd
  • SIEM of your choice
  • Lab domain controller
  • Atomic Red Team for detection testing
  • Snapshots and documentation

Mini project

Build the starter lab, publish a diagram and README on GitHub, then run two Atomic Red Team tests and show screenshots of your SIEM detecting (or missing) each one with notes on improvements.

Check yourself

Why should a defender home lab be isolated from your main home network?

Free resources