How karan27q/ids works
This is an intrusion-detection application with local and remote dashboards, live packet capture, an inference API, and optional PostgreSQL incident logging. The main workflow captures traffic or accepts feature rows, extracts or aligns features, scores them with anomaly-detection and attack-classification models, and presents results; API alerts can also be persisted. The graph preserves documented CSV evaluation and streaming utilities. Some dashboard internals and deployment integrations are unsampled, so only README-supported relationships are shown for those capabilities.
Main entry points: app.py SOC dashboard · engine.py Feature processing and scoring · api.py Inference API · sniffer.py Packet capture and flow features
Components 11
Traffic and inputs
- Packet capture and flow features
sniffer.py - Uploaded or processed CSV
processed_cybersecurity_attacks.csv - Streaming and model evaluation
src/utils.py
Detection runtime
- Feature processing and scoring
engine.py - Detection models and scaler
attack_classifier.h5
User interfaces
- SOC dashboard
app.py - Remote dashboard
dashboard_remote.py - Inference API
api.py
Incident storage
- Incident persistence
db.py
Other components
- Analyst or caller
- Live network traffic
Connections 14
- Analyst or caller → SOC dashboard: uses
README.md - Analyst or caller → Remote dashboard: uses
README.md - Analyst or caller → Inference API: submits features
api.py - Live network traffic → Packet capture and flow features: supplies packets
README.md - SOC dashboard → Packet capture and flow features: starts capture
app.py - Packet capture and flow features → Feature processing and scoring: feeds flow features
sniffer.py - SOC dashboard → Feature processing and scoring: runs inference
app.py - SOC dashboard → Uploaded or processed CSV: loads and saves
app.py - SOC dashboard → Streaming and model evaluation: uses utilities
app.py - Streaming and model evaluation → Feature processing and scoring: evaluates models
- Inference API → Feature processing and scoring: scores features
api.py - Feature processing and scoring → Detection models and scaler: loads models
engine.py - Inference API → Incident persistence: writes alerts
api.py - Remote dashboard → Inference API: requests predictions
dashboard_remote.py