How k-anjan25/ai-enhanced-cybersecurity-threat-detector works
AEGIS ingests network flows and system logs, scores telemetry for threats, and presents resulting alerts and operational context to analysts. The principal documented path is ingest validation and publication, scoring/correlation, alert persistence and notification, then dashboard triage. The repository also documents hunt, traffic/log exploration, model operations, administration, audit, and webhook capabilities. Several backend routes and service implementations were not sampled, so those branches are represented at subsystem level and their connections rely on README statements rather than inferred internal calls.
Main entry points: App.tsx Dashboard routing · pipeline.py Pipeline orchestration · ingest.py Ingest endpoints · alert_store.py Alert store and stream
Components 33
Backend API
- API composition
backend/app/main.py - Ingest endpoints
backend/app/api/v1/endpoints/ingest.py - Batch validation
backend/app/services/ingest_service.py - Telemetry contracts
backend/app/schemas/ingest.py - Alert store and stream
backend/app/services/alert_store.py - Alert and stream API
backend/app/api/v1/endpoints/alerts.py - Hunt and log exploration
backend/app/api/v1/endpoints/hunt.py - Identity and administration
backend/app/auth/rbac.py
Detection pipeline
- Pipeline orchestration
backend/app/pipeline.py - Window scoring
backend/app/workers/scoring_worker.py - Alert correlation
backend/app/services/correlator.py - Entity registry
backend/app/services/entity_registry.py
ML service
- Telemetry records and windows
ml-service/aegis_ml/data/windowing.py - FlowNet and LogNet
ml-service/aegis_ml/models/flownet.py - Serving and scoring
ml-service/aegis_ml/serving/scoring.py - Model registry
ml-service/aegis_ml/registry/model_registry.py - Model training
ml-service/aegis_ml/training/pipeline.py
Analyst dashboard
- Dashboard routing
dashboard/src/App.tsx - Dashboard API client
dashboard/src/api/client.ts - Overview and health
dashboard/src/features/overview/pages/OverviewPage.tsx - Alert triage
dashboard/src/features/triage/pages/TriagePage.tsx - Live alert stream
dashboard/src/components/realtime/RealtimeProvider.tsx - Traffic explorer
dashboard/src/features/traffic/pages/TrafficPage.tsx - Log explorer
dashboard/src/features/logs/pages/LogsPage.tsx - Hunt console
dashboard/src/features/hunt/pages/HuntPage.tsx - Model operations UI
dashboard/src/features/models/pages/ModelsPage.tsx - Administration UI
dashboard/src/features/admin/pages/AdminPage.tsx
Operations
- Append-only audit
backend/app/services/audit_log.py - Webhook delivery
backend/app/services/webhook_delivery.py
Other components
- Analyst / operator
- Flow and log sources
- PostgreSQL
- Kafka
Connections 30
- Analyst / operator → Dashboard routing: uses
dashboard/src/App.tsx - Dashboard routing → Dashboard API client: routes through
- Flow and log sources → Ingest endpoints: submits records
- Ingest endpoints → Batch validation: validates batches
backend/app/api/v1/endpoints/ingest.py - Batch validation → Telemetry contracts: validates against
backend/app/services/ingest_service.py - Ingest endpoints → Kafka: publishes accepted
backend/app/api/v1/endpoints/ingest.py - Pipeline orchestration → Window scoring: dispatches scoring
backend/app/pipeline.py - Pipeline orchestration → Alert correlation: correlates outcomes
backend/app/pipeline.py - Pipeline orchestration → Entity registry: resolves entities
backend/app/pipeline.py - Pipeline orchestration → Alert store and stream: writes alerts
backend/app/pipeline.py - Pipeline orchestration → Kafka: consumes telemetry
backend/app/pipeline.py - Alert store and stream → PostgreSQL: persists alerts
- Alert and stream API → Alert store and stream: queries and streams
README.md - Dashboard API client → Alert and stream API: requests alerts
README.md - Live alert stream → Alert and stream API: receives live alerts
README.md - Dashboard routing → Overview and health: routes to
dashboard/src/App.tsx - Dashboard routing → Alert triage: routes to
dashboard/src/App.tsx - Dashboard routing → Traffic explorer: routes to
dashboard/src/App.tsx - Dashboard routing → Log explorer: routes to
dashboard/src/App.tsx - Dashboard routing → Hunt console: routes to
dashboard/src/App.tsx - Dashboard routing → Model operations UI: routes to
dashboard/src/App.tsx - Dashboard routing → Administration UI: routes to
dashboard/src/App.tsx - Hunt console → Hunt and log exploration: runs audited hunts
README.md - Ingest endpoints → Append-only audit: records mutations
README.md - Identity and administration → Append-only audit: audits actions
README.md - Webhook delivery → Analyst / operator: delivers notifications
README.md - Window scoring → Telemetry records and windows: windows records
backend/app/workers/scoring_worker.py - Model training → FlowNet and LogNet: configures FlowNet
ml-service/aegis_ml/training/pipeline.py - Serving and scoring → FlowNet and LogNet: scores with
- Serving and scoring → Model registry: loads registered models
ml-service/aegis_ml/serving/app.py