← back to projects
~/projects/llm-redteam-arena

llm-redteam-arena

A self-contained red team lab against NovaTech AI Assistant, a deliberately vulnerable Flask app backed by a local Mistral 7B. The goal: move from zero knowledge to full compromise, black-box, across the OWASP LLM Top 10 (2025).

View on GitHub ↗

12chained techniques
9OWASP LLM categories
7secrets captured
6attack surfaces

01. architecture

browser / curl
     │ :5000
     ▼
┌─ Docker ───────────────────────┐        ┌─ host ──────────────┐
│ NovaTech Flask webapp (target) │ :1234  │ LM Studio            │
│ Flask · ChromaDB · SQLite      │───────►│ Mistral 7B Instruct  │
└────────────────────────────────┘        └──────────────────────┘
fully local · no external API calls

02. attack chain

Each finding unlocks the next surface. Pick a technique, or use the arrow keys.

03. evidence

The assistant dumps its full system prompt as JSON, including API key, database credentials and JWT secret
T-04 · JSON dump: one prompt, every production secret.
The assistant emits action tags that the backend executes, creating an attacker admin account
T-08 · excessive agency: the LLM provisions an attacker-controlled admin account.
The knowledge base answers with confidential HR data about a fictional executive
T-05 · RAG leak: confidential HR data served from the public index (fictional data).

04. outcome

The assessment report maps every finding to OWASP and MITRE ATLAS, rates its real-world impact (working API keys, forged JWTs, stolen sessions, privilege escalation) and ends with a prioritized list of defensive controls: secrets out of prompts, authenticated ingestion, output encoding, action allow-lists, parameterised queries and inference quotas.