# deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite- architecture

> Architecture diagram of the GitHub repository deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite-, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite-
- Repository: https://github.com/deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite-

## Overview

SOAR-lite automates security incident handling: Wazuh alerts enter the polling workflow, which extracts indicators, enriches them with threat intelligence, applies containment policy, and records and reports the outcome. Its documented capabilities also include AI analysis and Slack/email notifications; those subsystems are present in the tree and README, though notifier.py implementation details and some orchestration calls were not fully sampled. Elastic dashboards and the broader detection lab are documented external environment components, not code modules in this repository.

Main entry points: [`soar.py`](https://github.com/deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite-/blob/main/soar.py) (SOAR poller), [`ai_report.py`](https://github.com/deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite-/blob/main/ai_report.py) (AI report generation), [`enrichment.py`](https://github.com/deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite-/blob/main/enrichment.py) (Threat intelligence), [`notifier.py`](https://github.com/deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite-/blob/main/notifier.py) (Incident notifications)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Alert ingestion"]
  node_soar["SOAR poller<br/>[soar.py]"]
  node_wazuh_client["Alert retrieval<br/>[wazuh_client.py]"]
  node_ioc["IOC extraction<br/>[wazuh_client.py]"]
  node_config["Runtime policy<br/>[config.py]"]
end

subgraph group_analysis["Analysis and decisions"]
  node_intel["Threat intelligence<br/>[enrichment.py]"]
  node_decision["Containment decision<br/>[decision.py]"]
end

subgraph group_response["Response and state"]
  node_response["Firewall actions<br/>[response.py]"]
  node_storage[("Incident and state log<br/>[storage.py]")]
end

subgraph group_reporting["Reports and notifications"]
  node_ai_report["AI report generation<br/>[ai_report.py]"]
  node_reports["Incident reports"]
  node_notifier["Incident notifications<br/>[notifier.py]"]
end

node_wazuh[("Wazuh Indexer")]
node_abuseipdb["AbuseIPDB"]
node_virustotal["VirusTotal"]
node_iptables["Linux firewall"]
node_suricata["Suricata event log"]
node_gemini["Gemini API"]
node_slack["Slack"]
node_smtp["SMTP email"]
node_soc(("SOC analyst"))
node_elastic["Elastic dashboards"]

node_soar -->|"polls via"| node_wazuh_client
node_wazuh_client -->|"queries alerts"| node_wazuh
node_soar -->|"extracts indicator"| node_ioc
node_ioc -->|"parses alert"| node_wazuh_client
node_soar -->|"reads policy"| node_config
node_soar -->|"requests enrichment"| node_intel
node_intel -->|"queries reputation"| node_abuseipdb
node_intel -->|"queries reputation"| node_virustotal
node_soar -->|"checks block policy"| node_decision
node_soar -->|"requests block"| node_response
node_response -->|"adds DROP rule"| node_iptables
node_soar -->|"checks and logs"| node_storage
node_soar -->|"requests report"| node_ai_report
node_ai_report -->|"reads events"| node_suricata
node_ai_report -->|"generates analysis"| node_gemini
node_ai_report -->|"saves Markdown"| node_reports
node_soar -.->|"notifies incident"| node_notifier
node_notifier -->|"posts alert"| node_slack
node_notifier -.->|"sends email"| node_smtp
node_slack -.->|"delivers notice"| node_soc
node_smtp -.->|"delivers notice"| node_soc
node_soar -.->|"forwards security logs"| node_elastic

click node_soar "https://github.com/deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite-/blob/main/soar.py"
click node_wazuh_client "https://github.com/deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite-/blob/main/wazuh_client.py"
click node_ioc "https://github.com/deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite-/blob/main/wazuh_client.py"
click node_config "https://github.com/deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite-/blob/main/config.py"
click node_intel "https://github.com/deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite-/blob/main/enrichment.py"
click node_decision "https://github.com/deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite-/blob/main/decision.py"
click node_response "https://github.com/deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite-/blob/main/response.py"
click node_storage "https://github.com/deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite-/blob/main/storage.py"
click node_ai_report "https://github.com/deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite-/blob/main/ai_report.py"
click node_reports "https://github.com/deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite-/tree/main/reports"
click node_notifier "https://github.com/deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite-/blob/main/notifier.py"

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_soar,node_wazuh_client,node_ioc,node_config toneBlue
class node_intel,node_decision,node_wazuh toneAmber
class node_response,node_storage,node_gemini toneMint
class node_ai_report,node_reports,node_notifier toneRose
class node_abuseipdb,node_virustotal,node_iptables,node_suricata,node_slack,node_smtp,node_soc,node_elastic toneIndigo
```

## Components

### Alert ingestion

- [SOAR poller](https://github.com/deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite-/blob/main/soar.py): `soar.py`
- [Alert retrieval](https://github.com/deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite-/blob/main/wazuh_client.py): `wazuh_client.py`
- [IOC extraction](https://github.com/deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite-/blob/main/wazuh_client.py): `wazuh_client.py`
- [Runtime policy](https://github.com/deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite-/blob/main/config.py): `config.py`

### Analysis and decisions

- [Threat intelligence](https://github.com/deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite-/blob/main/enrichment.py): `enrichment.py`
- [Containment decision](https://github.com/deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite-/blob/main/decision.py): `decision.py`

### Response and state

- [Firewall actions](https://github.com/deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite-/blob/main/response.py): `response.py`
- [Incident and state log](https://github.com/deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite-/blob/main/storage.py): `storage.py`

### Reports and notifications

- [AI report generation](https://github.com/deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite-/blob/main/ai_report.py): `ai_report.py`
- [Incident reports](https://github.com/deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite-/tree/main/reports): `reports`
- [Incident notifications](https://github.com/deepam2k23/ai-powered-intelligent-automated-security-incident-response-platform-soar-lite-/blob/main/notifier.py): `notifier.py`

### Other components

- **Wazuh Indexer**
- **AbuseIPDB**
- **VirusTotal**
- **Linux firewall**
- **Suricata event log**
- **Gemini API**
- **Slack**
- **SMTP email**
- **SOC analyst**
- **Elastic dashboards**

## Connections

- SOAR poller → Alert retrieval: polls via (evidence: `soar.py`)
- Alert retrieval → Wazuh Indexer: queries alerts (evidence: `wazuh_client.py`)
- SOAR poller → IOC extraction: extracts indicator (evidence: `soar.py`)
- IOC extraction → Alert retrieval: parses alert (evidence: `wazuh_client.py`)
- SOAR poller → Runtime policy: reads policy (evidence: `soar.py`)
- SOAR poller → Threat intelligence: requests enrichment (evidence: `soar.py`)
- Threat intelligence → AbuseIPDB: queries reputation (evidence: `enrichment.py`)
- Threat intelligence → VirusTotal: queries reputation (evidence: `enrichment.py`)
- SOAR poller → Containment decision: checks block policy (evidence: `soar.py`)
- SOAR poller → Firewall actions: requests block (evidence: `soar.py`)
- Firewall actions → Linux firewall: adds DROP rule (evidence: `response.py`)
- SOAR poller → Incident and state log: checks and logs (evidence: `soar.py`)
- SOAR poller → AI report generation: requests report (evidence: `soar.py`)
- AI report generation → Suricata event log: reads events (evidence: `ai_report.py`)
- AI report generation → Gemini API: generates analysis (evidence: `ai_report.py`)
- AI report generation → Incident reports: saves Markdown (evidence: `ai_report.py`)
- SOAR poller → Incident notifications: notifies incident (evidence: `soar.py`)
- Incident notifications → Slack: posts alert (evidence: `notifier.py`)
- Incident notifications → SMTP email: sends email
- Slack → SOC analyst: delivers notice (evidence: `README.md`)
- SMTP email → SOC analyst: delivers notice (evidence: `README.md`)
- SOAR poller → Elastic dashboards: forwards security logs (evidence: `README.md`)
