Übersicht
SimulationLab - Enterprise Test Environment
SimulationLab ist eine realistische Enterprise-Netzwerk-Umgebung mit Windows AD, Firewall und IDS, die per Terraform + Ansible bereitgestellt wird, um SOCSuite Satellite-Agenten unter echten Bedingungen zu testen.
Was ist neu (v2.0)
- Netzwerk-Segmentierung: WAN (10.50.0.0/24) + LAN (10.50.1.0/24)
- Firewall + IDS: nftables Stateful Firewall + Suricata IDS
- Active Directory: Windows Domain Controller mit DNS
- Domain-Joined Workstations: Realistische Enterprise-Umgebung
- Statische IPs: Kein DHCP, alle IPs per Cloud-Init/Autounattend konfiguriert
Architektur
flowchart LR
subgraph HOST["IMVEE Dev Server"]
subgraph IAC["Automatisierung"]
TF["Terraform\nVMs erstellen"]
ANS["Ansible\nVMs konfigurieren"]
end
subgraph NET["Virtuelles Netzwerk"]
FW["Firewall\nnftables + Suricata"]
MGMT["simlab-mgmt\nRunner"]
UB["Linux-System\nUbuntu 24.04"]
WS["Windows Server 2022"]
WD["Windows 11 Arbeitsplatz"]
end
subgraph STG["Speicher"]
POOL[("VM-Festplatten")]
IMG[("Installations-Images")]
end
end
subgraph PLAT["SOCSuite Plattform"]
OS[("Ereignisdatenbank")]
end
TF -->|"erstellt"| FW
TF -->|"erstellt"| MGMT
TF -->|"erstellt"| UB
TF -->|"erstellt"| WS
TF -->|"erstellt"| WD
ANS -->|"konfiguriert"| FW
ANS -->|"konfiguriert"| MGMT
ANS -->|"konfiguriert"| UB
ANS -->|"konfiguriert"| WS
ANS -->|"konfiguriert"| WD
UB -.->|"Testereignisse"| OS
WS -.->|"Testereignisse"| OS
WD -.->|"Testereignisse"| OSVMs im Detail
| VM | OS | IP | vCPU | RAM | Disk | Rolle |
|---|---|---|---|---|---|---|
| firewall | Ubuntu 24.04 | 10.50.1.1 | 2 | 2GB | 10GB | Gateway + nftables + Suricata |
| simlab-mgmt | Ubuntu 24.04 | 10.50.1.5 | 2 | 2GB | 20GB | Runner + Szenario-API |
| win-server | Windows Server 2022 | 10.50.1.10 | 4 | 4GB | 60GB | AD DC + DNS + Satellite Agent |
| win-desktop | Windows 11 | 10.50.1.20 | 4 | 4GB | 60GB | Domain Workstation + Agent |
| ubuntu-server | Ubuntu 24.04 | 10.50.1.30 | 2 | 2GB | 20GB | Linux Satellite Agent + Tests |
| kali | Kali Linux | 10.50.1.40 | 2 | 2GB | 30GB | Attack-Tools für Szenarien |
Gesamt (Profil medium): 16 vCPU, 16 GB RAM, 200 GB Disk
Quick Start
1. Host vorbereiten
# Einmaliges Setup (benötigt sudo)
make setup
# VM-Passwort bereitstellen: Infisical `simlab-linux-password`
# → lokale Kopie nach .secrets/linux_password (Terraform/Ansible laden es automatisch)2. VMs deployen
# Terraform initialisieren
make init
# VMs erstellen
make apply
# Windows Boot-Order fixen (nach apply)
make fix-boot3. Konfiguration (Reihenfolge wichtig!)
# 1. Firewall zuerst (Gateway muss stehen)
make configure-firewall
# 2. Windows installieren lassen (warten bis Setup fertig)
# Überprüfen: virsh console win-server / win-desktop
# 3. AD Domain Controller einrichten
make configure-ad
# 4. Windows Domain-Join + Baseline
make configure-windows
# 5. Linux VMs konfigurieren
make configure-linux
# ODER: Alles in korrekter Reihenfolge
make configureZugang & Login
SOCSuite Access
| Service | URL | Login |
|---|---|---|
| SOCSuite | https://socsuite.dev.imvee.de | Keycloak-Login (Realm socsuite) |
| SIEM (OpenSearch-Dashboards) | https://siem.dev.imvee.de | Keycloak-Login |
| Keycloak | https://auth.dev.imvee.de | Admin via k8s Secret keycloak-admin-secret |
:::info [Local Development] Für lokale Tests läuft SOCSuite in Kubernetes. Port-Forward zum Zugriff:
kubectl port-forward -n imvee-dev svc/backend 8080:8080:::
VM Access
# SSH zu VMs (Linux, Passwort-Auth)
ssh ubuntu@10.50.1.1 # Firewall
ssh ubuntu@10.50.1.30 # ubuntu-server
ssh kali@10.50.1.40 # Kali
# Passwort: Infisical `simlab-linux-password` (lokale Kopie: .secrets/linux_password)
# Windows (über RDP)
# Username: Administrator
# Passwort: Infisical `simlab-windows-password` (lokale Kopie: .secrets/windows_admin_password)Windows Domain
| Parameter | Wert |
|---|---|
| Domain | simlab.dev.imvee.de |
| Admin | Administrator@simlab.dev.imvee.de |
| DNS | 10.50.1.10 (Domain Controller) |
Agent Status prüfen
1. Agents in SOCSuite
# SOCSuite Web UI → Agents → Status
# Oder API:
curl -H "Authorization: Bearer <token>" \
https://socsuite.dev.imvee.de/api/v1/agents2. Agent Logs
Windows (win-server, win-desktop):
# Service Status
Get-Service IMVEESatellite
# Logs
Get-EventLog -LogName Application -Source "IMVEE"Linux (ubuntu-server):
# Service Status
sudo systemctl status imvee-satellite
# Logs
sudo journalctl -u imvee-satellite -f3. OpenSearch Integration
# Pod-IP + Passwort aus k8s-Secret
OSIP=$(kubectl get pod opensearch-0 -n imvee-dev -o jsonpath='{.status.podIP}')
OSPASS=$(kubectl get secret opensearch-secret -n imvee-dev -o jsonpath='{.data.OPENSEARCH_PASSWORD}' | base64 -d)
# Index prüfen
curl -sk -u "admin:$OSPASS" "https://$OSIP:9200/_cat/indices"
# Events suchen
curl -sk -u "admin:$OSPASS" -H "Content-Type: application/json" \
"https://$OSIP:9200/imvee-satellite-*/_search?q=host.hostname:win-server":::info [SIEM-UI]
Alternativ via Browser: https://siem.dev.imvee.de (OpenSearch-Dashboards, Keycloak-Login).
Die Satellite-Agenten senden ihre Events über das SOCSuite-Backend (API_URL=https://socsuite.dev.imvee.de/api/v1) an OpenSearch.
:::
Troubleshooting
VM-Status prüfen
# VM-Status
make status
# VM-Console (für Windows Installation)
virsh console win-server
# Netzwerk-Status
virsh net-list --all
virsh net-dhcp-leases simlab-wanNetzwerk-Konnektivität
# Von Firewall zu Internet
ssh ubuntu@10.50.1.1
ping 8.8.8.8
# Von Windows zu Domain Controller (in Windows VM)
nslookup simlab.dev.imvee.de
ping 10.50.1.10Agent-Konfiguration
# Windows: Config-Test
& "C:\Program Files\IMVEE Satellite\imvee-satellite.exe" --config-test
# Linux: Config-Test
sudo /usr/local/imvee-satellite/imvee-satellite --config-testDevelopment & Debugging
Firewall Logs
# Auf Firewall VM
ssh ubuntu@10.50.1.1
# nftables Logs (denied packets)
sudo tail -f /var/log/nftables.log
# Suricata IDS Logs
sudo tail -f /var/log/suricata/eve.json | jq '.'Agent-Enrollment
Der Enrollment-Token wird bei make configure-linux als Extra-Var satellite_enrollment_token
übergeben. Token-Quellen (Tokens sind kurzlebig):
# Option A: Token manuell in der SOCSuite UI erstellen (Settings → Agents → Tokens)
# Option B: Token via Script erzeugen (SOCSuite-API, schreibt enroll.env)
ENV_NAME=dev bash scripts/gen-enrollment-token.sh
# Manuell deployen mit Token
ENROLLMENT_TOKEN=<TOKEN> bash scripts/deploy-agents.shPost-Deployment Checklist
- Alle VMs erreichbar (SSH/RDP)
- Firewall routet LAN ↔ WAN
- DNS funktioniert (simlab.dev.imvee.de)
- Windows Domain-Join erfolgreich
- Satellite Agents installiert und konfiguriert
- Agents registriert in SOCSuite
- Logs fließen nach OpenSearch
- IDS Alerts werden generiert
:::warn [Known Issues]
- DNS Resolution: Vollständig gelöst via
dns-override-Ansible-Rolle — VMs erreichen SOCSuite - Binary Size: Windows Binary ist groß (45MB) aber funktional :::