promptfoo red teaming for the OWASP Top 10 for LLM Applications

promptfoo's owasp:llm preset gives per-risk test IDs for the OWASP Top 10 for LLM Applications. This page covers what automated probes verify, what needs design review, and what evidence to keep.

On this page

Testing an LLM application against the OWASP LLM Top 10 with promptfoo

promptfoo can run automated probes mapped to per-risk IDs in the OWASP Top 10 for LLM Applications, but it does not replace design review for several of those risks. The owasp:llm preset groups its tests by risk, and each item has its own ID, such as owasp:llm:01 for prompt injection and owasp:llm:02 for sensitive information disclosure. Use the preset to generate repeatable test evidence, then use architecture and design review to cover the risks a probe cannot see from outside the application. Confirm with the promptfoo documentation which OWASP edition each ID currently maps to, because the 2026 list renumbers several items.

The 2026 edition of the OWASP list, published in August 2026, places Excessive Agency at LLM03 and adds Hidden Context Exposure at LLM08. Those changes matter for evidence packs built against older numbering, so check that your report labels match the list version you cite. Prompt injection and sensitive information disclosure respond well to black-box probing against the deployed application, because you can send crafted inputs and inspect outputs. Supply chain, data and model poisoning, and excessive agency depend more on how the system was built: which model sources were approved, what training or retrieval data was admitted, and which tools and permissions the agent holds.

Treat the output as testing evidence, not certification. A passing run shows that the probes you configured did not succeed against the target at the time of the run; it does not establish that the application is secure, and no independent body issues an OWASP certification for it. Record the promptfoo version, the target configuration, the preset and the scan size with each report, and ask your assessor which OWASP edition and risk IDs they expect. Design review findings should be written down alongside the probe results so that the evidence file shows which risks were tested and which were reviewed by people.

Mapping OWASP LLM risks to promptfoo IDs, capabilities and configuration

This table maps each risk in the 2026 OWASP Top 10 for LLM Applications to the promptfoo capability that tests it, the ID to confirm, and the configuration it needs. Only owasp:llm:01 and owasp:llm:02 are confirmed here, so check the remaining IDs against the current promptfoo docs before you rely on them in evidence. The main takeaway is that a preset run covers probe-friendly risks well, while design-level risks still need review of the architecture.

Risk (2026 list)promptfoo ID and capabilityConfiguration to set
LLM01 Prompt Injectionowasp:llm:01, direct and indirect injection probesTarget wired to the live application, system prompt and retrieved documents in scope
LLM02 Sensitive Information Disclosureowasp:llm:02, probes for leakage of personal or confidential dataTest data that resembles real records, grading that flags exposed fields
LLM03 Excessive AgencyConfirm ID in current docs; probes attempt unauthorized tool or action useReal tool definitions and a test account with the permissions production would hold
LLM04 Supply ChainConfirm ID in current docs; limited probe coverage, mostly model and dependency checksPinned model and component inventory reviewed outside the probe run
LLM05 Data and Model PoisoningConfirm ID in current docs; probes cannot prove training data integrityAccess to data pipeline and fine-tuning records for manual review
LLM06 Unbounded ConsumptionConfirm ID in current docs; scan size and rate behavior testedRequest limits, budgets and timeouts set on the target side
LLM07 MisinformationConfirm ID in current docs; grading depends on your reference answersGround-truth answers and an assertion or judge rubric for each domain
LLM08 Hidden Context ExposureConfirm ID in current docs; new in 2026 and may replace the 2025 system prompt leakage mappingSystem prompt and hidden context supplied to the target so leakage can be graded
LLM09 Vector and Embedding WeaknessesConfirm ID in current docs; tests retrieval paths through the applicationAccess to the retrieval endpoint and the same index the production app uses
LLM10 Improper Output HandlingConfirm ID in current docs; checks outputs passed to downstream systemsDownstream sinks (HTML, SQL, shell) represented in the target or reviewed separately

Which risks automated probes cover well

Automated probes send adversarial inputs to a live application and grade the responses, so they suit risks that show up in observable output. The cards below cover the OWASP LLM risks where a probe run gives useful evidence, and state what a passing or failing run cannot prove.

Prompt injection (LLM01)

Probes send direct and indirect injection payloads to the application and check whether the model follows attacker instructions, such as revealing its system prompt or changing its task. A failed probe is strong evidence of a weakness, but a clean run only shows that the tested payloads did not succeed. Check which injection plugins ran, whether indirect payloads through documents or tool outputs were included, and whether your scan used the application's real retrieval and tool path rather than the bare model.

OWASP preset docs

Sensitive information disclosure (LLM02)

Probes ask for personal data, credentials and internal details and grade whether the response leaks them. This shows what the application exposes under the tested prompts. It does not show what sits in the underlying data stores or logs, or whether access controls would stop a determined user, so pair probe results with a review of data access.

Improper output handling (LLM10)

Probes check whether model output contains content that could be unsafe when a downstream component renders or executes it, such as script or markup. The probe sees the text the application returns, so it can show that unsafe output reached the response. It cannot show how every consumer of that output, such as a template engine or a shell wrapper, treats it. Confirm those sinks in code review.

Misinformation (LLM07)

Probes test whether the application produces false or unsupported claims on prompts designed to elicit them. A failing case gives a concrete example to fix. A passing run does not establish accuracy across the domain, because probes sample a small set of prompts. For accuracy in your data, use evaluation suites built on your own reference answers.

Unbounded consumption (LLM06)

Probes can send repeated or oversized requests and record whether the application applies limits, but the scan itself adds load and cost to the model provider. Confirm the rate limits, token caps and budgets that exist in your gateway or application. A probe can show a missing cap in the tested path. It cannot show capacity under real traffic.

Where the OWASP LLM list ends and agentic risks begin

The OWASP Top 10 for LLM Applications covers risks in the model-facing application: prompts, outputs, data, and the supply chain behind them. It does not cover agents that take actions through tools. Once a system can call tools, hold credentials, or act across other agents, the relevant list is the separate OWASP Top 10 for Agentic Applications for 2026, released on 9 December 2025, which lists ASI01 Agent Goal Hijack through ASI10 Rogue Agents. Before scoping your red team, check whether the application you are testing has any of these capabilities. If it does, the owasp:llm preset will not give you coverage of the agent layer, and a passing result should not be read that way.

Tool-using systems also fall under the Model Context Protocol security best practices (protocol version 2025-11-25). Three points in that guidance need a design decision, not a probe result. The MCP authorization specification forbids token passthrough, so an MCP server must reject any token not explicitly issued for that server. Servers should be granted scope minimization rather than broad default access. For local MCP servers, clients offering one-click configuration must show the exact command and require explicit user approval. Confirm these controls in your architecture and identity configuration, because a prompt-level probe will not show whether a server accepts a forwarded token.

This page does not test those agentic risks in depth. For goal hijacking, tool misuse, identity and privilege abuse and multi-agent attacks, read the sibling topic on promptfoo red teaming for the OWASP Top 10 for Agentic Applications and plan an architecture review alongside it. The OWASP LLM preset and the agentic framework overlap on prompt injection, so expect shared findings, but treat each list as covering only its own scope.

Evidence a red team run produces for auditors

A promptfoo red team run leaves several artifacts that can support an internal review or an external assessment. Each one answers a different question: what was tested, how it was configured, what passed or failed, and whether a fix was checked afterward.

Per-run results mapped to owasp:llm IDs

Each scan output records the probes sent, the responses received and the grade for each result, with the owasp:llm item (for example, owasp:llm:01 for prompt injection) attached. This lets a reviewer see coverage by risk rather than a single overall score. Check that the run covered every item in scope, and note any item that produced no probes for your application, since an empty category is not the same as a passing one.

OWASP preset docs

Configuration files versioned in Git

The red team configuration defines the target, plugins, strategies, purpose statement and grading settings. Store it in the same repository as the application or in a dedicated audit repository, and tag it with each release. Without this file, a later reader cannot tell which probes were run or whether the scope changed between runs.

Pass and fail records with version

Record the promptfoo version, the Node.js runtime, the target model and application version, and the run date alongside every result set. The CLI version affects probe generation and grading, so a result without it is hard to reproduce. Confirm the installed version against the release notes before each formal run, and keep the lockfile or container image digest used for the scan.

Latest npm release supplied
0.124.1

Grading rubrics and judge settings

Automated grading depends on the rubric applied to each probe and on the model used as grader. Keep the rubric text, the grader model name and any custom assertions with the run. A reviewer will ask how a response was judged as a failure, so the rubric is part of the evidence, not a detail of the tool.

Human review notes

Automated grades can be wrong in both directions. Keep a log of cases where a reviewer overrode a grade, with the reason and the reviewer's name or role. For design-level risks such as excessive agency, the review record is often the main evidence, because probes alone do not establish that a control exists.

Retest records after fixes

When a failing probe leads to a change in prompts, tool permissions or filters, rerun the same configuration against the fixed version and record the new result beside the original. Link the two runs to the change ticket. Confirm with your own change process that the retest used the same plugins and strategies, because a different scan size or seed can make the comparison misleading.

Configuring the owasp:llm preset in sequence

This sequence takes an LLM application from scoping through a scoped owasp:llm red team run to archived evidence, so each finding traces back to a specific OWASP risk ID and a documented retest.

  1. Confirm the target and scope

    The AI product owner and the security lead agree which application, model endpoints, tools and data sources are in scope, and which OWASP LLM risk IDs (such as owasp:llm:01 for prompt injection or owasp:llm:02 for sensitive information disclosure) matter for this system. Write the scope down before any probe runs. The step is done when the owner signs off on a one-page scope note that names the application version under test and the environment it runs in, which should be a test deployment that holds no production data.

  2. Install promptfoo on the test workstation

    The engineer running the scan installs promptfoo from npm on a machine that can reach the target. The current npm release is 0.124.1, published on 8 October 2026, and it requires Node.js 22.22.0 or newer, so confirm the Node version first. Record the promptfoo version and Node version in the scope note, because the probe set and mappings can change between releases. The step is done when the CLI reports its version and the team has pinned that version for the run.

  3. Define the target application connection

    The engineer creates a promptfoo configuration that points at the application under test rather than at a bare model, so probes exercise the system prompt, retrieval, tools and guardrails the users will meet. The connection should use a dedicated test account with the same permissions a real user would have, not an administrator key. The step is done when a single test prompt sent through the configured target returns a response that the team has checked by hand.

  4. Select the owasp:llm preset and per-ID subsets

    The engineer sets the red team plugins to the owasp:llm preset to cover the full list, or lists individual IDs such as owasp:llm:01 and owasp:llm:02 when the scope is narrower. Confirm the ID-to-risk mapping against the current OWASP list before the run, because the 2026 edition reorders several risks compared with 2025. The step is done when the configuration file shows the exact IDs selected and the scope note matches that list.

  5. Set grading and data handling

    The team decides which model grades the responses, where prompts and outputs are stored, and whether the grader may receive sensitive test data. Promptfoo runs locally and talks directly with the model, so confirm which provider receives grading requests and whether that provider's terms match your data policy. Set the output directory on approved storage. The step is done when the security lead approves the grader, the provider and the storage location in writing.

  6. Run the scan and review raw results

    The engineer runs the red team scan against the test deployment and saves the full output, including the probes sent, the responses received and the grader's verdicts. Read a sample of passing and failing results by hand before trusting the summary, since automated grading can be wrong in either direction. The step is done when the raw results file is saved with the run's versions and configuration hash.

  7. Triage findings by OWASP risk ID

    The security engineer groups each failing probe under its owasp:llm ID, confirms whether it is a true finding or a grader error, and assigns an owner for each real finding. Findings that depend on design choices, such as excessive agency or what the system is allowed to reveal, go to the architecture review rather than being closed as configuration fixes. The step is done when every failing probe has a recorded verdict, owner and status.

  8. Fix, retest and archive the evidence

    Owners fix the confirmed findings, and the engineer reruns the same configuration and version to show that the fixed probes now pass without new failures. Save the before and after results, the triage log, the scope note and the accepted residual risks together in a single evidence folder with a date and version label. The step is done when the folder can be handed to an auditor or assessor and the reader can trace each risk ID from scope to retest result.

How probes, target and design review fit together

The diagram starts with the promptfoo red team config, which selects the owasp:llm preset and per-risk IDs such as owasp:llm:01. Probes are sent to the target LLM application, and the responses are graded and mapped back to OWASP IDs in the results. Risks that a probe cannot prove, such as excessive agency or tool permissions, branch to architecture review, and every fix goes back through a retest. Check that the mapping covers each risk you claim, and that the review branch has a named owner.

Probes test the application, and design-review risks follow a separate path that loops back to retest.

What the local run means for data handling

promptfoo runs on your machine and talks directly to the model under test, so the data handling question for an OWASP LLM Top 10 run is less about promptfoo itself and more about where each prompt, response and grading call goes. According to the promptfoo documentation, evals run locally and connect straight to the LLM. Red team probes are sent to the target application or model provider you configure, and if you use a hosted model as a grader or judge, that provider receives the test content as well. Before the first scan, confirm with your security team which provider endpoints are approved for test traffic, whether those providers retain prompts for their own purposes, and whether probe payloads contain any real customer or employee data. Many teams run probes with synthetic data for exactly this reason.

Results are stored locally by default, and that choice carries its own limits. The self-hosted promptfoo app stores data in a local SQLite database, which cannot be shared across replicas and has no role-based access control, built-in authentication or SSO. The promptfoo self-hosting documentation says this setup is not recommended for production use. If several people need to review OWASP LLM findings, or if you need a shared record of runs for an assessor, a single local database on one engineer's machine or one small server is not a sound place to keep that evidence. Decide early where result files live, who can read them, how long they are kept and how they are backed up, and write those rules down before the first red team run.

If the team needs shared access, the paid tiers address that gap. promptfoo Enterprise adds team sharing, teams-based access control, SSO, custom roles and permissions, and a centralized dashboard, and promptfoo On-Premise runs that functionality on your own infrastructure with complete data isolation and a dedicated deployment engineer. Pricing for both is custom, so ask the vendor to confirm in writing which controls, hosting location and data retention terms apply to your deployment, and whether the grading models you intend to use are covered by the same data terms. Those answers, not the open-source license alone, determine whether the results pass your data protection review.

Questions buyers ask before testing OWASP LLM risks

How much effort does a first OWASP LLM red team take?

A first pass is mostly driven by how many systems sit behind the application and how much of the work is automated. The promptfoo side is configuration: a target, the owasp:llm preset or individual IDs such as owasp:llm:01, and a probe budget. The larger share is preparing the target, agreeing which findings count as failures, and reviewing results by hand. Effort rises with the number of tools the model can call, the number of data sources in retrieval, and the number of user roles that need separate testing. Ask for a quote that lists target count, roles, and whether design review is included, since automated probes do not replace that review.

Can our team run promptfoo without a partner?

Yes, if you have an engineer who can run a Node.js command line tool and write a configuration file. promptfoo is licensed under the MIT license, and the Community edition is free, includes red teaming with 10k probes per month, and runs locally, with evals talking directly to the model. Your team will still need to decide what each OWASP LLM ID means for your application, write grading criteria, handle false positives, and fix the issues found. Many teams start in-house and bring in a partner for the design review and retest, which are the parts that need architecture knowledge.

What does the work need from our side?

Plan for three inputs before the engagement starts. First, access to a test instance of the application that behaves like production, with its own test accounts for each role and a safe place to call tools. Second, a written scope listing which OWASP LLM IDs are in and out, which environments may be probed, and the rate limits you accept. Third, named owners: someone who can approve tests against the target, someone who owns the application's data and tool permissions, and someone who will accept or reject fixes. Without a test environment and clear owners, most delays come from waiting for access rather than from the testing itself.

How long does an OWASP LLM red team take, and what changes the duration?

Duration depends on scope and on how fast the target can be tested and fixed. The main variables are the number of OWASP LLM IDs in scope, the number of tools and data sources the application uses, how many fix and retest cycles you need, and how quickly your owners respond to questions. Automated scans can run in hours once the target is configured, but triage and review take longer. Ask for a timeline in the written scope that separates setup, testing, reporting, and retest, and confirm which dates depend on your team's responses.

Do promptfoo results satisfy an audit?

No. promptfoo produces test evidence, such as configurations, run records, and findings tied to OWASP LLM IDs, but it does not issue audit reports or certifications. Independent auditors and certification bodies decide whether controls meet a standard. Use the results as one input to your evidence file, and confirm with your assessor which records they accept, how long they need to be retained, and whether they expect design documentation alongside test output. Risks such as excessive agency and hidden context exposure often need architecture review that automated probes cannot fully confirm.

Which OWASP LLM risks do automated probes cover poorly?

Automated probes work best on risks that show up in model responses, such as prompt injection and sensitive information disclosure. They cover poorly the risks that depend on how the system is built, such as which tools an agent may call with which credentials, how training or retrieval data is sourced, and how much compute or spend a user can trigger. For these, ask for a design review that examines permissions, data flows, and supply chain controls, and confirm with the vendor which OWASP LLM 2026 IDs each promptfoo preset entry maps to before you rely on it.

Does the scope include retesting after fixes?

It should be stated explicitly in the written scope. A single red team run shows what failed at that point, but it does not show that a fix works or that a later change has not reopened a risk. Retesting the same OWASP LLM IDs after remediation, and running the probes again in your pipeline, are separate decisions with separate costs. DeployOpen offers ongoing support and continuous testing as retainers, and the fixed-scope engagement lists whether a retest is included.

How DeployOpen scopes and delivers OWASP LLM testing

DeployOpen runs promptfoo red teaming for the OWASP Top 10 for LLM Applications as a fixed-scope engagement, with the risk IDs, targets and evidence agreed in writing before testing starts. The work covers the automated probes and the design review that probes cannot replace, and the results are handed over with fixes and a retest.

How we scope

  • Written scope names which owasp:llm risk IDs are tested and which are handled by design review.
  • We confirm the application endpoint, model providers and data the red team will touch before any probe runs.
  • Deliverables, timelines and the retest window are agreed in writing, so the quote follows directly from that scope.

How we build

  • We configure the promptfoo red team with the owasp:llm preset and per-risk IDs against your application under test.
  • Probe results are graded and reviewed by our engineers, so findings are checked before they reach your team.
  • Design review covers risks such as excessive agency and supply chain that automated probes do not fully test.

How we hand over

  • You receive a findings report mapped to each OWASP LLM risk ID, with reproduction steps and the configuration used.
  • The report states what automated testing covered, what it did not cover, and which items need your own review.
  • After fixes are applied, we retest the affected risk IDs and document the results alongside the original findings.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers when the application or model changes.
  • Retainers can rerun the owasp:llm preset on a schedule and track results across releases.
  • Ask for the support scope, response expectations and the upgrade path for promptfoo in writing before you sign.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.