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

ElKeihelNet GNS3 Topology
GNS3 Enterprise Topology
6 segmented VLAN zones, inline passive TAP-SPAN, WAN NAT egress, and dedicated MGMT Tier-0 telemetry plane.
VLANZoneSubnetRole
10MGMT192.168.10.0/24pfSense, NSM/Wazuh/AI-SOC (.20), Admin
20IT_DEPT192.168.20.0/24IT engineering workstations
30EMPLOYEES192.168.30.0/24Corporate endpoints
40SERVERS192.168.40.0/24Protected internal servers (.10)
50GUEST192.168.50.0/24Untrusted / SOAR test zone (.50)
60DMZ192.168.60.0/24Exposed 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 IDMITRERiskDetection Method & Live Lab Evidence
AI-DNS-01T1071.00495Shannon entropy + length + digit ratio on Zeek dns.log — verified live at 4.242–4.625 bits/char.
AI-DNS-02T1568.00272120s sliding-window DGA / NXDOMAIN burst — verified live at 5 NXDOMAIN responses.
AI-BEACON-01T107184Inter-arrival jitter Coefficient of Variation (CV) — verified live at 6 flows, 2.80s mean, CV=0.000 (100% confidence).
AI-RECON-01T10467860s distinct ip:port fan-out tracker — verified live across 8 targets (192.168.40.10:21).
AI-EXFIL-01T104886Median/MAD robust Z-score upload asymmetry — verified live at 250,084B vs 1,079B (231.8x ratio, Z=1,026,121.1).
AI-IDS-01TA0001+SurgeSuricata eve.json high-rate signature surge correlation integrated into host risk scoring.
AI-FUSION-01Multi-Plane75–100Cross-sensor convergence (zeek-conn + zeek-dns + suricata + wazuh) — verified live at Risk 100.
SOAR-ACTION-01ResponseAUTOQuarantines 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 Console
AI SOC & Autonomous SOAR Console (:8505)
Real-time posture, host risk convergence, MITRE narratives, and 1-click analyst quarantine/release controls.
Wazuh Discover AI SOC Alerts
Wazuh Discover Closed-Loop Correlation
AI incidents and SOAR actions ingested via custom decoders/rules (100130–100136) into OpenSearch Dashboards.
pfSense SOAR Quarantine Table
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.