Blue Team home lab: full incident response lifecycle (attack → detect → respond) with Wazuh SIEM + Suricata IDS, CVE-2007-2447 exploitation, MITRE ATT&CK mapping, and an AI-assisted alert triage pipeline.
A self-built home lab simulating a full incident response lifecycle — from initial reconnaissance to detection and remediation — using a real SIEM stack (Wazuh + Suricata) against a deliberately vulnerable target (Metasploitable2).
This project simulates a real-world security incident end-to-end in a controlled home lab environment. The goal was to gain hands-on experience with the complete SOC workflow: attack simulation, network/host-based detection, and incident response — not just tool installation, but a documented, reproducible case study.
Scope covered:
Host-Only Network (192.168.56.0/24)
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ Kali Linux │ │ Wazuh Server │ │ Metasploitable2 │
│ 192.168.56.103 │◄──────►│ 192.168.56.102 │◄──────►│ 192.168.56.104 │
│ (Attacker) │ │ (SIEM + NIDS) │ │ (Target) │
└─────────────────┘ └─────────────────┘ └─────────────────┘
│
▼
Wazuh Manager + Indexer
+ Dashboard + Suricata
All three machines run as VirtualBox VMs on an isolated Host-Only network, with no exposure to the host's production network.
| Component | Details |
|---|---|
| Hypervisor | VirtualBox |
| Attacker | Kali Linux — 192.168.56.103 |
| Target | Metasploitable2 — 192.168.56.104 |
| SIEM / NIDS | Wazuh 4.9.2 + Suricata 8.0.3 — 192.168.56.102 |
| Network | Host-Only, 192.168.56.0/24 |
nmap -sV -sC against the target revealed multiple outdated, vulnerable services typical of Metasploitable2, including:
Selected Samba usermap_script (CVE-2007-2447) as the exploitation vector over more commonly used vectors (e.g. vsftpd 2.3.4 backdoor), prioritizing technical relevance and impact.
Using Metasploit's exploit/multi/samba/usermap_script with a cmd/unix/reverse payload, a reverse shell was established, granting immediate root access with no privilege escalation required (uid=0(root)).
A cron job was installed on the target (/etc/crontab) to execute a beacon script (/tmp/beacon.sh) every 2 minutes, opening a periodic reverse connection back to the attacker machine — simulating both persistence and C2 beaconing in a single mechanism.
sid:1000001) flagged the periodic beacon traffic as "POSSIBLE C2 BEACON", correctly classified under the Network Trojan category.rule.id 100101, level 10) — "Home SOC Lab: possible C2 connections" — surfaced directly in the Wazuh dashboard.🛡️ detections/ — the Suricata signature, Wazuh rule and log-collection config, with a line-by-line explanation of each
/etc/crontab on the target.diff against a pre-remediation backup that only the malicious lines were removed.cron.d, cron.daily/weekly/hourly/monthly, init.d, and rc.local — none found.beacon.sh process running, no active connections on the C2 port, and the dropped file no longer present on disk.Reviewed the Wazuh dashboard over a 24-hour window after the remediation: one last C2 alert appeared at the start of the window, and no new alerts were generated for the remaining ~21 hours. On the clocks as recorded, both C2 alerts are timestamped after the crontab was cleaned, so the exact moment the beacon stopped could not be confirmed (the Wazuh server clock was corrected mid-exercise). The report documents this openly in Section 8 instead of hiding it.
| Timestamp (2026) | Event |
|---|---|
| Sep 14, 17:19:43 (time zone not recorded) | Initial exploitation (Samba usermap_script / CVE-2007-2447) |
| Sep 14, 21:51:42 (time zone not recorded) | Persistence + C2 established via cron beacon |
| Sep 20, 23:28:05 UTC | Remediation completed (crontab cleaned, verified) |
| Sep 20, 23:40:06 UTC | First Wazuh detection (rule.id 100101) |
| Sep 21, 21:51:44 UTC | Second and last detection |
A full incident report is included in this repository, following a standard structure (Executive Summary, Scope, Reconnaissance, Exploitation, Persistence/C2, Detection, Containment/Eradication, Verification, IOCs, Lessons Learned, Architecture):
Beyond detection and manual response, this lab includes an AI-powered triage layer: Wazuh alerts are sent to Claude for automated priority/confidence scoring and plain-language summaries, then pushed to Telegram in near real time. Before trusting it with anything real, it was red-teamed with 3 prompt-injection techniques embedded directly in alert fields — all 3 were detected, and the most adversarial one caused the AI to escalate the case to critical, treating the manipulation attempt itself as evidence.
🤖 AI/README.md — full write-up, architecture, and red-team results
🗺️ mitre_attack_mapping.md — MITRE ATT&CK mapping of the incident
📊 pipeline_metrics.md — triage accuracy, injection resistance, and known limitations
This lab continues in Corporate SOC Simulation: a Windows Server 2022 + Active Directory domain (Nimbrek S.A.) monitored by this same Wazuh stack, focused on login events, account changes, privilege escalation and Kerberos attacks — closing the gap in Windows-based enterprise detection scenarios.
This project is for educational purposes only, built entirely within an isolated home lab environment.

Erfassen und analysieren Sie Netzwerkverkehr mit Deep-Packet-Inspektion, Dekodierung hunderter Protokolle und Capture-Datei-Unterstützung zur Fehlerbehebung, Forensik und Sicherheitsuntersuchungen.

Zeek ist ein leistungsstarkes Netzwerkanalyse-Framework, das sich stark von den typischen IDS unterscheidet, die Sie vielleicht kennen.

Arkime ist ein Open-Source-, groß angelegtes, vollständiges Paketerfassungs-, Indizierungs- und Datenbanksystem.