How somagaribhanuprakash-sbp/owasp-llm-top10-2026 works
This is a local OWASP LLM security-auditing web lab. A browser user submits chat prompts or selects a security lab; FastAPI renders the interface, routes requests to the chat or lab logic, and chat requests reach the local Qwen model through Ollama. The main application integrates demonstrations for LLM01–LLM10, while a separate script runs the direct LLM01 prompt-injection test. The README documents the full risk coverage; unsampled template and lab internals are represented only at the documented subsystem level.
Main entry points: main.py FastAPI Application · llm.py LLM Client · LLM01_prompt_injection.py LLM01 Test Script · index.html Audit Dashboard
Components 8
Web Interface
- Audit Dashboard
app/templates/index.html
Application Runtime
- FastAPI Application
app/main.py - LLM01–10 Labs
app/main.py - LLM01 Test Script
labs/LLM01_prompt_injection.py
Local Inference
- LLM Client
app/llm.py - Ollama Runtime
- Qwen3:4B Model
Other components
- Browser User
Connections 7
- Browser User → FastAPI Application: submits requests
README.md - FastAPI Application → Audit Dashboard: renders template
app/main.py - FastAPI Application → LLM Client: calls chat
app/main.py - FastAPI Application → LLM01–10 Labs: dispatches labs
app/main.py - LLM01 Test Script → LLM Client: calls vulnerable test
labs/LLM01_prompt_injection.py - LLM Client → Ollama Runtime: sends prompts
app/llm.py - Ollama Runtime → Qwen3:4B Model: runs model
README.md