Back to LLM Security Labs

Frequently asked questions

Learn what you can practice with LLM Security Labs and how to get started.

What is LLM Security Labs?

LLM Security Labs is an open-source, hands-on learning platform created by Tom Abai. It combines an interactive threat model with ten labs mapped to the OWASP Top 10 for LLM Applications 2025, plus a five-level AI agent security challenge.

Explore the threat model

Who is the platform for?

The platform is designed for developers, security researchers and learners who want to understand risks in applications built with large language models. Labs provide explanations and practical exercises; basic familiarity with LLM prompts and web applications is helpful.

Which LLM security vulnerabilities can I practice?

The ten labs cover prompt injection, sensitive information disclosure, supply chain risks, data and model poisoning, improper output handling, excessive agency, system prompt leakage, vector and embedding weaknesses, misinformation, and unbounded consumption. Some exercises use model responses and others simulate vulnerable application behavior.

Start with prompt injection

Do I need an OpenAI API key, and will I be charged?

Reading the lab explanations does not require an OpenAI API key. Model-backed lab exercises offer API mode using your own OpenAI API key or local mode using an in-browser model. OpenAI API usage can incur charges on your account. Local model inference has no OpenAI API charges, but requires downloading model files and suitable hardware. The October agent challenge uses a server-configured key rather than your personal lab key; availability depends on the hosted service.

Can I practice without sending my prompts to OpenAI?

In local mode, model inference runs in your browser through WebLLM and WebGPU instead of calling OpenAI. You need a WebGPU-compatible browser and sufficient GPU memory, and the model files must be downloaded first. Local mode does not mean the entire website is offline or makes no network requests. Model behavior and challenge difficulty can differ from API mode.

How is my personal lab API key used?

The lab configuration saves your key in your browser local storage. In API mode, lab requests can send the key to this application’s server routes in an Authorization header so they can call OpenAI; the shared browser API service can also call OpenAI directly. Do not use sensitive real-world data in exercises. Use a dedicated API key with usage limits, and remove it from the configuration when finished.

Inspect the open-source implementation

What does the October AI agent security challenge teach?

The October 2025 challenge contains five progressive levels about prompt injection, unauthorized tool use, MCP authentication, indirect injection, command injection and multi-stage attack chains. Level 1 can be accessed without an account. Later levels require registration and completion of the previous level. Public descriptions are available on the challenge overview.

View the five challenge levels

How do I start my first lab?

Open the prompt injection lab, read the explanation and objective, then choose API mode or local mode. For API mode, save your OpenAI API key. For local mode, select a model and download it before running prompts. Try the exercise, inspect the response and use the hints when needed. Only test systems you own or have permission to assess.

Open the prompt injection lab

Can I inspect the code or run the platform myself?

Yes. The project source is publicly available on GitHub under the MIT license. The repository includes setup instructions for running the Next.js application locally. The October account and progress features also depend on Supabase configuration.

Read the source and setup instructions