Sub topic 21
Using the OWASP Top 10 for LLM Applications as a checklist
This chapter assumes you know the earlier material: prompt injection, indirect injection, excessive agency, output handling, and the defenses in this tutorial. It shows how to turn the OWASP Top 10 for LLM Applications into a working review tool, and it explains what a checklist can't do.
What the list is
The OWASP Top 10 for LLM Applications is a community-maintained list of the most common security risks in applications built on large language models. It is a starting vocabulary and a review aid. It is not a standard you can pass or fail, and it does not rank risks for your specific system.
The list changes between versions. The 2023 edition called one item "Insecure Output Handling". The 2025 edition calls it "Improper Output Handling" and adds new entries. Always check the current version on the OWASP site and record which version you reviewed against.
The 2025 list mapped to this tutorial
| ID | Risk | Where this tutorial covered it |
|---|---|---|
| LLM01 | Prompt Injection | Direct and indirect injection, jailbreaking |
| LLM02 | Sensitive Information Disclosure | Data exfiltration, least privilege |
| LLM03 | Supply Chain | Model, plugin and dependency sources (trust boundaries) |
| LLM04 | Data and Model Poisoning | Poisoned retrieval sources, training data |
| LLM05 | Improper Output Handling | Treating model output as untrusted |
| LLM06 | Excessive Agency | Tools, agents, confused deputy, human approval |
| LLM07 | System Prompt Leakage | Prompts are not secrets |
| LLM08 | Vector and Embedding Weaknesses | Retrieval and knowledge base poisoning |
| LLM09 | Misinformation | Limits of model output reliability |
| LLM10 | Unbounded Consumption | Limits, monitoring |
Some risks need more than one defense, and some defenses cover several risks. Least privilege, for example, reduces the impact of LLM01, LLM02 and LLM06 at once.
Turning the list into a review
Reading the list once is not a review. For each item, ask three questions about your application:
- Does this risk apply? Skip an item only with a written reason. "We have no vector store" is a valid reason for LLM08. "We trust our users" is not.
- Which control addresses it, and where in the code is that control?
- How would you know the control stopped working? A test, a log query or an alert is a good answer. "Someone would notice" is not.
Apply the list at specific moments: during design review, before a launch, and whenever you add a tool, a data source or a model. A new tool changes the answer for LLM06 and LLM02 immediately.
A checklist you can run
Tracking the review as data keeps it honest and lets you check it in CI. This script maps each risk to the controls you planned and reports which ones are missing.
CHECKLIST = {
"LLM01 Prompt Injection": ["prompt_structure", "regression_tests", "approval"],
"LLM02 Sensitive Information Disclosure": ["least_privilege", "output_sanitizing"],
"LLM05 Improper Output Handling": ["output_sanitizing"],
"LLM06 Excessive Agency": ["least_privilege", "approval"],
"LLM07 System Prompt Leakage": ["no_secrets_in_prompt"],
"LLM10 Unbounded Consumption": ["rate_limits", "monitoring"],
}
IMPLEMENTED = {"prompt_structure", "least_privilege", "regression_tests"}
def find_gaps(checklist: dict, implemented: set) -> dict:
"""Return the controls still missing for each risk."""
gaps = {}
for risk, controls in checklist.items():
missing = [c for c in controls if c not in implemented]
if missing:
gaps[risk] = missing
return gaps
for risk, missing in find_gaps(CHECKLIST, IMPLEMENTED).items():
print(f"{risk}: missing {', '.join(missing)}")Running it prints one line per risk that still has an unimplemented control. Here, LLM05, LLM07 and LLM10 are fully uncovered, and LLM01, LLM02 and LLM06 are partly covered.
A control name in IMPLEMENTED is a claim, not proof. Back each claim with a test or a code reference, such as the canary test from the testing chapter for regression_tests.
Common errors when using the list
- Treating it as complete. The list covers frequent risks. Your application may have others, such as a tool that exposes an internal admin API. Combine the list with your own threat model from the trust boundaries chapter.
- Checking boxes without evidence. "Prompt structure: done" means little if no test shows injection payloads failing. Each item needs something verifiable.
- Treating LLM01 as solved by LLM01 controls alone. Delimiters and filters lower the chance of injection but do not remove it. Your real protection comes from limiting what a successful injection can do, which is why LLM06 and LLM02 matter as much as LLM01.
- Reviewing once. Models, prompts, tools and documents change. A review from six months ago says little about today's system.
- Ignoring the non-injection items. Supply chain, consumption and misinformation risks cause real incidents even when no attacker writes a single malicious prompt.
Using the list alongside other frameworks
The OWASP list names risks. It does not tell you how to run a security program. Pair it with:
- Your existing application security process, such as threat modeling and code review, for everything around the model.
- Testing practice, such as the regression tests and red teaming covered earlier, to produce evidence.
- Logging and incident response plans, so you can detect and handle the cases where a control fails.
Exercise
Your team adds an "email the customer" tool to a support chatbot that already reads customer tickets. Name two OWASP LLM risks whose checklist answers change, and one control for each.
Show answer
LLM06 Excessive Agency changes because the model can now take an action with external effects. A control is human approval before any email is sent, plus a restriction on recipients. LLM02 Sensitive Information Disclosure changes because injected text in a ticket could make the model email private data to an attacker. A control is least privilege on the data the model can read in that session, plus an allowlist of recipient addresses. LLM01 is also a valid answer, because tickets are an indirect injection path.
Exercise
A reviewer marks LLM01 "done" because the prompt wraps documents in delimiter tags. What evidence would you ask for, and what is still missing from the review?
Show answer
Ask for regression test results showing known injection payloads, including one that tries to close the delimiter, failing to change the output. Also ask what happens if an injection still succeeds. Delimiters only lower the chance of success, so the review should also show least privilege, output sanitizing and approval for high-impact actions (LLM02, LLM05, LLM06).