Skip to content

Architecture

Network topology

Lab network topology: OPNsense firewall in front of three zones (MGMT with the SOC tools, TARGET with the monitored Windows and Linux endpoints and a WAF-protected web app, ATTACK with Kali and Caldera), and the firewall policy between them

The whole lab runs on one workstation under VMware Workstation. Each zone is its own virtual network, and all traffic between zones goes through the OPNsense firewall, which sends its logs to Splunk. The workstation also runs the local AI model (Ollama) used for alert triage.

Security zones

Zone Purpose
WAN Internet uplink for OPNsense
MGMT SOC infrastructure: Wazuh, Splunk, n8n, TheHive, MISP
TARGET Monitored endpoints: domain controller, Windows and Linux hosts, and WEB01, a deliberately vulnerable web app (OWASP Juice Shop) behind a ModSecurity WAF with the OWASP Core Rule Set
ATTACK Kali and Caldera adversary systems

Traffic between zones is default-deny. Paths opened for an exercise are logged and time-limited, then closed (disabled or removed) and checked closed afterward.

Hardened 2026-11-09. A review found two ways around the firewall: VMware host adapters on the TARGET and ATTACK networks, and a VMware NAT adapter on Kali, which together gave the attack VM an unfiltered path to TARGET, the host and the home network. Now:

  • Every lab VM has one network adapter, on its own zone. No VMware NAT or bridged adapters; only the firewall's WAN uses NAT.
  • The analyst workstation sits on MGMT only and reaches TARGET and ATTACK through OPNsense. Its access into ATTACK is limited to SSH and the tool APIs on Kali and Caldera.
  • TARGET and ATTACK reach the internet, but not private networks: no other lab zone and not the home network. Only the firewall itself uses the home DNS servers.

Data flow

Data flow. Endpoints, AD and Ubuntu, the WEB01 WAF logs (ModSecurity audit and access log), and OPNsense with Suricata all send to Wazuh. OPNsense also sends to Splunk. Wazuh sends alerts and archives to Splunk, and high-severity alerts to the n8n SOAR. n8n enriches with MISP, VirusTotal and AbuseIPDB, opens a TheHive case and asks for a signed human approval in Slack; only an approved request leads to a scoped response.

  • Two Splunk indexes from Wazuh: wazuh (alerts) and wazuh_archives (every event). Archives are what make hunting for "logged but not alerted" activity possible.
  • Network telemetry takes two paths: Suricata โ†’ Wazuh, and OPNsense firewall logs โ†’ Splunk.
  • Response is gated: n8n can enrich, open cases and recommend, but containment (for example disabling an account or blocking an IP) only runs after an authorized analyst approves it in Slack.