# shahjahanctg/aegis-soc-platform architecture

> Architecture diagram of the GitHub repository shahjahanctg/aegis-soc-platform, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/shahjahanctg/aegis-soc-platform
- Repository: https://github.com/shahjahanctg/aegis-soc-platform

## Overview

AegisSOC combines security operations, incident investigation, AI analysis, and cyber-readiness training. The main workflow is enterprise syslog collection into the backend, followed by event parsing and SOC alerting; analysts use the dashboard to triage, investigate, and review reports. Separate product branches provide AI assistance, DFIR, training, and CTF exercises. The README documents PostgreSQL, Redis, and Gemini integrations. Some backend routes and UI-to-API calls are unsampled, so only documented or indexed relationships are shown; the graph does not imply unverified runtime wiring.

Main entry points: [`src/App.tsx`](https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/App.tsx) (Dashboard shell), [`src/services/api.ts`](https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/services/api.ts) (Frontend API client), [`server.ts`](https://github.com/shahjahanctg/aegis-soc-platform/blob/main/server.ts) (API server), [`src/components/soc/AlertDetailModal.tsx`](https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/components/soc/AlertDetailModal.tsx) (Alert triage)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Ingestion and backend"]
  node_server["API server<br/>[server.ts]"]
  node_parser["Log parser<br/>[logParser.ts]"]
  node_api["Frontend API client<br/>[api.ts]"]
end

subgraph group_soc["SOC operations"]
  node_app["Dashboard shell<br/>[App.tsx]"]
  node_alerts["Alert triage"]
  node_intel["Threat intelligence"]
  node_topology["Network topology<br/>[TopologyView.tsx]"]
  node_threatmap["Threat map<br/>[ThreatMapView.tsx]"]
  node_telemetry["Telemetry<br/>[TelemetryView.tsx]"]
  node_ingestview["Ingest console"]
  node_reports["Audit reports<br/>[ReportsView.tsx]"]
end

subgraph group_analysis["Analysis and response"]
  node_ai["AI security hub"]
  node_loganalysis["Log analysis"]
  node_dfir["DFIR timeline"]
end

subgraph group_readiness["Cyber readiness"]
  node_training["Training LMS<br/>[TrainingView.tsx]"]
  node_ctf["CTF arena<br/>[CTFArenaView.tsx]"]
end

subgraph group_platform["Platform services"]
  node_settings["Administration<br/>[SettingsView.tsx]"]
  node_auth["JWT and permissions<br/>[security.ts]"]
  node_store[("Domain data store<br/>[store.ts]")]
  node_audit["Audit trail<br/>[audit.ts]"]
end

node_devices(("Network devices"))
node_collector["Syslog collector"]
node_postgres[("PostgreSQL")]
node_redis[("Redis")]
node_gemini["Gemini AI"]

node_devices -->|"send syslog"| node_collector
node_collector -->|"POST events"| node_server
node_server -->|"parses logs"| node_parser
node_server -->|"reads and writes"| node_store
node_server -->|"authenticates requests"| node_auth
node_server -->|"records actions"| node_audit
node_app -->|"renders"| node_alerts
node_app -->|"renders"| node_intel
node_app -->|"renders"| node_topology
node_app -->|"renders"| node_threatmap
node_app -->|"renders"| node_telemetry
node_app -->|"renders"| node_ingestview
node_app -->|"renders"| node_reports
node_app -->|"renders"| node_ai
node_app -->|"renders"| node_loganalysis
node_app -->|"renders"| node_dfir
node_app -->|"renders"| node_training
node_app -->|"renders"| node_ctf
node_app -->|"renders"| node_settings
node_alerts -->|"requests data"| node_api
node_intel -->|"requests data"| node_api
node_topology -->|"requests data"| node_api
node_telemetry -->|"requests data"| node_api
node_ingestview -->|"tests ingestion"| node_api
node_ai -->|"requests analysis"| node_api
node_loganalysis -->|"requests analysis"| node_api
node_dfir -->|"requests artifacts"| node_api
node_training -->|"requests courses"| node_api
node_ctf -->|"requests challenges"| node_api
node_settings -->|"manages platform"| node_api
node_api -->|"calls REST API"| node_server
node_store -.->|"persists data"| node_postgres
node_server -.->|"enables shared services"| node_redis
node_server -.->|"uses AI features"| node_gemini

click node_server "https://github.com/shahjahanctg/aegis-soc-platform/blob/main/server.ts"
click node_parser "https://github.com/shahjahanctg/aegis-soc-platform/blob/main/server/logParser.ts"
click node_api "https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/services/api.ts"
click node_app "https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/App.tsx"
click node_alerts "https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/components/soc/AlertDetailModal.tsx"
click node_intel "https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/components/soc/ThreatIntelView.tsx"
click node_topology "https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/components/soc/TopologyView.tsx"
click node_threatmap "https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/components/soc/ThreatMapView.tsx"
click node_telemetry "https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/components/soc/TelemetryView.tsx"
click node_ingestview "https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/components/soc/SyslogIngestView.tsx"
click node_reports "https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/components/soc/ReportsView.tsx"
click node_ai "https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/components/ai/AISecurityHubView.tsx"
click node_loganalysis "https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/components/layout/LogAnalysisModal.tsx"
click node_dfir "https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/components/dfir/DFIRTimelineView.tsx"
click node_training "https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/components/training/TrainingView.tsx"
click node_ctf "https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/components/ctf/CTFArenaView.tsx"
click node_settings "https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/components/settings/SettingsView.tsx"
click node_auth "https://github.com/shahjahanctg/aegis-soc-platform/blob/main/server/security.ts"
click node_store "https://github.com/shahjahanctg/aegis-soc-platform/blob/main/server/store.ts"
click node_audit "https://github.com/shahjahanctg/aegis-soc-platform/blob/main/server/audit.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_server,node_parser,node_api toneBlue
class node_app,node_alerts,node_intel,node_topology,node_threatmap,node_telemetry,node_ingestview,node_reports,node_postgres,node_redis toneAmber
class node_ai,node_loganalysis,node_dfir toneMint
class node_training,node_ctf toneRose
class node_settings,node_auth,node_store,node_audit,node_devices,node_collector,node_gemini toneIndigo
```

## Components

### Ingestion and backend

- [API server](https://github.com/shahjahanctg/aegis-soc-platform/blob/main/server.ts): `server.ts`
- [Log parser](https://github.com/shahjahanctg/aegis-soc-platform/blob/main/server/logParser.ts): `server/logParser.ts`
- [Frontend API client](https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/services/api.ts): `src/services/api.ts`

### SOC operations

- [Dashboard shell](https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/App.tsx): `src/App.tsx`
- [Alert triage](https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/components/soc/AlertDetailModal.tsx): `src/components/soc/AlertDetailModal.tsx`
- [Threat intelligence](https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/components/soc/ThreatIntelView.tsx): `src/components/soc/ThreatIntelView.tsx`
- [Network topology](https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/components/soc/TopologyView.tsx): `src/components/soc/TopologyView.tsx`
- [Threat map](https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/components/soc/ThreatMapView.tsx): `src/components/soc/ThreatMapView.tsx`
- [Telemetry](https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/components/soc/TelemetryView.tsx): `src/components/soc/TelemetryView.tsx`
- [Ingest console](https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/components/soc/SyslogIngestView.tsx): `src/components/soc/SyslogIngestView.tsx`
- [Audit reports](https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/components/soc/ReportsView.tsx): `src/components/soc/ReportsView.tsx`

### Analysis and response

- [AI security hub](https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/components/ai/AISecurityHubView.tsx): `src/components/ai/AISecurityHubView.tsx`
- [Log analysis](https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/components/layout/LogAnalysisModal.tsx): `src/components/layout/LogAnalysisModal.tsx`
- [DFIR timeline](https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/components/dfir/DFIRTimelineView.tsx): `src/components/dfir/DFIRTimelineView.tsx`

### Cyber readiness

- [Training LMS](https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/components/training/TrainingView.tsx): `src/components/training/TrainingView.tsx`
- [CTF arena](https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/components/ctf/CTFArenaView.tsx): `src/components/ctf/CTFArenaView.tsx`

### Platform services

- [Administration](https://github.com/shahjahanctg/aegis-soc-platform/blob/main/src/components/settings/SettingsView.tsx): `src/components/settings/SettingsView.tsx`
- [JWT and permissions](https://github.com/shahjahanctg/aegis-soc-platform/blob/main/server/security.ts): `server/security.ts`
- [Domain data store](https://github.com/shahjahanctg/aegis-soc-platform/blob/main/server/store.ts): `server/store.ts`
- [Audit trail](https://github.com/shahjahanctg/aegis-soc-platform/blob/main/server/audit.ts): `server/audit.ts`

### Other components

- **Network devices**
- **Syslog collector**
- **PostgreSQL**
- **Redis**
- **Gemini AI**

## Connections

- Network devices → Syslog collector: send syslog (evidence: `README.md`)
- Syslog collector → API server: POST events (evidence: `README.md`)
- API server → Log parser: parses logs (evidence: `server.ts`)
- API server → Domain data store: reads and writes (evidence: `server.ts`)
- API server → JWT and permissions: authenticates requests (evidence: `server.ts`)
- API server → Audit trail: records actions (evidence: `server.ts`)
- Dashboard shell → Alert triage: renders (evidence: `src/App.tsx`)
- Dashboard shell → Threat intelligence: renders (evidence: `src/App.tsx`)
- Dashboard shell → Network topology: renders (evidence: `src/App.tsx`)
- Dashboard shell → Threat map: renders (evidence: `src/App.tsx`)
- Dashboard shell → Telemetry: renders (evidence: `src/App.tsx`)
- Dashboard shell → Ingest console: renders (evidence: `src/App.tsx`)
- Dashboard shell → Audit reports: renders (evidence: `src/App.tsx`)
- Dashboard shell → AI security hub: renders (evidence: `src/App.tsx`)
- Dashboard shell → Log analysis: renders (evidence: `src/App.tsx`)
- Dashboard shell → DFIR timeline: renders (evidence: `src/App.tsx`)
- Dashboard shell → Training LMS: renders (evidence: `src/App.tsx`)
- Dashboard shell → CTF arena: renders (evidence: `src/App.tsx`)
- Dashboard shell → Administration: renders (evidence: `src/App.tsx`)
- Alert triage → Frontend API client: requests data (evidence: `src/components/soc/AlertDetailModal.tsx`)
- Threat intelligence → Frontend API client: requests data (evidence: `src/components/soc/ThreatIntelView.tsx`)
- Network topology → Frontend API client: requests data (evidence: `src/components/soc/TopologyView.tsx`)
- Telemetry → Frontend API client: requests data (evidence: `src/components/soc/TelemetryView.tsx`)
- Ingest console → Frontend API client: tests ingestion (evidence: `src/components/soc/SyslogIngestView.tsx`)
- AI security hub → Frontend API client: requests analysis (evidence: `src/components/ai/AISecurityHubView.tsx`)
- Log analysis → Frontend API client: requests analysis (evidence: `src/components/layout/LogAnalysisModal.tsx`)
- DFIR timeline → Frontend API client: requests artifacts (evidence: `src/components/dfir/DFIRTimelineView.tsx`)
- Training LMS → Frontend API client: requests courses (evidence: `src/components/training/TrainingView.tsx`)
- CTF arena → Frontend API client: requests challenges (evidence: `src/components/ctf/CTFArenaView.tsx`)
- Administration → Frontend API client: manages platform (evidence: `src/components/settings/SettingsView.tsx`)
- Frontend API client → API server: calls REST API (evidence: `README.md`)
- Domain data store → PostgreSQL: persists data (evidence: `README.md`)
- API server → Redis: enables shared services (evidence: `README.md`)
- API server → Gemini AI: uses AI features (evidence: `README.md`)
