# michaelbosaz/homelab-siem architecture

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

- Interactive diagram: https://gitdiagram.com/michaelbosaz/homelab-siem
- Repository: https://github.com/michaelbosaz/homelab-siem

## Overview

This repository describes a Wazuh SIEM homelab: an Ubuntu agent and server provide file-integrity monitoring, VirusTotal supplies real-time malware detection, and a Python script automatically deletes files marked by VirusTotal. The two configuration files are present, but the Python script and implementation details are not in the tree. The relationships shown are limited to capabilities and components explicitly described in the README.

Main entry points: [`configs/agent.conf`](https://github.com/michaelbosaz/homelab-siem/blob/main/configs/agent.conf) (Wazuh Agent), [`configs/ossec.conf`](https://github.com/michaelbosaz/homelab-siem/blob/main/configs/ossec.conf) (Wazuh Server)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_endpoint["Endpoint Monitoring"]
  node_agent["Wazuh Agent<br/>[agent.conf]"]
  node_fim["File Integrity Monitoring<br/>[agent.conf]"]
end

subgraph group_detection["Threat Detection"]
  node_server["Wazuh Server<br/>[ossec.conf]"]
  node_virustotal{{"VirusTotal API"}}
end

subgraph group_response["Automated Response"]
  node_deleter["Python Deletion Script"]
end

node_files["Monitored Files"]

node_files -->|"monitored by"| node_agent
node_agent -->|"uses FIM"| node_fim
node_server -->|"uses detection"| node_virustotal
node_virustotal -->|"marks files"| node_deleter
node_deleter -->|"deletes marked"| node_files

click node_agent "https://github.com/michaelbosaz/homelab-siem/blob/main/configs/agent.conf"
click node_fim "https://github.com/michaelbosaz/homelab-siem/blob/main/configs/agent.conf"
click node_server "https://github.com/michaelbosaz/homelab-siem/blob/main/configs/ossec.conf"

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_agent,node_fim toneBlue
class node_server,node_virustotal toneAmber
class node_deleter toneMint
class node_files toneIndigo
```

## Components

### Endpoint Monitoring

- [Wazuh Agent](https://github.com/michaelbosaz/homelab-siem/blob/main/configs/agent.conf): `configs/agent.conf`
- [File Integrity Monitoring](https://github.com/michaelbosaz/homelab-siem/blob/main/configs/agent.conf): `configs/agent.conf`

### Threat Detection

- [Wazuh Server](https://github.com/michaelbosaz/homelab-siem/blob/main/configs/ossec.conf): `configs/ossec.conf`
- **VirusTotal API**

### Automated Response

- **Python Deletion Script**

### Other components

- **Monitored Files**

## Connections

- Monitored Files → Wazuh Agent: monitored by (evidence: `README.md`)
- Wazuh Agent → File Integrity Monitoring: uses FIM (evidence: `README.md`)
- Wazuh Server → VirusTotal API: uses detection (evidence: `README.md`)
- VirusTotal API → Python Deletion Script: marks files (evidence: `README.md`)
- Python Deletion Script → Monitored Files: deletes marked (evidence: `README.md`)
