Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
home-soc-lab — 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. | Kitploit
Tools/GitHubGitHub/ddiazcr/home-soc-lab
Network ForensicsPenetration TestingThreat IntelligenceIntrusion DetectionLearning & EducationRed TeamingIncident ResponseAI SecurityLog AnalysisLabs & Practice
GitHub
Oct 16, 2026Not yet reviewed
Share
ddiazcr/home-soc-lab

home-soc-lab

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.

View Repository

Home SOC Lab

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).

Overview

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:

  • Reconnaissance and vulnerability identification
  • Exploitation of a real CVE
  • Persistence and C2 (Command & Control) simulation
  • Detection using a SIEM (Wazuh) and NIDS (Suricata)
  • Containment, eradication, and verification
  • Full incident report following industry-standard structure

Architecture

                    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.

Lab Setup

ComponentDetails
HypervisorVirtualBox
AttackerKali Linux — 192.168.56.103
TargetMetasploitable2 — 192.168.56.104
SIEM / NIDSWazuh 4.9.2 + Suricata 8.0.3 — 192.168.56.102
NetworkHost-Only, 192.168.56.0/24

Attack Simulation

Reconnaissance

nmap -sV -sC against the target revealed multiple outdated, vulnerable services typical of Metasploitable2, including:

  • vsftpd 2.3.4 (port 21, anonymous FTP enabled)
  • Samba smbd 3.0.20-Debian (ports 139/445)
  • UnrealIRCd (port 6667)
  • Java RMI Registry (port 1099)
  • A pre-configured root shell (port 1524)

Exploitation

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)).

Persistence & C2

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.

Detection

  • Suricata custom rule (sid:1000001) flagged the periodic beacon traffic as "POSSIBLE C2 BEACON", correctly classified under the Network Trojan category.
  • Wazuh correlated the Suricata alert into a custom detection rule (rule.id 100101, level 10) — "Home SOC Lab: possible C2 connections" — surfaced directly in the Wazuh dashboard.
  • Alerts were confirmed on two separate days, validating that detection persisted reliably across the beacon's lifecycle.

🛡️ detections/ — the Suricata signature, Wazuh rule and log-collection config, with a line-by-line explanation of each

Response & Remediation

  1. Removed the persistence mechanism from /etc/crontab on the target.
  2. Verified via diff against a pre-remediation backup that only the malicious lines were removed.
  3. Checked for additional persistence across cron.d, cron.daily/weekly/hourly/monthly, init.d, and rc.local — none found.
  4. Confirmed no beacon.sh process running, no active connections on the C2 port, and the dropped file no longer present on disk.

Verification

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.

Timeline

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 UTCRemediation completed (crontab cleaned, verified)
Sep 20, 23:40:06 UTCFirst Wazuh detection (rule.id 100101)
Sep 21, 21:51:44 UTCSecond and last detection

Incident Report

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):

📄 INCIDENT_REPORT.md

AI Triage Pipeline

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

Lessons Learned

  • Correlating NIDS (Suricata) and SIEM (Wazuh) detections is significantly more reliable than relying on either tool alone.
  • Persistence and C2 mechanisms are often simple (a single cron entry) but can be highly effective if not actively monitored.
  • Systemd timeout defaults are a common, easy-to-miss cause of failures when running resource-heavy security tools (Suricata, Wazuh indexer) on constrained lab hardware.

Tools Used

  • Wazuh 4.9.2 (SIEM)
  • Suricata 8.0.3 (NIDS)
  • Kali Linux
  • Metasploitable2
  • VirtualBox

Next Project

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.

Download Tool

Related Tools

  • wireshark

    Capture and analyze network traffic with deep packet inspection, protocol decoding across hundreds of protocols, and capture-file support for troubleshooting, forensics, and security investigations.

  • zeek

    Zeek is a powerful network analysis framework that is much different from the typical IDS you may know.

  • arkime

    Arkime is an open source, large scale, full packet capturing, indexing, and database system.

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    Callisto

    jetp1ane/callisto

    Automated binary vulnerability analysis tool that decompiles executables via Ghidra, scans pseudo-C code with Semgrep, and validates findings using GPT-3.5-Turbo to reduce false positives.

    796
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    735
  • 3

    IMSIcatcher

    28zaaky/imsicatcher

    IMSI Catcher platform that deploys a rogue GSM cell to intercept SMS, inject messages and track mobile devices

    721
  • 4

    opencti

    opencti-platform/opencti

    Open Cyber Threat Intelligence Platform

    535
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    424
  • 6

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    419

Explore all tools

Browse our collection of tools

View all tools →