How mervesudeboler/neuralsentinel-ids works
NeuralSentinel-IDS preprocesses NSL-KDD traffic, trains a residual IDS alongside an adversarial traffic generator, then hardens and evaluates the IDS. A separate detection command streams test-set samples through the trained model and records alerts and packet counts for the live dashboard. The graph includes documented ensemble and reporting capabilities; dashboard internals were not sampled, so its connections rely on README statements.
Main entry points: train.py Training Pipeline · evaluate.py Evaluation Reports · detect.py Live Detection Stream · preprocessor.py Data Preprocessor
Components 13
Data and Workflow
- Training Pipeline
train.py - Data Preprocessor
src/data/preprocessor.py - Adversarial Trainer
src/gan/trainer.py
Detection and GAN
- Attention Generator
src/gan/generator.py - Residual Neural IDS
src/ids/models.py - Soft-Voting Ensemble
src/ids/models.py
Runtime Operations
- Live Detection Stream
detect.py - Evaluation Reports
evaluate.py
Monitoring and Results
- Metrics Tracker
src/utils/logger.py - Live Dashboard
src/dashboard/app.py - Evaluation Outputs
evaluate.py
Other components
- Operator
- NSL-KDD
Connections 20
- Operator → Training Pipeline: starts training
README.md - Training Pipeline → Data Preprocessor: loads and splits
train.py - Data Preprocessor → NSL-KDD: downloads and reads
README.md - Training Pipeline → Residual Neural IDS: pretrains IDS
train.py - Training Pipeline → Attention Generator: configures
train.py - Training Pipeline → Adversarial Trainer: runs phases
train.py - Adversarial Trainer → Attention Generator: trains and samples
src/gan/trainer.py - Adversarial Trainer → Residual Neural IDS: scores and hardens
src/gan/trainer.py - Training Pipeline → Soft-Voting Ensemble: trains baseline
train.py - Operator → Live Detection Stream: starts stream
README.md - Live Detection Stream → Data Preprocessor: loads test data
detect.py - Live Detection Stream → Residual Neural IDS: classifies samples
detect.py - Live Detection Stream → Metrics Tracker: records packets and alerts
detect.py - Operator → Live Dashboard: opens dashboard
README.md - Metrics Tracker → Live Dashboard: supplies live metrics
README.md - Operator → Evaluation Reports: runs evaluation
README.md - Evaluation Reports → Data Preprocessor: loads test data
evaluate.py - Evaluation Reports → Residual Neural IDS: evaluates IDS
evaluate.py - Evaluation Reports → Attention Generator: tests evasion
evaluate.py - Evaluation Reports → Evaluation Outputs: writes report
README.md