# itshamzabendelladj/aiguardsiem architecture

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

- Interactive diagram: https://gitdiagram.com/itshamzabendelladj/aiguardsiem
- Repository: https://github.com/itshamzabendelladj/aiguardsiem

## Overview

AIGuardSIEM is a SIEM/XDR platform for collecting security telemetry, detecting threats, investigating incidents, and responding through analyst-facing APIs and dashboards. The documented event lifecycle runs from collectors through Kafka ingestion and ECS normalization into detection and storage; the README excerpt ends during normalization, so later processing links are only shown where documented or supported by sampled source. The graph preserves major documented ML, XDR, SOAR, cloud, and visualization capabilities, but their internal wiring is not fully visible in the excerpts.

Main entry points: [`collectors/common/src/kafka_consumer.cpp`](https://github.com/itshamzabendelladj/aiguardsiem/blob/main/collectors/common/src/kafka_consumer.cpp) (Kafka Event Bus), [`engine/correlation/src/correlation_engine.cpp`](https://github.com/itshamzabendelladj/aiguardsiem/blob/main/engine/correlation/src/correlation_engine.cpp) (Event Correlation), [`api/handlers`](https://github.com/itshamzabendelladj/aiguardsiem/tree/main/api/handlers) (API Handlers), [`api/gateway/server.go`](https://github.com/itshamzabendelladj/aiguardsiem/blob/main/api/gateway/server.go) (API Gateway)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Telemetry Ingestion"]
  node_collectors["Collectors"]
  node_syslog_parser["Syslog Parser<br/>[syslog_parser.cpp]"]
  node_netflow["NetFlow Collector"]
  node_pcap["Packet Flow Tracking<br/>[flow_tracker.cpp]"]
  node_winlog["Windows Log Collector"]
  node_endpoint["XDR Endpoint Agent<br/>[agent_core.cpp]"]
  node_cloud["Cloud Connectors"]
  node_kafka["Kafka Event Bus<br/>[kafka_consumer.cpp]"]
  node_normalization["ECS Normalization<br/>[ecs_schema.cpp]"]
end

subgraph group_detect["Detection and ML"]
  node_correlation["Event Correlation"]
  node_rules["Rule Management<br/>[rule_engine.cpp]"]
  node_ml["ML Detection<br/>[ensemble.py]"]
  node_features["Flow Features"]
end

subgraph group_data["Event Storage"]
  node_hot[("Hot Event Index<br/>[lsm_index.cpp]")]
  node_query["Event Search<br/>[query_engine.cpp]"]
  node_archive[("Cold Archive<br/>[s3_archive.go]")]
  node_warm[("Warm Analytics Store")]
end

subgraph group_respond["Investigation and Response"]
  node_api["API Gateway<br/>[server.go]"]
  node_handlers["API Handlers"]
  node_playbooks["SOAR Playbooks<br/>[engine.py]"]
  node_visualization["SOC Dashboards<br/>[soc_realtime.py]"]
end

subgraph group_operate["Platform Services"]
  node_orchestrator["Service Orchestrator"]
end

node_analyst(("SOC Analyst"))
node_sources(("Telemetry Sources"))

node_sources -->|"supply telemetry"| node_collectors
node_collectors -->|"publish events"| node_kafka
node_syslog_parser -.->|"parses messages"| node_collectors
node_netflow -.->|"publish events"| node_kafka
node_pcap -.->|"publish events"| node_kafka
node_winlog -.->|"publish events"| node_kafka
node_endpoint -.->|"send telemetry"| node_kafka
node_cloud -.->|"send findings"| node_kafka
node_kafka -->|"routes events"| node_normalization
node_normalization -.->|"feeds detection"| node_correlation
node_rules -.->|"manages detection rules"| node_correlation
node_features -.->|"provides features"| node_ml
node_ml -.->|"scores events"| node_correlation
node_correlation -.->|"stores detections"| node_hot
node_correlation -.->|"archives events"| node_archive
node_correlation -.->|"stores analytics"| node_warm
node_hot -->|"queries index"| node_query
node_analyst -->|"uses REST"| node_api
node_api -->|"routes requests"| node_handlers
node_api -->|"initializes service"| node_orchestrator
node_handlers -->|"invokes operations"| node_orchestrator
node_analyst -->|"investigates dashboards"| node_visualization
node_handlers -.->|"dispatches response"| node_playbooks
node_analyst -.->|"investigates alerts"| node_handlers

click node_collectors "https://github.com/itshamzabendelladj/aiguardsiem/tree/main/collectors"
click node_syslog_parser "https://github.com/itshamzabendelladj/aiguardsiem/blob/main/collectors/syslog/src/syslog_parser.cpp"
click node_netflow "https://github.com/itshamzabendelladj/aiguardsiem/blob/main/collectors/netflow/src/netflow_collector.cpp"
click node_pcap "https://github.com/itshamzabendelladj/aiguardsiem/blob/main/collectors/pcap/src/flow_tracker.cpp"
click node_winlog "https://github.com/itshamzabendelladj/aiguardsiem/blob/main/collectors/winlog/src/winlog_collector.cpp"
click node_endpoint "https://github.com/itshamzabendelladj/aiguardsiem/blob/main/xdr/agent/common/src/agent_core.cpp"
click node_cloud "https://github.com/itshamzabendelladj/aiguardsiem/tree/main/connectors"
click node_kafka "https://github.com/itshamzabendelladj/aiguardsiem/blob/main/collectors/common/src/kafka_consumer.cpp"
click node_normalization "https://github.com/itshamzabendelladj/aiguardsiem/blob/main/collectors/common/src/ecs_schema.cpp"
click node_correlation "https://github.com/itshamzabendelladj/aiguardsiem/blob/main/engine/correlation/src/correlation_engine.cpp"
click node_rules "https://github.com/itshamzabendelladj/aiguardsiem/blob/main/engine/rules/src/rule_engine.cpp"
click node_ml "https://github.com/itshamzabendelladj/aiguardsiem/blob/main/ml/inference/ensemble.py"
click node_features "https://github.com/itshamzabendelladj/aiguardsiem/blob/main/ml/feature_engineering/cicflow_features.py"
click node_hot "https://github.com/itshamzabendelladj/aiguardsiem/blob/main/storage/hot/src/lsm_index.cpp"
click node_query "https://github.com/itshamzabendelladj/aiguardsiem/blob/main/storage/hot/src/query_engine.cpp"
click node_archive "https://github.com/itshamzabendelladj/aiguardsiem/blob/main/storage/cold/s3_archive.go"
click node_api "https://github.com/itshamzabendelladj/aiguardsiem/blob/main/api/gateway/server.go"
click node_handlers "https://github.com/itshamzabendelladj/aiguardsiem/tree/main/api/handlers"
click node_playbooks "https://github.com/itshamzabendelladj/aiguardsiem/blob/main/playbooks/engine.py"
click node_visualization "https://github.com/itshamzabendelladj/aiguardsiem/blob/main/viz/dashboards/soc_realtime.py"
click node_orchestrator "https://github.com/itshamzabendelladj/aiguardsiem/tree/main/services/orchestrator"
click node_warm "https://github.com/itshamzabendelladj/aiguardsiem/blob/main/storage/warm/clickhouse_client.go"

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_collectors,node_syslog_parser,node_netflow,node_pcap,node_winlog,node_endpoint,node_cloud,node_kafka,node_normalization toneBlue
class node_correlation,node_rules,node_ml,node_features toneAmber
class node_hot,node_query,node_archive,node_warm toneMint
class node_api,node_handlers,node_playbooks,node_visualization toneRose
class node_orchestrator,node_analyst,node_sources toneIndigo
```

## Components

### Telemetry Ingestion

- [Collectors](https://github.com/itshamzabendelladj/aiguardsiem/tree/main/collectors): `collectors`
- [Syslog Parser](https://github.com/itshamzabendelladj/aiguardsiem/blob/main/collectors/syslog/src/syslog_parser.cpp): `collectors/syslog/src/syslog_parser.cpp`
- [NetFlow Collector](https://github.com/itshamzabendelladj/aiguardsiem/blob/main/collectors/netflow/src/netflow_collector.cpp): `collectors/netflow/src/netflow_collector.cpp`
- [Packet Flow Tracking](https://github.com/itshamzabendelladj/aiguardsiem/blob/main/collectors/pcap/src/flow_tracker.cpp): `collectors/pcap/src/flow_tracker.cpp`
- [Windows Log Collector](https://github.com/itshamzabendelladj/aiguardsiem/blob/main/collectors/winlog/src/winlog_collector.cpp): `collectors/winlog/src/winlog_collector.cpp`
- [XDR Endpoint Agent](https://github.com/itshamzabendelladj/aiguardsiem/blob/main/xdr/agent/common/src/agent_core.cpp): `xdr/agent/common/src/agent_core.cpp`
- [Cloud Connectors](https://github.com/itshamzabendelladj/aiguardsiem/tree/main/connectors): `connectors`
- [Kafka Event Bus](https://github.com/itshamzabendelladj/aiguardsiem/blob/main/collectors/common/src/kafka_consumer.cpp): `collectors/common/src/kafka_consumer.cpp`
- [ECS Normalization](https://github.com/itshamzabendelladj/aiguardsiem/blob/main/collectors/common/src/ecs_schema.cpp): `collectors/common/src/ecs_schema.cpp`

### Detection and ML

- [Event Correlation](https://github.com/itshamzabendelladj/aiguardsiem/blob/main/engine/correlation/src/correlation_engine.cpp): `engine/correlation/src/correlation_engine.cpp`
- [Rule Management](https://github.com/itshamzabendelladj/aiguardsiem/blob/main/engine/rules/src/rule_engine.cpp): `engine/rules/src/rule_engine.cpp`
- [ML Detection](https://github.com/itshamzabendelladj/aiguardsiem/blob/main/ml/inference/ensemble.py): `ml/inference/ensemble.py`
- [Flow Features](https://github.com/itshamzabendelladj/aiguardsiem/blob/main/ml/feature_engineering/cicflow_features.py): `ml/feature_engineering/cicflow_features.py`

### Event Storage

- [Hot Event Index](https://github.com/itshamzabendelladj/aiguardsiem/blob/main/storage/hot/src/lsm_index.cpp): `storage/hot/src/lsm_index.cpp`
- [Event Search](https://github.com/itshamzabendelladj/aiguardsiem/blob/main/storage/hot/src/query_engine.cpp): `storage/hot/src/query_engine.cpp`
- [Cold Archive](https://github.com/itshamzabendelladj/aiguardsiem/blob/main/storage/cold/s3_archive.go): `storage/cold/s3_archive.go`
- [Warm Analytics Store](https://github.com/itshamzabendelladj/aiguardsiem/blob/main/storage/warm/clickhouse_client.go): `storage/warm/clickhouse_client.go`

### Investigation and Response

- [API Gateway](https://github.com/itshamzabendelladj/aiguardsiem/blob/main/api/gateway/server.go): `api/gateway/server.go`
- [API Handlers](https://github.com/itshamzabendelladj/aiguardsiem/tree/main/api/handlers): `api/handlers`
- [SOAR Playbooks](https://github.com/itshamzabendelladj/aiguardsiem/blob/main/playbooks/engine.py): `playbooks/engine.py`
- [SOC Dashboards](https://github.com/itshamzabendelladj/aiguardsiem/blob/main/viz/dashboards/soc_realtime.py): `viz/dashboards/soc_realtime.py`

### Platform Services

- [Service Orchestrator](https://github.com/itshamzabendelladj/aiguardsiem/tree/main/services/orchestrator): `services/orchestrator`

### Other components

- **SOC Analyst**
- **Telemetry Sources**

## Connections

- Telemetry Sources → Collectors: supply telemetry
- Collectors → Kafka Event Bus: publish events (evidence: `collectors/common/src/kafka_consumer.cpp`)
- Syslog Parser → Collectors: parses messages (evidence: `collectors/syslog/src/syslog_parser.cpp`)
- NetFlow Collector → Kafka Event Bus: publish events
- Packet Flow Tracking → Kafka Event Bus: publish events
- Windows Log Collector → Kafka Event Bus: publish events
- XDR Endpoint Agent → Kafka Event Bus: send telemetry
- Cloud Connectors → Kafka Event Bus: send findings
- Kafka Event Bus → ECS Normalization: routes events
- ECS Normalization → Event Correlation: feeds detection
- Rule Management → Event Correlation: manages detection rules
- Flow Features → ML Detection: provides features
- ML Detection → Event Correlation: scores events
- Event Correlation → Hot Event Index: stores detections
- Event Correlation → Cold Archive: archives events
- Event Correlation → Warm Analytics Store: stores analytics
- Hot Event Index → Event Search: queries index (evidence: `storage/hot/src/query_engine.cpp`)
- SOC Analyst → API Gateway: uses REST
- API Gateway → API Handlers: routes requests (evidence: `api/gateway/server.go`)
- API Gateway → Service Orchestrator: initializes service (evidence: `api/gateway/server.go`)
- API Handlers → Service Orchestrator: invokes operations (evidence: `api/handlers/other_handlers.go`)
- SOC Analyst → SOC Dashboards: investigates dashboards
- API Handlers → SOAR Playbooks: dispatches response
- SOC Analyst → API Handlers: investigates alerts
