How w3nch/owasp-llm-top-10-soc-home-lab works
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: wazuh_setup.md Wazuh SIEM · llm_logger.py LLM logging proxy · README.md Vulnerable LLM app · debian_server_setup.md Debian host
Components 20
Attack scenarios
- Prompt injection
attack/prompt_injection.md - System prompt leak
attack/system_prompt_leak.md - RAG exfiltration
attack/rag_data_exfiltration.md - Agent tool abuse
attack/agent_tool_abuse.md - Jailbreak
attack/jailbreak_attack.md - Threat model
architecture/threat_model.md
Lab platform
- Vulnerable LLM app
README.md - Ollama runtime
setup/ollama_setup.md - Debian host
setup/debian_server_setup.md - Lab network
architecture/network_architecture.md - Data flow design
architecture/data_flow.md - Lab overview
architecture/lab_overview.md
Monitoring and SOC
- LLM logging proxy
scripts/llm_logger.py - LLM event log
scripts/llm_logger.py - Log parser
scripts/log_parser.py - Wazuh SIEM
setup/wazuh_setup.md - Detection engineering
README.md - SOC dashboard
setup/webui_setup.md - Logging setup
setup/logging_pipeline_setup.md
Other components
- Attacker
Connections 19
- Attacker → Vulnerable LLM app: submits prompts
README.md - Vulnerable LLM app → LLM logging proxy: uses proxy
- LLM logging proxy → Ollama runtime: forwards requests
scripts/llm_logger.py - LLM logging proxy → LLM event log: writes events
scripts/llm_logger.py - LLM event log → Wazuh SIEM: forwards logs
README.md - Wazuh SIEM → Detection engineering: analyzes activity
README.md - Detection engineering → SOC dashboard: surfaces alerts
README.md - Attacker → Prompt injection: attempts
README.md - Attacker → System prompt leak: attempts
README.md - Attacker → RAG exfiltration: attempts
README.md - Attacker → Agent tool abuse: attempts
README.md - Attacker → Jailbreak: attempts
README.md - Debian host → Ollama runtime: hosts runtime
README.md - Debian host → Wazuh SIEM: hosts monitoring
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