SimulationLab Infrastruktur
Netzwerk-Topologie, VM-Konfiguration und Firewall-Setup des SimulationLab. Diese Seite erklärt, wie die isolierte Laborumgebung aufgebaut ist und warum bestimmte Architekturentscheidungen getroffen wurden.
:::info [Netzwerk-Isolation]
Alle VMs im LAN (10.50.1.0/24) sind isoliert. Die Firewall-VM routet Traffic ins WAN (10.50.0.0/24) und von dort per NAT ins Internet bzw. zu SOCSuite.
:::
Netzwerk-Topologie
graph LR
subgraph Host["IMVEE Dev Server"]
subgraph WAN["simlab-wan · 10.50.0.0/24 · NAT"]
FW_WAN["Firewall\n10.50.0.10"]
end
subgraph LAN["simlab-lan · 10.50.1.0/24 · Isoliert"]
FW_LAN["Firewall\n10.50.1.1"]
MGMT["simlab-mgmt\n10.50.1.5\nRunner"]
WS["win-server\n10.50.1.10\nAD DC + DNS"]
WD["win-desktop\n10.50.1.20"]
UB["ubuntu-server\n10.50.1.30"]
KALI["kali\n10.50.1.40"]
end
end
SOC["SOCSuite\nsocsuite.dev.imvee.de"]
FW_WAN --- FW_LAN
FW_LAN --- MGMT
FW_LAN --- WS
FW_LAN --- WD
FW_LAN --- UB
FW_LAN --- KALI
FW_WAN -. "NAT" .-> SOC
UB -. "Events + Heartbeat" .-> SOC
WS -. "Events + Heartbeat" .-> SOC
WD -. "Events + Heartbeat" .-> SOCNetzwerk-Segmente
| Segment | CIDR | Zweck |
|---|---|---|
| SimLab WAN | 10.50.0.0/24 | NAT-Segment, nur Firewall-WAN |
| SimLab LAN | 10.50.1.0/24 | Isoliertes VM-LAN |
| Kubernetes | 10.42.0.0/16 | K8s-Pods (kein Konflikt) |
| Docker | 172.17.0.0/16 | Docker (kein Konflikt) |
| Host LAN | 192.168.178.x | Physisches Netz |
Alle VMs im LAN haben statische IPs — kein DHCP.
Szenario-Control-Plane (DEV-1558)
Das Szenario-Triggering hatte vor DEV-1558 drei getrennte Mechanismen:
- hpz600-Systemd-Timer
simlab-scenario-cycle(30-Min-Rotation auf dem KVM-Host) - k3s-Worker
ScenarioSchedulerWorker(SOCSuite-Worker im dev-Cluster, 45-Min-Intervall) - manueller Trigger über die Runner-API auf simlab-mgmt
Seit DEV-1558 (2026-11-21) ist simlab-mgmt die einzige Control Plane:
- WebUI (nginx auf mgmt,
http://192.168.178.127:8080): Übersicht aller Szenarien, manuelles Triggern mit Host-Auswahl, editierbare Scheduler-Intervalle, Systems-Ansicht (Agent-Status + Missionen) - Scheduler im Runner (
config/scheduler.json): pro Szenarioenabled/interval_minutes/hosts; WebUI-Edits werden per GitLab-Commits-API ins Repo committet (versioniert) - Persistenz:
runs.jsonl(Runs-Historie) +systems-status.jsonüberleben Restarts
Die alten Ticker wurden entfernt (DEV-1559): k3s-Worker + k8s-Overlay
scenario-scheduler-patch.yaml (weg), hpz600-simlab-scenario-cycle-Timer/.service
(deaktiviert + entfernt). Alles läuft danach nur noch über die WebUI auf simlab-mgmt.
:::info[Warum simlab-mgmt?]
Die Runner-API + Ansible + Inventory leben bereits auf simlab-mgmt (10.50.1.5). Die WebUI
dort macht die Trigger-Konfiguration zentral, versioniert (Git) und in einer Oberfläche
editierbar — statt drei getrennter Timer, die sich gegenseitig überlappen konnten
(C2-Port-8080-Konflikt: nur ein Szenario kann gleichzeitig laufen).
:::
Vollständige Doku (Zugriff, Funktionen, Scheduler-Konfiguration, Git-Sync, Runner-API): → Szenario-WebUI
Storage
/mnt/data/simulationlab/ ← separates Volume, NICHT Root-Disk
├── pools/ ← libvirt Storage-Pool
│ ├── firewall.qcow2 ← Firewall VM Disk (10 GB)
│ ├── simlab-mgmt.qcow2 ← Management VM Disk (20 GB)
│ ├── ubuntu-server.qcow2 ← Ubuntu VM Disk (20 GB)
│ ├── kali.qcow2 ← Kali VM Disk (30 GB)
│ ├── win-server.qcow2 ← Windows Server Disk (60 GB)
│ └── win-desktop.qcow2 ← Windows 11 Disk (60 GB)
└── images/ ← Basis-Images (read-only)
└── ubuntu-24.04-cloudimg-amd64.imgIaC-Schichten
Terraform (libvirt-Provider)
→ Was existiert: VMs, Netzwerk, Storage-Pool, Cloud-Init-Disk
Ansible
→ Wie es aussieht: OS-Config, Pakete, SSH, SOCSuite-AgentTerraform-Ressourcen
| Ressource | Typ | Beschreibung |
|---|---|---|
libvirt_pool.simulationlab | Storage Pool | /mnt/data/simulationlab/pools |
libvirt_network.simlab_wan | NAT-Netzwerk | 10.50.0.0/24 |
libvirt_network.simlab_lan | Isoliert | 10.50.1.0/24 |
libvirt_domain.firewall | KVM-VM | Firewall + IDS (Ubuntu 24.04) |
libvirt_domain.ubuntu | KVM-VM | ubuntu-server (Ubuntu 24.04) |
libvirt_domain.kali | KVM-VM | Kali Linux (Attack-Tools) |
libvirt_domain.mgmt | KVM-VM | Management-Node / Runner |
libvirt_domain.win_server | KVM-VM | Windows Server 2022 (AD DC) |
libvirt_domain.win_desktop | KVM-VM | Windows 11 Workstation |
libvirt_cloudinit_disk | Cloud-Init | Erster Boot: User, Key, Pakete |
Ansible-Rollen
| Rolle | Zweck |
|---|---|
baseline-linux | OS-Grundkonfiguration, Pakete, SSH |
baseline-windows | Windows-Grundkonfiguration |
firewall | nftables Stateful Firewall + Suricata IDS |
ad-controller | AD DS + DNS + Test-User einrichten |
domain-join | Windows-Workstation der Domain beitreten |
satellite-linux | SOCSuite Agent installieren (Linux) |
satellite-windows | SOCSuite Agent installieren (Windows) |
socsuite-bridge | nginx-Proxy auf localhost (SOCSuite → SimLab) |
mgmt-node | SimLab-Runner (Szenario-Steuerung via API) |
dns-override | /etc/hosts-Patch damit VMs SOCSuite erreichen |
scenario-vulnerable | Verwundbare Services für Detection-Tests |
Verzeichnisstruktur
simulationlab/
├── .yamllint.yml YAML-Lint-Konfiguration (max 160 Zeichen)
├── terraform/
│ ├── main.tf Provider, Storage-Pool, Netzwerke
│ ├── firewall.tf Firewall VM (Ubuntu 24.04, 2 NICs)
│ ├── ubuntu.tf Ubuntu 24.04 VM
│ ├── windows-server.tf Windows Server 2022 VM
│ ├── windows-desktop.tf Windows 11 VM
│ ├── kali.tf Kali Linux VM
│ ├── mgmt.tf Management-Node VM
│ ├── variables.tf Variablen-Definitionen
│ ├── terraform.tfvars Konkrete Werte
│ ├── outputs.tf Outputs (IPs, Status)
│ └── cloud-init/
│ ├── firewall-userdata.yaml
│ ├── firewall-network.yaml
│ ├── ubuntu-userdata.yaml
│ ├── ubuntu-network.yaml
│ └── mgmt-userdata.yaml
├── ansible/
│ ├── site.yml Master-Playbook
│ ├── inventory.ini VM-Inventar mit IPs
│ ├── ansible.cfg Ansible-Konfiguration
│ ├── group_vars/
│ │ ├── all/
│ │ │ └── main.yml Globale Variablen (URLs, Versionen)
│ │ ├── linux.yml Linux-spezifische Variablen
│ │ ├── windows.yml Windows-spezifische Variablen
│ │ └── firewall.yml Firewall-spezifische Variablen (Interfaces)
│ └── roles/
└── scripts/
├── setup-host-portable.sh Host-Setup (einmalig)
├── build-autounattend-iso.sh Windows Autounattend bauen
├── generate-inventory.sh inventory.ini aus Terraform-Outputs
└── deploy-mgmt.sh Management-VM vollautomatisch deployenWeiterführend
- Installation — SimulationLab aufsetzen
- Betrieb — VM-Management und Make-Targets
- Test-Szenarien — Agent-Tests und Szenarien
- Satellite Agent — Agent-Übersicht und Architektur
Architektur-Detail (SimLab)
System Overview
SimulationLab is an Infrastructure-as-Code (IaC) solution for deploying enterprise-grade cybersecurity lab environments. It provides a complete virtualized network infrastructure with Active Directory, firewalls, IDS, and SOCSuite integration for security operations training and testing.
Architecture Diagram
┌─────────────────────────────────────────────────────────────────┐
│ Host System (KVM) │
│ ┌─────────────────┐ ┌─────────────────────┐ │
│ │ SOCSuite │ │ Monitoring │ │
│ │ (Kubernetes) │ │ & Logging │ │
│ │ - IMVEE │ │ - Health Checks │ │
│ │ - OpenSearch │ │ - Metrics │ │
│ │ - Backend │ │ - Performance │ │
│ └─────────────────┘ └─────────────────────┘ │
│ │ │ │
│ ┌────────┴───────────────────────────────────────┴────────┐ │
│ │ Bridge Network (nginx reverse proxy) │ │
│ └────────┬───────────────────────────────────────────────┘ │
│ │ │
│ ┌────────┴───────────────────────────────────────────────┐ │
│ │ SimLab Network │ │
│ │ ┌─────────────────────────────────────────────────┐ │ │
│ │ │ WAN Network (10.50.0.0/24) - NAT to Internet │ │ │
│ │ │ │ │ │ │
│ │ │ ┌─────────────────────────────────────────┐ │ │ │
│ │ │ │ Firewall VM │ │ │ │
│ │ │ │ - nftables (Stateful FW) │ │ │ │
│ │ │ │ - Suricata (IDS) │ │ │ │
│ │ │ │ - NAT Gateway │ │ │ │
│ │ │ │ - Logging │ │ │ │
│ │ │ └─────────────────┬───────────────────────┘ │ │ │
│ │ └──────────────────────┼───────────────────────────┘ │ │
│ │ │ │ │
│ │ ┌─────────────────────┼─────────────────────────────┐ │ │
│ │ │ LAN Network (10.50.1.0/24) - Isolated │ │ │
│ │ │ │ │ │ │
│ │ │ ┌─────────────────────────────────────────────┐ │ │ │
│ │ │ │ Windows Server 2022 │ │ │ │
│ │ │ │ - Active Directory DC │ │ │ │
│ │ │ │ - DNS Server │ │ │ │
│ │ │ │ - Test Users & OUs │ │ │ │
│ │ │ │ - SOCSuite Agent │ │ │ │
│ │ │ └─────────────────────────────────────────────┘ │ │ │
│ │ │ │ │ │
│ │ │ ┌─────────────────────────────────────────────┐ │ │ │
│ │ │ │ Windows 11 Desktop │ │ │ │
│ │ │ │ - Domain Joined Workstation │ │ │ │
│ │ │ │ - SOCSuite Agent │ │ │ │
│ │ │ │ - Test Environment │ │ │ │
│ │ │ └─────────────────────────────────────────────┘ │ │ │
│ │ │ │ │ │
│ │ │ ┌─────────────────────────────────────────────┐ │ │ │
│ │ │ │ Ubuntu 24.04 Lab │ │ │ │
│ │ │ │ - Linux Test Environment │ │ │ │
│ │ │ │ - SOCSuite Agent │ │ │ │
│ │ │ │ - Vulnerable Services (optional) │ │ │ │
│ │ │ └─────────────────────────────────────────────┘ │ │ │
│ │ └──────────────────────────────────────────────────┘ │ │
│ └────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────┘Component Architecture
Core Components
1. Infrastructure Layer (Terraform)
- Purpose: VM provisioning, network setup, storage management
- Technology: Terraform with libvirt provider
- Components:
- Virtual machines (KVM/QEMU)
- Virtual networks (isolated segments)
- Storage pools and volumes
- Cloud-init configuration
2. Configuration Layer (Ansible)
- Purpose: VM configuration, service deployment, security setup
- Technology: Ansible automation
- Components:
- Operating system baseline configuration
- Active Directory deployment
- Firewall and IDS setup
- SOCSuite agent deployment
3. Network Architecture
Internet
│
▼
┌─────────────────────┐
│ Host Network │ ← 192.168.x.x (auto-detected)
│ │
│ ┌───────────────┐ │
│ │ SimLab WAN │ │ ← 10.50.0.0/24 (NAT)
│ │ │ │
│ │ ┌─────────┐ │ │
│ │ │Firewall │ │ │ ← 10.50.0.10
│ │ │ VM │ │ │
│ │ └────┬────┘ │ │
│ └───────┼───────┘ │
│ │ │
│ ┌───────┼───────┐ │
│ │ SimLab LAN │ │ ← 10.50.1.0/24 (Isolated)
│ │ │ │ │
│ │ ┌───▼───┐ │ │ ← Gateway: 10.50.1.1
│ │ │Win-SRV│ │ │ ← AD DC: 10.50.1.10
│ │ └───────┘ │ │
│ │ ┌───────┐ │ │
│ │ │Win-11 │ │ │ ← Workstation: 10.50.1.20
│ │ └───────┘ │ │
│ │ ┌───────┐ │ │
│ │ │Ubuntu │ │ │ ← Linux Lab: 10.50.1.30
│ │ └───────┘ │ │
│ └───────────────┘ │
└─────────────────────┘4. Security Architecture
┌─────────────────────────────────────────────────────────────┐
│ Security Layers │
├─────────────────────────────────────────────────────────────┤
│ Network Security │
│ ├─ Network Segmentation (WAN/LAN isolation) │
│ ├─ Stateful Firewall (nftables) │
│ ├─ Intrusion Detection (Suricata) │
│ └─ NAT Gateway (controlled internet access) │
├─────────────────────────────────────────────────────────────┤
│ Access Control │
│ ├─ SSH Key-based Authentication │
│ ├─ Active Directory Authentication │
│ ├─ Role-based Access Control │
│ └─ Password Policy Enforcement │
├─────────────────────────────────────────────────────────────┤
│ Monitoring & Logging │
│ ├─ Centralized Logging (rsyslog) │
│ ├─ Security Event Monitoring │
│ ├─ Performance Metrics │
│ └─ Health Monitoring │
└─────────────────────────────────────────────────────────────┘Data Flow Architecture
1. Deployment Flow
Developer/Operator
│
▼
┌─────────────────────┐
│ setup-host- │ ← Host preparation
│ portable.sh │
└──────────┬──────────┘
│
▼
┌─────────────────────┐
│ detect-site- │ ← Auto-configuration
│ config.sh │
└──────────┬──────────┘
│
▼
┌─────────────────────┐
│ Terraform │ ← Infrastructure
│ (libvirt) │
└──────────┬──────────┘
│
▼
┌─────────────────────┐
│ generate- │ ← Dynamic inventory
│ inventory.sh │
└──────────┬──────────┘
│
▼
┌─────────────────────┐
│ Ansible │ ← Configuration
│ Playbooks │
└─────────────────────┘2. Runtime Communication Flow
SOCSuite Backend ←──────────┐
▲ │
│ (nginx reverse proxy) │
│ │
▼ │
┌─────────────────┐ │
│ Firewall VM │ ←───────┼─── Internet
│ │ │
│ nftables ▲ │ │
│ suricata │ │ │
└──────────────┼──┘ │
│ │
(routing & │
filtering) │
│ │
▼ │
┌─────────────────┐ │
│ LAN VMs │ │
│ │ │
│ ┌───────────┐ │ │
│ │Windows AD │ │ ────────┤
│ └───────────┘ │ │
│ ┌───────────┐ │ │
│ │Windows 11 │ │ ────────┤ SOCSuite
│ └───────────┘ │ │ Agents
│ ┌───────────┐ │ │
│ │Ubuntu Lab │ │ ────────┘
│ └───────────┘ │
└─────────────────┘Technology Stack
Infrastructure
- Virtualization: KVM/QEMU with libvirt
- Infrastructure as Code: Terraform
- Configuration Management: Ansible
- Operating Systems: Ubuntu 24.04, Windows Server 2022, Windows 11
Networking
- Virtual Networking: libvirt virtual networks
- Firewall: nftables (stateful)
- IDS: Suricata with ET Open rules
- DNS: Windows AD DNS + DNS overrides
Security & Monitoring
- Authentication: SSH keys, AD authentication
- Secret Management: Ansible Vault
- Logging: rsyslog, systemd journal
- Monitoring: Custom health checks, performance metrics
Development & Operations
- Version Control: Git
- CI/CD: GitLab CI/CD
- Testing: Bats (Bash testing)
- Documentation: Markdown
Deployment Patterns
1. Single-Host Deployment (Current)
- All components on single KVM host
- Suitable for development, testing, training
- Resource requirements: 16+ GB RAM, 200+ GB storage
2. Multi-Host Deployment (Future)
- Distributed across multiple hosts
- Suitable for larger scale testing
- Enhanced isolation and performance
3. Cloud Deployment (Future)
- Adaptation for cloud providers
- Terraform provider modifications required
- Enhanced scalability options
Security Considerations
Network Security
- Isolation: VMs isolated in dedicated network segments
- Firewall: Stateful packet filtering with logging
- IDS: Network intrusion detection with alerting
- NAT: Controlled internet access through firewall
Access Security
- SSH Keys: Key-based authentication only
- No Password Auth: SSH password authentication disabled
- Vault Encryption: Sensitive data encrypted with Ansible Vault
- Principle of Least Privilege: Role-based access control
Operational Security
- Immutable Infrastructure: Infrastructure as Code
- Version Control: All changes tracked in Git
- Automated Testing: CI/CD with security tests
- Monitoring: Continuous health and security monitoring
Scalability & Performance
Current Limitations
- Single host deployment
- Resource constraints based on host capacity
- Manual scaling processes
Optimization Strategies
- Resource Allocation: Dynamic VM resource sizing
- Storage: SSD storage for better performance
- CPU Pinning: Dedicated CPU cores for critical VMs
- Memory: Hugepages for improved memory performance
Future Enhancements
- Container Integration: Kubernetes deployment options
- Multi-Site: Distributed deployment capabilities
- Auto-Scaling: Dynamic resource allocation
- Cloud Native: Cloud provider integration
Maintenance & Operations
Regular Maintenance
- Security Updates: Regular OS and application updates
- Backup: VM snapshots and configuration backups
- Monitoring: Continuous health and performance monitoring
- Testing: Regular disaster recovery testing
Troubleshooting
- Health Checks: Automated system health verification
- Log Analysis: Centralized logging for issue diagnosis
- Performance Monitoring: Resource usage tracking
- Documentation: Comprehensive troubleshooting guides
This architecture provides a solid foundation for cybersecurity training and testing while maintaining security, scalability, and operational efficiency.