IMVEEDev Portal

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" .-> SOC

Netzwerk-Segmente

SegmentCIDRZweck
SimLab WAN10.50.0.0/24NAT-Segment, nur Firewall-WAN
SimLab LAN10.50.1.0/24Isoliertes VM-LAN
Kubernetes10.42.0.0/16K8s-Pods (kein Konflikt)
Docker172.17.0.0/16Docker (kein Konflikt)
Host LAN192.168.178.xPhysisches 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:

  1. hpz600-Systemd-Timer simlab-scenario-cycle (30-Min-Rotation auf dem KVM-Host)
  2. k3s-Worker ScenarioSchedulerWorker (SOCSuite-Worker im dev-Cluster, 45-Min-Intervall)
  3. 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 Szenario enabled / 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.img

IaC-Schichten

Terraform (libvirt-Provider)
  → Was existiert: VMs, Netzwerk, Storage-Pool, Cloud-Init-Disk

Ansible
  → Wie es aussieht: OS-Config, Pakete, SSH, SOCSuite-Agent

Terraform-Ressourcen

RessourceTypBeschreibung
libvirt_pool.simulationlabStorage Pool/mnt/data/simulationlab/pools
libvirt_network.simlab_wanNAT-Netzwerk10.50.0.0/24
libvirt_network.simlab_lanIsoliert10.50.1.0/24
libvirt_domain.firewallKVM-VMFirewall + IDS (Ubuntu 24.04)
libvirt_domain.ubuntuKVM-VMubuntu-server (Ubuntu 24.04)
libvirt_domain.kaliKVM-VMKali Linux (Attack-Tools)
libvirt_domain.mgmtKVM-VMManagement-Node / Runner
libvirt_domain.win_serverKVM-VMWindows Server 2022 (AD DC)
libvirt_domain.win_desktopKVM-VMWindows 11 Workstation
libvirt_cloudinit_diskCloud-InitErster Boot: User, Key, Pakete

Ansible-Rollen

RolleZweck
baseline-linuxOS-Grundkonfiguration, Pakete, SSH
baseline-windowsWindows-Grundkonfiguration
firewallnftables Stateful Firewall + Suricata IDS
ad-controllerAD DS + DNS + Test-User einrichten
domain-joinWindows-Workstation der Domain beitreten
satellite-linuxSOCSuite Agent installieren (Linux)
satellite-windowsSOCSuite Agent installieren (Windows)
socsuite-bridgenginx-Proxy auf localhost (SOCSuite → SimLab)
mgmt-nodeSimLab-Runner (Szenario-Steuerung via API)
dns-override/etc/hosts-Patch damit VMs SOCSuite erreichen
scenario-vulnerableVerwundbare 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 deployen

Weiterführend

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

  1. Isolation: VMs isolated in dedicated network segments
  2. Firewall: Stateful packet filtering with logging
  3. IDS: Network intrusion detection with alerting
  4. NAT: Controlled internet access through firewall

Access Security

  1. SSH Keys: Key-based authentication only
  2. No Password Auth: SSH password authentication disabled
  3. Vault Encryption: Sensitive data encrypted with Ansible Vault
  4. Principle of Least Privilege: Role-based access control

Operational Security

  1. Immutable Infrastructure: Infrastructure as Code
  2. Version Control: All changes tracked in Git
  3. Automated Testing: CI/CD with security tests
  4. Monitoring: Continuous health and security monitoring

Scalability & Performance

Current Limitations

  • Single host deployment
  • Resource constraints based on host capacity
  • Manual scaling processes

Optimization Strategies

  1. Resource Allocation: Dynamic VM resource sizing
  2. Storage: SSD storage for better performance
  3. CPU Pinning: Dedicated CPU cores for critical VMs
  4. Memory: Hugepages for improved memory performance

Future Enhancements

  1. Container Integration: Kubernetes deployment options
  2. Multi-Site: Distributed deployment capabilities
  3. Auto-Scaling: Dynamic resource allocation
  4. Cloud Native: Cloud provider integration

Maintenance & Operations

Regular Maintenance

  1. Security Updates: Regular OS and application updates
  2. Backup: VM snapshots and configuration backups
  3. Monitoring: Continuous health and performance monitoring
  4. Testing: Regular disaster recovery testing

Troubleshooting

  1. Health Checks: Automated system health verification
  2. Log Analysis: Centralized logging for issue diagnosis
  3. Performance Monitoring: Resource usage tracking
  4. Documentation: Comprehensive troubleshooting guides

This architecture provides a solid foundation for cybersecurity training and testing while maintaining security, scalability, and operational efficiency.

Auf dieser Seite