Skip to content
Visual explainer 5h to learn 4 steps

Build a home SOC lab

Run an isolated lab with a Windows host, a Linux host and a SIEM collecting their logs.

By Invicly Tech, , in Cyber Security Fundamentals. About 11 minutes to read.

Topic 46 of 49

In short

A home SOC lab is an isolated virtual environment where you can safely generate and analyse security data. A Windows host, a Linux host and a SIEM collecting their logs give you the full detection pipeline on your own machine.

Explained simply

A home SOC lab is a small, private copy of a company network that runs inside your own computer. SOC means security operations centre, the team that watches for attacks. In your lab you play both sides: you create activity on the machines and then try to spot it in the logs.

You need three kinds of virtual machines (VMs), which are computers simulated by software called a hypervisor, such as VirtualBox, VMware Workstation or Proxmox. One Windows VM acts like an employee laptop. One Linux VM acts like a server. One more VM runs the SIEM, the tool that collects and searches logs.

The most important rule is isolation. Your lab must not be able to reach your home network, your work laptop or the internet while you run tests. You put the VMs on a private virtual network that only they share, so nothing you do can escape.

Plan your hardware. A comfortable lab wants about 16 GB of RAM or more and 150 GB of free disk. The SIEM is the hungriest part: an all-in-one Wazuh or Elastic server wants around 8 GB of RAM on its own. If your machine is smaller, run fewer VMs at once.

Press Play on a diagram to walk through it one step at a time.

FlowLab build
  1. Step 1
    Isolated network

    Host-only, no real systems.

  2. Step 2
    Endpoints

    Windows and Linux VMs.

  3. Step 3
    Telemetry

    Sysmon and auth logs.

  4. Step 4
    SIEM

    Wazuh or Elastic collects logs.

SequenceHow one Windows event reaches the SIEM
Windows VM
Wazuh agent
Wazuh server
Dashboard
  1. 1Sysmon writes event 1 (process created)
    Windows VM to Wazuh agent: Sysmon writes event 1 (process created)
  2. 2Agent sends event on TCP 1514
    Wazuh agent to Wazuh server: Agent sends event on TCP 1514
  3. 3Acknowledges receipt
    Wazuh server to Wazuh agent: Acknowledges receipt
  4. 4Decoded, matched, indexed with rule level
    Wazuh server to Dashboard: Decoded, matched, indexed with rule level
  5. 5Analyst search queries the index
    Dashboard to Wazuh server: Analyst search queries the index

In depth

Designing an isolated network

Hypervisors offer several network modes. NAT gives the VM internet access through your host. Bridged puts the VM directly on your home network, which you should never use for an attack lab. Host-only creates a private network shared by the VMs and your host computer. Internal network (VirtualBox) or a custom LAN segment (VMware) connects VMs to each other only, not even to the host.

A practical design: put all lab VMs on one host-only or internal network, for example 10.10.10.0/24, with static IPs. During setup you will need the internet to download updates and packages, so add a temporary NAT adapter, install everything, then disconnect it and take a snapshot. Some people add a small pfSense or OPNsense VM as a router and firewall, which also gives you firewall logs to collect.

Run the lab on a personal machine, never on an employer's laptop or network, and never point lab tools at systems you do not own.

LayersA simple lab layout
  1. 1
    Your physical computer

    Hypervisor, no tools aimed outward

  2. 2
    Internal lab network 10.10.10.0/24

    No route to home network or internet

  3. 3
    SIEM VM 10.10.10.10

    Wazuh or Elastic, 4 vCPU, 8 GB RAM

  4. 4
    Windows VM 10.10.10.20

    Sysmon plus SIEM agent

  5. 5
    Linux VM 10.10.10.30

    SSH, auth logs, SIEM agent

Choosing a SIEM for the lab

Wazuh is free and open source. Its all-in-one install script sets up the server (which analyses events with its own rules), an OpenSearch-based indexer and a web dashboard on one VM. Agents send events to the server on TCP port 1514 and enrol on TCP 1515. It ships with many ready rules, including ones mapped to MITRE ATT&CK, so you see alerts quickly.

Elastic Security uses Elasticsearch and Kibana, with Elastic Agent managed centrally through Fleet. It has a strong query language and a large prebuilt detection rule set. Splunk offers a free licence limited to a small daily ingest volume, which suits a lab and teaches SPL, a language many SOCs use. Security Onion bundles network monitoring (Suricata and Zeek) with Elastic for a network-focused lab.

Pick one and go deep. Employers care more that you can ingest, search, detect and investigate than which brand you used.

  • Wazuh: fastest route to alerts, good ATT&CK tagging
  • Elastic: strong search and prebuilt rules
  • Splunk free licence: learn SPL
  • Security Onion: network monitoring focus

Making Windows produce useful logs

A fresh Windows install logs surprisingly little. Fix three things. First, install Sysmon from Microsoft Sysinternals with a community configuration, such as the SwiftOnSecurity config or Olaf Hartong's sysmon-modular. Sysmon writes to the Microsoft-Windows-Sysmon/Operational log: process creation (event 1), network connections (3), file creation (11), registry changes (12 to 14) and DNS queries (22).

Second, turn on advanced audit policy for logon events and process creation, and the group policy setting that includes command lines in event 4688. Third, enable PowerShell Script Block Logging so event 4104 records scripts.

Then tell the SIEM agent to read the Sysmon channel. In Wazuh this is a localfile block in the agent's ossec.conf with log_format eventchannel. For Windows evaluation licences, Microsoft offers time-limited evaluation copies of Windows 11 Enterprise and Windows Server, which are fine for a lab.

Linux logs and keeping time in sync

On the Linux VM, the most useful sources are authentication logs (/var/log/auth.log on Debian and Ubuntu, /var/log/secure on RHEL family, or the systemd journal), auditd for detailed process and file auditing, and any web server logs if you run a service. Install the SIEM agent and confirm it reads these.

Time matters more than beginners expect. If the Windows VM clock is five minutes off, your timeline will show effects before causes. Make every VM sync with the same time source (the SIEM VM can act as an NTP server on the isolated network) and store or display times in UTC.

Finally, take snapshots. Make a clean baseline snapshot of every VM after setup and before any test. Name them clearly, for example win11-baseline-sysmon, so you can roll back in seconds.

  • timedatectl shows Linux time sync status
  • w32tm /query /status shows Windows time sync
  • Snapshot after setup, before every test

Learn it in 4 short steps

About 1h 15m each. Track them with a timer in your plan.

  1. 1
    Create an isolated virtual network~1h 15m
  2. 2
    Deploy Windows and Linux VMs~1h 15m
  3. 3
    Install a SIEM like Wazuh or Elastic~1h 15m
  4. 4
    Forward Sysmon and auth logs~1h 15m

Key points

  • Keep the lab isolated from real networks.
  • Include at least one Windows and one Linux endpoint.
  • Forward Sysmon and auth logs into the SIEM.
  • Snapshot VMs so you can reset cleanly.

Key terms

Tap a card to flip it. 0/4 known

Examples

Install Sysmon and forward it to Wazuh

On the Windows VM, open an admin PowerShell. Step 1: download Sysmon from the official Sysinternals site and a community config file into a folder. Step 2: install Sysmon with the config. Step 3: check that events appear in the Sysmon log. Step 4: add the Sysmon channel to the Wazuh agent configuration and restart the agent. Step 5: open the Wazuh dashboard, filter on the Windows agent, and run notepad.exe to see a process creation event arrive.

powershell
.\Sysmon64.exe -accepteula -i .\sysmonconfig.xml
Get-WinEvent -LogName 'Microsoft-Windows-Sysmon/Operational' -MaxEvents 3

# Add inside <ossec_config> in
# C:\Program Files (x86)\ossec-agent\ossec.conf :
#   <localfile>
#     <location>Microsoft-Windows-Sysmon/Operational</location>
#     <log_format>eventchannel</log_format>
#   </localfile>
Restart-Service -Name wazuh

Prove the lab is isolated

Before any test, check isolation from inside each VM. Step 1: from the Windows VM, ping the SIEM VM (should work) and a public address like 1.1.1.1 (should fail). Step 2: try to reach your home router's IP (should fail). Step 3: on Linux, check the routing table has no default route to the outside. Step 4: write the results in your lab notes with the date. This takes two minutes and is the most important safety check in the whole capstone.

bash
ping -c 2 10.10.10.10        # SIEM: should reply
ping -c 2 -W 2 1.1.1.1       # internet: should fail
ping -c 2 -W 2 192.168.1.1   # home router: should fail
ip route                     # no default route expected
curl -m 5 https://example.com || echo "no internet: good"

Quick reference

  • Never use bridged networking for an attack lab; use internal or host-only
  • Add NAT only to install updates, then remove it and snapshot
  • Wazuh agents use TCP 1514 for events and 1515 for enrolment
  • Sysmon log: Microsoft-Windows-Sysmon/Operational; key events 1, 3, 11, 13, 22
  • Enable command line in 4688 and PowerShell Script Block Logging (4104)
  • Linux auth: /var/log/auth.log (Debian, Ubuntu) or /var/log/secure (RHEL)
  • Sync all VM clocks to one source and view times in UTC
  • Snapshot names should say what state they hold, e.g. win11-baseline-sysmon

Quick quiz

Pick an answer to see if you're right and why.

Question 1

1Which VM network mode should you avoid for an attack lab?

Question 2

2Which Sysmon event ID records process creation?

Question 3

3Your timeline shows a file being run before it was downloaded. What is the most likely lab problem?

Question 4

4Why install the SIEM agent's internet packages and then remove the NAT adapter?

0/4 answered

Practice exercises

Try each one yourself first. Use the hint if you get stuck, then compare with the solution.

  1. Exercise 1easy

    Draw your lab plan: list each VM with its OS, IP, RAM, role and which logs it sends. Check the total RAM fits your computer with 4 GB left for the host.

  2. Exercise 2medium

    Install Sysmon with a community config on the Windows VM and confirm in the SIEM that you can see event IDs 1, 3 and 22 from that host.

  3. Exercise 3hard

    Add a pfSense or OPNsense VM as the only router of the lab network, forward its firewall logs to the SIEM via syslog, and show a blocked connection attempt from the Windows VM in the SIEM.

Check yourself

Answer in your head, reveal, then be honest with yourself.

Feel confident about this topic?

Frequently asked questions

Can I build a SOC lab in the cloud instead?
Yes, but watch costs and the provider's rules. Most cloud providers allow testing your own resources, and you must keep instances private and shut them down when idle so you do not leave exposed machines or a large bill.
Do I need a Windows licence for the lab?
Microsoft provides free evaluation versions of Windows 11 Enterprise and Windows Server for a limited period, which are enough for learning. You can rebuild from your notes or snapshots when they expire.
Wazuh or Elastic: which should a beginner pick?
Wazuh gives ready alerts faster with less tuning, which is motivating for beginners. Elastic teaches a search and rule ecosystem many companies use. Either is fine; what matters is finishing the whole pipeline.
What is the minimum computer for a home lab?
16 GB of RAM and an SSD with about 150 GB free can run a SIEM and one endpoint at a time. 32 GB makes running everything together comfortable.

Go deeper

ShareXLinkedInWhatsApp