Live operations
Analyst dashboard
Track packet volume, attack counts, connection status, and traffic distribution from one screen.
Security teams can move from live monitoring to packet-level review without switching context.
XGuard AI combines streaming Kafka ingestion, FastAPI inference, SHAP explainability, alert history, and analyst-friendly monitoring in one AI intrusion detection system. It is designed to help teams detect malicious traffic quickly, understand why the model fired, and review incidents through a polished light or dark mode interface.
3
trained model families
1,000
flows per batch request
REST + WS
history and live delivery
API Key
protected service access
Live stream
WebSocket + history
Explainability
SHAP enabled
Log upload
CSV simulation
Explainability review
Trace every high-risk flow with ranked SHAP evidence.
Move from the live queue to the exact drivers behind a prediction without leaving the analyst workspace.
Signals ranked
3 drivers
Analyst path
Alert to SHAP
Review state
Traceable
Selected incident
Port Scan
Source
10.0.2.18
Destination
172.16.0.21
Packet context
Open any row to inspect the evidence behind each flagged flow.
Platform capabilities
XGuard AI brings together model-driven detection, explainability, live observability, and secured operations in a platform that can support analyst workflows beyond a static demo.
Live operations
Track packet volume, attack counts, connection status, and traffic distribution from one screen.
Security teams can move from live monitoring to packet-level review without switching context.
Explainability
Open any prediction and inspect the features that pushed the model toward benign or malicious classification.
That gives analysts a reasoned trail instead of a raw confidence score alone.
Validation
Upload raw network traffic data from the UI to simulate live conditions and exercise the production detection pipeline.
It is useful for validating historical flows, smoke testing, and analyzing held-out datasets at scale.
Detection engine
The repository trains Random Forest, XGBoost, and LSTM models, with XGBoost serving production inference.
That keeps the system fast enough for streaming use while preserving explainability.
Secure delivery
Prediction, explanation, alert history, and CSV upload tools are protected with API-key access, while health checks stay simple for operations.
That keeps the operational control plane protected while preserving simple service health verification.
Architecture
Kafka ingestion, FastAPI inference, PostgreSQL persistence, and a Next.js frontend work together as one workflow.
The platform is built to connect detection, persistence, and analyst visibility in one production-oriented path.
Workflow
The system is organized around a clear operational path: ingest traffic, score it with the serving model, persist alert history, and support fast explanation-driven review for analysts.
Submit raw network logs through the interface. The system reads the CSV, queues the flows into Kafka, and begins real-time processing.
This allows you to simulate high-volume network traffic seamlessly using historical datasets.
The backend applies the production inference service and returns label, severity, and confidence.
The current repo serves XGBoost for the main runtime path.
Predictions are stored for history views while live alerts are pushed to the analyst UI over WebSocket.
The same app provides both retrospective context and real-time awareness.
Analysts can open SHAP explanations to understand the top features driving each decision.
That closes the loop between detection quality and reviewer trust.
Technology stack
XGuard AI combines streaming ingestion, machine-learning inference, explainability, persistence, and frontend monitoring into a cohesive AI IDS stack.
Core platform stack
Operational benefits
Deployment fit
The platform combines a professional dashboard, CSV log simulation, stored alert history, and explainability workflows in an interface that remains comfortable in both light and dark operating environments.
Deploy with confidence
XGuard AI brings together streaming detection, alert history, secure analyst controls, and SHAP-backed explainability for teams moving toward production-ready network defense workflows.