7/7 AI DETECTORS & SOAR LIVE-VERIFIED
Zero-Trust Enterprise SOC, NSM & Autonomous SOAR Lab
Built by Hamdinou El Keihel inside GNS3 and VMware Workstation on a 12 GB physical-RAM laptop. Combines 6-VLAN pfSense Zero-Trust segmentation, inline TAP-SPAN mirroring into Suricata & Zeek, Wazuh SIEM correlation, and a pure-Python 3.14 AI SOC & Autonomous SOAR Engine.
6 VLANs
MGMT, IT, Employees, Servers, Guest, DMZ isolated via pfSense
7 / 7 Rules
Purple-Team verified with real DNS, C2, Recon, Exfil & IDS traffic
~14–28 MB
Pure-Python stdlib AI-SOC daemon footprint (no heavy ML libs)
AUTO-CONTAIN
Closed-loop pfSense SOAR_Quarantine enforcement at Risk >= 90
Network Segmentation & Sensor Pipeline
An inline TAP-SPAN mirrors all inter-VLAN and WAN traffic between pfSense (ELKEIHEL-FW1) and the L2 switch into ELKEIHEL-NSM1 (ens35 promiscuous).
GNS3 Enterprise Topology
6 segmented VLAN zones, inline passive TAP-SPAN, WAN NAT egress, and dedicated MGMT Tier-0 telemetry plane.
| VLAN | Zone | Subnet | Role |
|---|---|---|---|
| 10 | MGMT | 192.168.10.0/24 | pfSense, NSM/Wazuh/AI-SOC (.20), Admin |
| 20 | IT_DEPT | 192.168.20.0/24 | IT engineering workstations |
| 30 | EMPLOYEES | 192.168.30.0/24 | Corporate endpoints |
| 40 | SERVERS | 192.168.40.0/24 | Protected internal servers (.10) |
| 50 | GUEST | 192.168.50.0/24 | Untrusted / SOAR test zone (.50) |
| 60 | DMZ | 192.168.60.0/24 | Exposed services perimeter |
Purple-Team Verified Detection Matrix
Every behavioral detector in ai-soc/engine.py was tested with live network traffic and verified in /api/state and ai_alerts.json.
| Rule ID | MITRE | Risk | Detection Method & Live Lab Evidence |
|---|---|---|---|
| AI-DNS-01 | T1071.004 | 95 | Shannon entropy + length + digit ratio on Zeek dns.log — verified live at 4.242–4.625 bits/char. |
| AI-DNS-02 | T1568.002 | 72 | 120s sliding-window DGA / NXDOMAIN burst — verified live at 5 NXDOMAIN responses. |
| AI-BEACON-01 | T1071 | 84 | Inter-arrival jitter Coefficient of Variation (CV) — verified live at 6 flows, 2.80s mean, CV=0.000 (100% confidence). |
| AI-RECON-01 | T1046 | 78 | 60s distinct ip:port fan-out tracker — verified live across 8 targets (192.168.40.10:21). |
| AI-EXFIL-01 | T1048 | 86 | Median/MAD robust Z-score upload asymmetry — verified live at 250,084B vs 1,079B (231.8x ratio, Z=1,026,121.1). |
| AI-IDS-01 | TA0001+ | Surge | Suricata eve.json high-rate signature surge correlation integrated into host risk scoring. |
| AI-FUSION-01 | Multi-Plane | 75–100 | Cross-sensor convergence (zeek-conn + zeek-dns + suricata + wazuh) — verified live at Risk 100. |
| SOAR-ACTION-01 | Response | AUTO | Quarantines Risk >= 90 hosts (192.168.50.50 verified) via pfSense URL Table, with Tier-0 PROTECTED_IPS & RFC 5737 empty-feed safeguard. |
Live Telemetry & Enforcement Proof
Click any screenshot to zoom in.
AI SOC & Autonomous SOAR Console (:8505)
Real-time posture, host risk convergence, MITRE narratives, and 1-click analyst quarantine/release controls.
Wazuh Discover Closed-Loop Correlation
AI incidents and SOAR actions ingested via custom decoders/rules (100130–100136) into OpenSearch Dashboards.
pfSense Dynamic SOAR_Quarantine Enforcement
Compromised guest host automatically blocked by top-priority rule SOAR-00 via live HTTP block feed.
SOC Incident Response Playbooks
Standardized Tier-1 / Tier-2 runbooks linking detection logic, Zeek/Suricata triage commands, false-positive checks, and SOAR recovery.
01 — DNS Tunneling & DGA Burst
AI-DNS-01 / AI-DNS-02 • T1071.004 & T1568.002 • Sinkhole & Quarantine
02 — Periodic C2 Beaconing
AI-BEACON-01 • T1071 • Zeek conn.log CV & TLS SNI Triage
03 — Lateral Recon & Fan-Out
AI-RECON-01 • T1046 • Inter-VLAN Zero-Trust Audit
04 — Asymmetric Data Exfiltration
AI-EXFIL-01 • T1048 • Median/MAD Anomaly Containment
05 — Threat Fusion & SOAR Recovery
AI-FUSION-01 / SOAR-ACTION-01 • Safe Release & Tier-0 Protection
SOC Runbook Index & SLAs
Severity matrix, quick Termius commands, and escalation workflow