How everna44/operational-zero-day-ids-reimplementation works
This repository is a clean reimplementation of a research pipeline for zero-day intrusion detection under target false-positive-rate constraints. Its main workflow turns CICIDS2017 flows into labeled host-session nodes, prepares leakage-aware splits and graph variants, trains tabular or GNN models, calibrates thresholds on benign validation scores, and evaluates detection and operational risk on held-out data. The README also describes feature pre-smoothing, multiple graph backbones, and family-level result summaries. Some links for unsampled preprocessing and reporting stages are supported by README statements rather than inspected implementation details.
Main entry points: run_tabular_experiment.py Tabular experiment · run_gnn_experiment.py GNN experiment · normalize.py Feature standardization · graph_split.py Split-isolated graphs
Components 20
Data preparation
- Host sessions
src/preprocess.py - Data splits
src/split.py - Feature standardization
src/normalize.py
Graph learning
- Communication edges
src/preprocess.py - Split-isolated graphs
src/graph_split.py - KNN similarity graph
src/knn_graph.py - Feature pre-smoothing
src/smoothing.py
Model experiments
- Tabular baselines
src/tabular.py - Tabular MLP
src/mlp.py - GNN backbones
src/gnn.py - Tabular experiment
src/run_tabular_experiment.py - GNN experiment
src/run_gnn_experiment.py - Tabular batch runner
src/run_tabular_batch.py - GNN batch runner
src/run_gnn_batch.py
Operational evaluation
- Target-FPR calibration
src/calibration.py - Detection metrics
src/evaluation.py - Family summaries
src/summarize_gnn_results.py - Tabular summaries
src/summarize_tabular_results.py
Other components
- Researcher
- CICIDS2017 flows
Connections 24
- Researcher → Tabular batch runner: launches runs
src/run_tabular_batch.py - Researcher → GNN batch runner: launches runs
src/run_gnn_batch.py - CICIDS2017 flows → Host sessions: aggregated into
README.md - Host sessions → Communication edges: derive edges
src/preprocess.py - Host sessions → Data splits: partition nodes
README.md - Data splits → Feature standardization: fit on train
README.md - Feature standardization → Split-isolated graphs: build per-split graphs
README.md - Communication edges → Split-isolated graphs: filter by split
src/graph_split.py - Split-isolated graphs → KNN similarity graph: rebuild KNN
src/graph_split.py - KNN similarity graph → Feature pre-smoothing: provides neighbors
README.md - Feature standardization → Tabular experiment: supplies features
src/run_tabular_experiment.py - Tabular experiment → Tabular baselines: trains baseline
src/run_tabular_experiment.py - Tabular experiment → Tabular MLP: trains MLP
src/run_tabular_experiment.py - Tabular batch runner → Tabular experiment: runs settings
src/run_tabular_batch.py - Feature standardization → GNN experiment: supplies nodes
src/run_gnn_experiment.py - Split-isolated graphs → GNN experiment: supplies split edges
README.md - GNN experiment → GNN backbones: trains backbone
src/run_gnn_experiment.py - GNN batch runner → GNN experiment: runs settings
src/run_gnn_batch.py - Tabular experiment → Target-FPR calibration: calibrates threshold
src/run_tabular_experiment.py - Tabular experiment → Detection metrics: evaluates attacks
src/run_tabular_experiment.py - GNN experiment → Target-FPR calibration: calibrates threshold
src/run_gnn_experiment.py - GNN experiment → Detection metrics: evaluates attacks
src/run_gnn_experiment.py - Detection metrics → Family summaries: aggregated by family
README.md - Detection metrics → Tabular summaries: aggregated by family
README.md