Hybrid SOC simulation: XDR and automation
A hybrid on-premises and Google Cloud security-monitoring lab built on limited hardware. Firewall logs from OPNsense and Google Cloud are centralized in Wazuh, 15+ custom detection rules are mapped to MITRE ATT&CK, and n8n SOAR automates the incident-response workflow.
- Type
- Lab project
- Environment
- Hybrid: on-prem lab + Google Cloud
- Scope
- Authorized lab only; simulated attacks
- Key result
- 15+ custom ATT&CK-mapped detection rules
- Stack
- Wazuh, OPNsense, GCP firewall logs, n8n
Problem
SOC work happens across layers. Firewalls at the network edge and cloud workloads all produce telemetry, and an analyst needs it in one place, turned into alerts that mean something, with a repeatable response. I wanted a single environment where I could practice that whole chain end to end, from collecting logs to detecting and then responding, across both on-premises and cloud infrastructure.
The constraint was hardware: the whole environment had to run on limited resources, so every component had to earn its place.
Architecture & approach
The design follows the path a real alert takes:
- Segment and control the network. OPNsense sits between the internal and external segments and enforces firewall rules, NAT and traffic controls.
- Collect from both worlds. OPNsense firewall logs and Google Cloud firewall logs are shipped into one SIEM, so on-prem and cloud activity can be seen together.
- Detect with intent. Custom Wazuh rules, each mapped to a MITRE ATT&CK technique, turn raw events into alerts that state what an attacker is attempting.
- Respond consistently. n8n SOAR workflows automate the incident-response steps.
- Prove it. Connectivity, firewall controls and detection logic are tested against simulated attack scenarios in the authorized lab.
What I did
- Built a hybrid on-premises and cloud network and security-monitoring environment on limited hardware.
- Deployed Wazuh SIEM/XDR for centralized log collection, monitoring and event analysis.
- Configured OPNsense firewall rules, NAT, traffic controls and connectivity between internal and external network segments.
- Integrated OPNsense firewall logs and Google Cloud firewall logs into the SIEM.
- Developed and validated 15+ custom MITRE ATT&CK-mapped detection rules.
- Automated incident-response workflows using n8n SOAR.
- Tested connectivity, firewall controls and detection logic against simulated brute-force, lateral-movement and phishing scenarios in an authorized lab environment.
Tools
| Tool | Role in the lab |
|---|---|
| Wazuh SIEM/XDR | Centralized log collection, monitoring, event analysis, custom detection rules |
| OPNsense | Firewall rules, NAT, traffic controls, internal/external segmentation; log source |
| Google Cloud | Cloud firewall logs as a second log source alongside on-prem |
| n8n SOAR | Automated incident-response workflows |
| MITRE ATT&CK | Framework every custom rule is mapped to |
Result
15+ custom MITRE ATT&CK-mapped detection rules, developed and validated against simulated brute-force, lateral-movement and phishing scenarios, with on-prem and cloud firewall telemetry centralized in a single Wazuh SIEM and incident response automated through n8n.
Scenarios tested
| Scenario | ATT&CK reference |
|---|---|
| Brute force | T1110 Brute Force (Credential Access) |
| Lateral movement | TA0008 Lateral Movement (tactic) |
| Phishing | T1566 Phishing (Initial Access) |
Lessons learned
- A rule isn't done until it has been tested. Pairing each detection with a simulated scenario showed whether the rule fired, and whether it fired on things it shouldn't.
- Log integration is network work. Getting firewall and cloud logs into the SIEM depended on the same fundamentals as any connectivity problem: segments, NAT and firewall policy.
- Mapping to ATT&CK changes the conversation. An alert that names the technique is faster to triage and easier to explain than one that only names a log pattern.
- Constraints force good design. Limited hardware meant choosing what each component was for, which kept the architecture simple to reason about.