# w3nch/owasp-llm-top-10-soc-home-lab architecture

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

- Interactive diagram: https://gitdiagram.com/w3nch/owasp-llm-top-10-soc-home-lab
- Repository: https://github.com/w3nch/owasp-llm-top-10-soc-home-lab

## Overview

This repository is a documented LLM security home lab, not a complete implementation of its vulnerable applications or SOC stack. Its principal workflow is an attacker exercising documented attack scenarios against an LLM application, with the logger proxy forwarding requests to local Ollama and recording prompts and responses for Wazuh monitoring. The graph preserves the documented attack, setup, and monitoring capabilities; source excerpts verify the proxy’s behavior, while several other links rely on README descriptions rather than inspected implementation.

Main entry points: [`setup/wazuh_setup.md`](https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/setup/wazuh_setup.md) (Wazuh SIEM), [`scripts/llm_logger.py`](https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/scripts/llm_logger.py) (LLM logging proxy), [`README.md`](https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/README.md) (Vulnerable LLM app), [`setup/debian_server_setup.md`](https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/setup/debian_server_setup.md) (Debian host)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_attacks["Attack scenarios"]
  node_prompt_injection["Prompt injection"]
  node_prompt_leak["System prompt leak"]
  node_rag_exfiltration["RAG exfiltration"]
  node_tool_abuse["Agent tool abuse"]
  node_jailbreak["Jailbreak"]
  node_threat_model["Threat model<br/>[threat_model.md]"]
end

subgraph group_lab["Lab platform"]
  node_vulnerable_app["Vulnerable LLM app<br/>[README.md]"]
  node_ollama["Ollama runtime<br/>[ollama_setup.md]"]
  node_debian["Debian host"]
  node_network["Lab network"]
  node_data_flow["Data flow design<br/>[data_flow.md]"]
  node_lab_overview["Lab overview<br/>[lab_overview.md]"]
end

subgraph group_monitoring["Monitoring and SOC"]
  node_logger_proxy["LLM logging proxy<br/>[llm_logger.py]"]
  node_event_log[("LLM event log<br/>[llm_logger.py]")]
  node_log_parser["Log parser<br/>[log_parser.py]"]
  node_wazuh["Wazuh SIEM<br/>[wazuh_setup.md]"]
  node_detection["Detection engineering<br/>[README.md]"]
  node_dashboard["SOC dashboard<br/>[webui_setup.md]"]
  node_logging_setup["Logging setup"]
end

node_attacker(("Attacker"))

node_attacker -->|"submits prompts"| node_vulnerable_app
node_vulnerable_app -.->|"uses proxy"| node_logger_proxy
node_logger_proxy -->|"forwards requests"| node_ollama
node_logger_proxy -->|"writes events"| node_event_log
node_event_log -->|"forwards logs"| node_wazuh
node_wazuh -->|"analyzes activity"| node_detection
node_detection -->|"surfaces alerts"| node_dashboard
node_attacker -->|"attempts"| node_prompt_injection
node_attacker -->|"attempts"| node_prompt_leak
node_attacker -->|"attempts"| node_rag_exfiltration
node_attacker -->|"attempts"| node_tool_abuse
node_attacker -->|"attempts"| node_jailbreak
node_debian -->|"hosts runtime"| node_ollama
node_debian -->|"hosts monitoring"| node_wazuh
node_logging_setup -.->|"configures logging"| node_wazuh
node_log_parser -.->|"parses logs"| node_event_log
node_network -.->|"documents topology"| node_lab_overview
node_data_flow -.->|"documents flow"| node_lab_overview
node_threat_model -.->|"describes risks"| node_vulnerable_app

click node_prompt_injection "https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/attack/prompt_injection.md"
click node_prompt_leak "https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/attack/system_prompt_leak.md"
click node_rag_exfiltration "https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/attack/rag_data_exfiltration.md"
click node_tool_abuse "https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/attack/agent_tool_abuse.md"
click node_jailbreak "https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/attack/jailbreak_attack.md"
click node_vulnerable_app "https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/README.md"
click node_logger_proxy "https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/scripts/llm_logger.py"
click node_ollama "https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/setup/ollama_setup.md"
click node_event_log "https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/scripts/llm_logger.py"
click node_log_parser "https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/scripts/log_parser.py"
click node_wazuh "https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/setup/wazuh_setup.md"
click node_detection "https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/README.md"
click node_dashboard "https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/setup/webui_setup.md"
click node_debian "https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/setup/debian_server_setup.md"
click node_network "https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/architecture/network_architecture.md"
click node_data_flow "https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/architecture/data_flow.md"
click node_lab_overview "https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/architecture/lab_overview.md"
click node_logging_setup "https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/setup/logging_pipeline_setup.md"
click node_threat_model "https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/architecture/threat_model.md"

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_prompt_injection,node_prompt_leak,node_rag_exfiltration,node_tool_abuse,node_jailbreak,node_threat_model toneBlue
class node_vulnerable_app,node_ollama,node_debian,node_network,node_data_flow,node_lab_overview toneAmber
class node_logger_proxy,node_event_log,node_log_parser,node_wazuh,node_detection,node_dashboard,node_logging_setup toneMint
class node_attacker toneIndigo
```

## Components

### Attack scenarios

- [Prompt injection](https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/attack/prompt_injection.md): `attack/prompt_injection.md`
- [System prompt leak](https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/attack/system_prompt_leak.md): `attack/system_prompt_leak.md`
- [RAG exfiltration](https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/attack/rag_data_exfiltration.md): `attack/rag_data_exfiltration.md`
- [Agent tool abuse](https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/attack/agent_tool_abuse.md): `attack/agent_tool_abuse.md`
- [Jailbreak](https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/attack/jailbreak_attack.md): `attack/jailbreak_attack.md`
- [Threat model](https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/architecture/threat_model.md): `architecture/threat_model.md`

### Lab platform

- [Vulnerable LLM app](https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/README.md): `README.md`
- [Ollama runtime](https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/setup/ollama_setup.md): `setup/ollama_setup.md`
- [Debian host](https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/setup/debian_server_setup.md): `setup/debian_server_setup.md`
- [Lab network](https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/architecture/network_architecture.md): `architecture/network_architecture.md`
- [Data flow design](https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/architecture/data_flow.md): `architecture/data_flow.md`
- [Lab overview](https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/architecture/lab_overview.md): `architecture/lab_overview.md`

### Monitoring and SOC

- [LLM logging proxy](https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/scripts/llm_logger.py): `scripts/llm_logger.py`
- [LLM event log](https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/scripts/llm_logger.py): `scripts/llm_logger.py`
- [Log parser](https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/scripts/log_parser.py): `scripts/log_parser.py`
- [Wazuh SIEM](https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/setup/wazuh_setup.md): `setup/wazuh_setup.md`
- [Detection engineering](https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/README.md): `README.md`
- [SOC dashboard](https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/setup/webui_setup.md): `setup/webui_setup.md`
- [Logging setup](https://github.com/w3nch/owasp-llm-top-10-soc-home-lab/blob/main/setup/logging_pipeline_setup.md): `setup/logging_pipeline_setup.md`

### Other components

- **Attacker**

## Connections

- Attacker → Vulnerable LLM app: submits prompts (evidence: `README.md`)
- Vulnerable LLM app → LLM logging proxy: uses proxy
- LLM logging proxy → Ollama runtime: forwards requests (evidence: `scripts/llm_logger.py`)
- LLM logging proxy → LLM event log: writes events (evidence: `scripts/llm_logger.py`)
- LLM event log → Wazuh SIEM: forwards logs (evidence: `README.md`)
- Wazuh SIEM → Detection engineering: analyzes activity (evidence: `README.md`)
- Detection engineering → SOC dashboard: surfaces alerts (evidence: `README.md`)
- Attacker → Prompt injection: attempts (evidence: `README.md`)
- Attacker → System prompt leak: attempts (evidence: `README.md`)
- Attacker → RAG exfiltration: attempts (evidence: `README.md`)
- Attacker → Agent tool abuse: attempts (evidence: `README.md`)
- Attacker → Jailbreak: attempts (evidence: `README.md`)
- Debian host → Ollama runtime: hosts runtime (evidence: `README.md`)
- Debian host → Wazuh SIEM: hosts monitoring (evidence: `README.md`)
- Logging setup → Wazuh SIEM: configures logging
- Log parser → LLM event log: parses logs
- Lab network → Lab overview: documents topology
- Data flow design → Lab overview: documents flow
- Threat model → Vulnerable LLM app: describes risks
