Comprehensive operational runbook for manual testing of the DDoS-AI Cyber SOC Web Browser Application and Command-Line Terminal interfaces.
- Prerequisites & Environment Activation
- Part A: Launching the Cyber SOC Web Browser App
- Part B: Web Browser App Testing & Feature Checklist
- Part C: Manual Terminal Tests (CLI Testing & Sound)
- Part D: Verifying Trained Models vs. Benchmarks
- Part E: Troubleshooting & Port Management
Open your terminal and navigate to the project directory:
cd /path/to/DdosActivate the virtual environment:
source .venv/bin/activate(Alternatively, you can run commands directly using .venv/bin/python without activating).
python src/ddos_ai/main.py dashboard --open-browserpython scripts/run_dashboard.py --open-browserpython scripts/run_dashboard.py --port 8081 --open-browserBrowser Access URL: 👉 http://127.0.0.1:8080
Once the dashboard opens in your browser, perform the following verification steps:
-
1. Audio Alerts Test:
- Click "Audio: ON" in the top navigation bar to ensure browser Web Audio API is initialized.
- Click any attack simulation button to hear the sound cues:
- Safe Traffic: Harmonic Chime (440 Hz / 660 Hz)
- Warning: Dual Beep (880 Hz)
- Danger / DDoS: Dual-Tone Siren (1200 Hz / 800 Hz)
- Critical Mitigation: Low-frequency Quarantine Tone (220 Hz)
-
2. One-Click Attack Simulation Buttons:
- Click "SYN Flood (CIC-IDS2017)"
$\rightarrow$ Verifies volumetric TCP flood detection. - Click "DNS Amp (CIC-DDoS2019)"
$\rightarrow$ Triggers BGP Flowspec scrubber. - Click "Mirai Botnet (BoT-IoT)"
$\rightarrow$ Triggers IoT rate limiter (50%). - Click "Slowloris (Application)"
$\rightarrow$ Tests slow HTTP header exhaustion. - Click "Benign HTTP / Video"
$\rightarrow$ Verifies clean traffic passing line-rate.
- Click "SYN Flood (CIC-IDS2017)"
-
3. OPSEC Privacy Cloak (High-Alert Security):
- Click "[🔒 OPSEC CLOAK: ACTIVE]" in the top navigation bar.
- Confirm all internal IPs are masked (e.g.,
10.249.***.*** [INT-MASKED]). - Toggle it off to inspect raw debugging telemetry when needed.
-
4. Dual-Plane Network Surveillance:
- Switch between the filter tabs above the live flow table:
- [All Planes (Hybrid)]: Combined physical + virtual flows.
-
[🌐 Physical]: Monitors
en0(Wi-Fi / Ethernet adapter). -
[🔒 Virtual]: Monitors
lo0(IPC),utun(VPN), andvir-sim.
- Switch between the filter tabs above the live flow table:
-
5. Live macOS Hardware Sniffer:
- Click "Mode: Synthetic" in the top bar to toggle to "Mode: Live Sniffer".
- The engine sniffs macOS Darwin network sockets and displays real host traffic.
-
6. Deep Packet Inspection (DPI) & XAI Drawer:
- Click on any row in the Live Traffic Flows table.
- A side drawer opens displaying:
- Shannon & Rényi Entropy scores (detects randomized DDoS headers).
- TCP Flag Handshake status (SYN, ACK, FIN, RST, PSH, URG).
- Flow Symmetry Ratio & Asymmetry percentage.
- Explainable AI (XAI) feature attributions.
- MITRE ATT&CK technique mapping.
Run these commands in your terminal for command-line verification:
Runs heterogeneous network packets through all 6 AI models with audio synthesis:
.venv/bin/python scripts/run_unified_pipeline.py --input demo --soundRun inference on real pre-captured packet flows:
.venv/bin/python scripts/run_unified_pipeline.py --input data/raw/network_traffic/cic_ddos2019/cic_ddos2019_sample.csv --soundVerifies Apple Silicon Metal Performance Shaders (MPS), RAM, and CPU cores:
.venv/bin/python src/ddos_ai/main.py verify-hardwareGenerates entropy distributions, QQ-plots, and correlation matrices across all 6 datasets:
.venv/bin/python src/ddos_ai/main.py analyze-dataEvaluates test accuracy, precision, recall, F1-score, and latency:
.venv/bin/python src/ddos_ai/main.py evaluateValidates preprocessing, models, audio synthesizers, and HTTP server:
PYTHONPATH=src .venv/bin/pytest tests/To inspect the 6 specialized AI models trained for your system:
ls -lh models/dataset_specialized/Available models:
- CIC-IDS2017: Classical Fast-Tree + Deep Residual MLP (78 features)
- SDN-DDoS: Classical Fast-Tree + Deep Residual MLP (17 features)
- CIC-DDoS2019: Classical Fast-Tree + Deep Residual MLP (70 features)
- NSL-KDD: Classical Fast-Tree + Deep Residual MLP (40 features)
- TON_IoT: Classical Fast-Tree + Deep Residual MLP (8 features)
- BoT-IoT: Classical Fast-Tree + Deep Residual MLP (10 features)
All 6 models execute inference with sub-millisecond latency using local hardware acceleration.
This means port 8080 is already occupied by a previous process:
- Check what process is using port 8080:
lsof -i :8080
- Terminate the previous instance:
lsof -ti :8080 | xargs kill -9
- Or launch on an alternate port:
python scripts/run_dashboard.py --port 8081 --open-browser
Press Ctrl + C in the terminal session running the server.