How teamastrax/sentinelai works
SentinelAI is a behavioral threat-detection product with a FastAPI backend and SOC dashboards in Streamlit and Next.js. The principal workflow is activity and historical context through behavioral profiling and hybrid detection, then explainable alerts for investigation and simulated containment. MITRE mapping, graph analysis, model evaluation, and a read-only experimental quantum plane are additional capabilities. The README documents the product-level stages; source excerpts and the SOURCE INDEX support only some internal links, so unverified implementation links are omitted or marked dashed.
Main entry points: app.py FastAPI · service.py Containment service · builder.py Feature building · sentinel_service.py Sentinel service
Components 22
SOC interfaces
- Streamlit dashboard
src/sentinel_ai/ui/streamlit_app.py - Next.js SOC dashboard
frontend/src/app/page.tsx - Frontend data sources
frontend/src/data/data-source.ts
Detection and context
- Activity intake
src/sentinel_ai/ingestion - Behavioral baselines
src/sentinel_ai/baselines/service.py - Feature building
src/sentinel_ai/features/builder.py - Rule detection
src/sentinel_ai/detection/rules.py - Anomaly models
src/sentinel_ai/models/isolation_forest.py - Sequence analysis
src/sentinel_ai/detection/sequences.py - Hybrid risk scoring
src/sentinel_ai/detection/risk.py - Sentinel service
src/sentinel_ai/services/sentinel_service.py - SQLite store
src/sentinel_ai/storage/database.py - FastAPI
src/sentinel_ai/api/app.py
Threat intelligence
- MITRE mapping and stories
src/sentinel_ai/mitre/mapper.py - Graph analysis
src/sentinel_ai/graph/analyzer.py
Response management
- Containment service
src/sentinel_ai/response/service.py - Response policy
src/sentinel_ai/response/policy.py - Simulation adapter
src/sentinel_ai/response/adapter.py
Experimental quantum
- Quantum analysis
src/sentinel_ai/quantum/analysis.py - QAOA prioritization
src/sentinel_ai/quantum/qaoa_optimizer.py - Quantum lab
frontend/src/app/quantum/page.tsx
Other components
- SOC analyst
Connections 24
- SOC analyst → Streamlit dashboard: investigates
README.md - SOC analyst → Next.js SOC dashboard: investigates
README.md - Activity intake → Behavioral baselines: profiles behavior
- Behavioral baselines → Feature building: provides context
- Feature building → Rule detection: supports detection
- Feature building → Anomaly models: supports scoring
- Rule detection → Hybrid risk scoring: contributes evidence
- Anomaly models → Hybrid risk scoring: contributes score
- Sequence analysis → Hybrid risk scoring: adds context
- Sentinel service → SQLite store: persists and reads
- FastAPI → Sentinel service: orchestrates
src/sentinel_ai/api/app.py - Streamlit dashboard → Sentinel service: uses
- FastAPI → MITRE mapping and stories: serves threat intelligence
- FastAPI → Graph analysis: serves graph findings
- Next.js SOC dashboard → Frontend data sources: requests dashboard data
frontend/src/app/page.tsx - Frontend data sources → FastAPI: fetches API data
- FastAPI → Containment service: exposes containment
src/sentinel_ai/api/app.py - Containment service → Response policy: checks policy
src/sentinel_ai/response/service.py - Containment service → Simulation adapter: applies actions
src/sentinel_ai/response/service.py - Containment service → SQLite store: records actions
src/sentinel_ai/response/service.py - FastAPI → Quantum analysis: exposes analysis
src/sentinel_ai/api/app.py - FastAPI → QAOA prioritization: exposes prioritization
- Quantum lab → FastAPI: requests analysis
- Quantum lab → QAOA prioritization: shows rankings
frontend/src/app/quantum/page.tsx