promptfoo red teaming for the OWASP Top 10 for Agentic Applications: what it covers and what it does not
When a security review asks for OWASP agentic coverage, the useful answer is a map of which risks promptfoo's owasp:agentic framework can test with probes and which ones need a design review of the agent itself. The framework produces probe-based test evidence for several of the ASI risks, while others depend on architecture, identity design and operating decisions that no prompt can exercise. The OWASP Top 10 for Agentic Applications for 2026 was released on 9 December 2025 and lists ten risks: ASI01 Agent Goal Hijack, ASI02 Tool Misuse, ASI03 Identity and Privilege Abuse, ASI04 Agentic Supply Chain Vulnerabilities, ASI05 Unexpected Code Execution, ASI06 Memory and Context Poisoning, ASI07 Insecure Inter-Agent Communication, ASI08 Cascading Failures, ASI09 Human-Agent Trust Exploitation and ASI10 Rogue Agents. The promptfoo documentation for the OWASP agentic framework shows which red team plugins map to each risk, such as agentic:memory-poisoning for ASI06.
Goal hijack, tool misuse, memory poisoning and inter-agent messaging are the areas where probes against the running agent produce the most direct evidence, because an attacker-style input either changes the agent's behavior or it does not. Identity and privilege abuse, supply chain, unexpected code execution and cascading failures depend on how credentials are scoped, which tools and packages are approved, whether code runs in a sandbox and how failures propagate across systems. Human trust exploitation and rogue agent behavior also depend on approval flows and monitoring that a test run only partly reveals. Before the first scan, confirm the mapping for each ASI ID against the version of promptfoo you run, and list the risks that a probe cannot settle so the architecture review has a defined scope.
DeployOpen plans and runs the testing, and prepares the systems, controls and evidence that an assessor will ask for. DeployOpen does not issue audit reports, attestations or certifications; those come from independent auditors and certification bodies. A test report is one input to that process, and the gaps it names should be assigned owners before the agent goes live or stays in production.
Mapping each ASI risk to promptfoo plugins and configuration
This table maps each OWASP agentic risk to what promptfoo can test, the target setup that test needs, and where architecture review must take over. Confirm the current plugin IDs in the promptfoo OWASP agentic page, then select the owasp:agentic preset before running a scan. The main takeaway is that automated probes exercise observable behavior, while credential scope, sandboxing and memory governance still need review of the design.
| Risk | What promptfoo can test | Target configuration | Needs architecture review |
|---|---|---|---|
| ASI01 Agent goal hijack | Injected instructions in user input and retrieved content, checked against goal boundaries | Target wired to the agent's tools and system prompt, including retrieved content sources | Goal boundaries and approval gates for high-impact actions |
| ASI02 Tool misuse | Attempts to call tools outside intended use or with altered arguments | Full tool list and permissions enabled, with test accounts holding defined rights | Argument validation, allowlists and rate limits in platform code |
| ASI03 Identity and privilege abuse | Requests for actions beyond the requesting user's rights | Two or more test identities with different roles | Token scope, delegation and credential flow, which passing probes do not prove |
| ASI04 Agentic supply chain | Agent behavior when a tool, plugin or MCP server returns untrusted content | Third-party tools and MCP servers included in the target scope | Provenance, version pinning and approval of tools before installation |
| ASI05 Unexpected code execution | Requests to run generated code or shell commands, with attempts logged | Sandboxed target with no production credentials and command logging | Runtime isolation, egress rules and sandbox hardening |
| ASI06 Memory and context poisoning | Planted instructions in memory, checked in later sessions using agentic:memory-poisoning | Persistent memory store isolated to the test environment | Memory write rules, expiry, per-user partitioning and review of stored content |
| ASI07 Insecure inter-agent communication | Scenarios where one agent's output carries instructions to another | Each agent role in scope, with the inter-agent channel exposed to the test | Agent identity, message authentication and channel encryption |
| ASI08 Cascading failures | Multi-step scenarios where one failure spreads through the workflow | Fault injection in a non-production copy of the workflow | Circuit breakers, blast-radius limits and rollback design |
| ASI09 Human-agent trust exploitation and ASI10 Rogue agents | Attempts to get users to approve harmful actions and to override stop instructions | Human approval step in the target, with approval prompts showing exact actions | Kill switches, behavior monitoring over time and approval interface design |
How promptfoo probes goal hijacking and tool misuse in a running agent
promptfoo sends adversarial inputs to your agent through a configured target, then grades what the agent did, including which tools it called. The target is the endpoint that wraps your agent, and promptfoo reaches it over HTTP, WebSocket or a Python provider. Your endpoint must accept a prompt, run the agent with its real tools and memory, and return the final response. For goal hijacking (ASI01) and tool misuse (ASI02), the response text alone is rarely enough. The endpoint should also return the tool call trace: the tool names, arguments, results and the order in which they ran. Without that trace, a grader can see that the agent replied politely but cannot see that it called a file-write or payment tool with an attacker's parameters. Confirm the exact response fields your promptfoo version expects for tool traces in the target configuration documentation before you build the wrapper.
Plan the target to behave like production. Use the same system prompt, tool registrations, permission checks and model settings that users hit, and point the scan at a staging environment with test accounts and sandboxed tools rather than live systems. Decide early which tools are allowed to produce side effects during testing, because a probe that succeeds in calling an external action will create real records unless the tool is stubbed. The promptfoo red teaming documentation describes how plugins and strategies generate attacks; the grading you receive depends on the trace your target returns.
A scan is a sample of probes, so a clean result is evidence of what was tested, not proof that the agent is safe. The Community edition of promptfoo includes red teaming with 10k probes per month, and that allowance shapes how much of the attack space you can sample in a given month. Record the plugins, strategies, probe counts and target version with each run so that a later reader knows what was covered. Treat findings on goal hijacking and tool misuse as reproducible defects to fix, and treat passing results as a baseline to rerun after prompt, tool or model changes.
How an owasp:agentic scan reaches the agent under test
The scan starts on an operator's machine or CI runner, where the promptfoo CLI loads the owasp:agentic framework and generates probes. Each probe crosses a trust boundary into the agent's infrastructure, passing through the agent's tool layer and memory store before the agent responds. Responses and tool traces return to promptfoo's graders, which score each probe, and the results land in a report. Check where the boundary sits, because the agent's own logs and tool traces are what show whether an attack changed behavior.
Probes cross from the test machine into the agent's infrastructure, and traces return for grading.
Which evidence the scan produces and how to keep it for review
A promptfoo red team run leaves several separate records, and a reviewer needs all of them to trust a result. Keep the configuration, the generated probes, the grading output and the version details together under version control so that any finding can be traced to the exact build and settings that produced it.
Configuration files as the scan record
The promptfoo configuration file defines the target, the owasp:agentic preset, plugins, strategies and grading settings. Commit it to Git with each scan so a reviewer can see what was tested and what was deliberately left out. Compare the configuration against the scope agreed for the ASI categories before accepting the results as coverage evidence.
Generated probe sets
Probes are generated from plugins and strategies, and the generated set can change between runs. Export and store the probe list for each scan so a reviewer can confirm that a category such as ASI06 Memory and Context Poisoning was exercised with the attack variants claimed. Note which probes were generated and which were written by hand.
Pass and fail results per ASI category
Results should be grouped by ASI identifier, from ASI01 Agent Goal Hijack through ASI10 Rogue Agents, so each category has its own pass rate and failing probes. A category with no probes is a gap, not a pass. Record the counts per category in the report and keep the failing probe IDs for remediation tracking.
Grader rationale and tool call traces
A pass or fail is only as credible as the grader's reasoning and the raw trace behind it. Keep the grader rationale for each failing probe, along with tool call traces showing which tools the agent invoked, with what arguments and in what order. Reviewers use these traces to confirm that a tool misuse finding reflects real agent behavior and not a misread response.
Recording the release and target build
Each report should name the promptfoo version used, such as 0.124.1, published on 8 October 2026, which requires Node.js 22.22.0 or newer. Record the Node.js version and the target build tested, including agent version, model and tool set. Without these, a rerun later may not be comparable to the original scan.
promptfoo releasesReport exports and retained reruns
Export the report in the format your review process accepts and store it with the configuration, probe set and version record. After each fix, rerun the same scan and keep both the before and after results, so the review shows the remediation rather than a single final snapshot. Confirm with your assessor how long these records must be retained.
Setting up an owasp:agentic red team in order
This sequence takes an agent from a defined purpose and tool set to a baseline scan, triaged ASI findings, verified fixes and a record of evidence, with the architecture items that testing cannot close listed separately. Each step names what it produces so the next one has a clear input.
Define the agent's purpose and tools
The owning team writes down what the agent is for, which users and data it serves, and every tool, MCP server, memory store and sub-agent it can call, with the permissions each one holds. This inventory is the basis for the rest of the work, because ASI02 Tool Misuse and ASI03 Identity and Privilege Abuse can only be tested against tools that are listed. It is done when a reviewer outside the build team can read the list and name what the agent could do if it were compromised.
Expose a test target that matches production
Connect promptfoo to an endpoint that runs the same prompts, tool definitions, guardrails, memory configuration and authorization path as production, not a simplified demo. Confirm which model versions and gateways sit in the request path, since a test against a different configuration produces results about that configuration. The step is complete when a single test request reaches the agent through the same route real users take and the tool calls it triggers are visible in logs.
Select the owasp:agentic framework
Choose the owasp:agentic preset in the red team configuration so the generated probes map to the ten ASI risks, from ASI01 Agent Goal Hijack to ASI10 Rogue Agents. Check the promptfoo documentation for the current plugin list, because the mappings change with releases and not every ASI risk has probes of the same depth. The output is a configuration file in version control that lists the preset and the target, so the scope of the scan can be reviewed later.
Set grading and data handling rules
Decide how responses are graded, whether by rule-based assertions, an LLM grader or a mix, and which model performs grading and where its logs go. Write down what test data may contain, who can read reports, and how long transcripts are kept, because agent probes can surface sensitive content from tools and memory. Confirm the grading model and its data terms with your security and legal reviewers before any scan runs against production data. Done when the rules are written and approved.
Run a baseline scan
Run the configured red team once against the agreed target and save the full result set without changes to the configuration. The baseline is a reference point for later comparison, so it should be produced under the same settings you intend to use in regular runs. Record the promptfoo version, the target build and the configuration hash with the output. The step is complete when the report is saved and the run metadata can reproduce it.
Triage findings against ASI IDs
Group each failed probe by its ASI identifier and by the tool, permission or memory store it touched, then mark each as a true finding, a grader error or a probe that does not fit this agent. Grader errors are common with agent transcripts, so a person should read a sample of passes and failures for each ASI category before any finding is closed. The output is a triage sheet with an owner, a severity judgment and a reason for every item.
Fix and retest
Assign each confirmed finding to the team that owns the affected component, such as tool scoping, system prompt, memory handling or the authorization layer, and rerun the same configuration after the change. A retest that passes only shows the probe no longer succeeds, so compare it against the baseline and check that the fix did not break legitimate tool use. Done when each finding has a fix reference and a retest result that the owner has accepted.
Record evidence and list design-review items
Store the configuration, baseline and final reports, triage sheet, fix references and retest results together under one identifier for the agent and release. Then list the ASI risks and architecture questions that probes could not settle, such as token passthrough in MCP integrations, cascading failures across agents and what a rogue agent can do outside its runtime, and assign them to architecture review. This list is what keeps a clean scan from being read as proof of coverage. It is done when the review items have owners and the evidence bundle is archived.
Questions buyers ask before testing OWASP agentic risks
Can our in-house team run promptfoo for OWASP agentic testing itself?
Yes, a capable in-house team can run promptfoo itself, because the software is MIT licensed and runs locally: evals run on your machine and talk directly with the model or application under test. The harder part is not installing the tool but deciding what to test, writing the target configuration for an agent that calls tools, reading results against ASI01 to ASI10, and recognizing the risks that a probe cannot judge. Check whether your team has people who can build realistic agent test scenarios, maintain them as the agent changes, and own the findings. If those skills are thin, a partner can take on the setup and first assessment while your team keeps the configuration and runs future scans.
What drives the effort of testing an agent against the OWASP agentic risks?
Effort follows the shape of the system more than the number of tests. The main drivers are:
- The number of agents and how they hand work to each other, which affects the ASI07 inter-agent communication tests.
- The number and type of tools, especially tools that write data, send messages or run code.
- The identity model, including whether agents act on behalf of users, use shared service accounts or hold broad privileges.
- Memory and retrieval stores that agents read and write across sessions.
- How complex the target is to reach, such as a multi-step workflow behind SSO or an agent that needs a human approval step.
Each added tool or identity boundary adds scenarios, test data and review time.
What do we need to provide before testing starts?
Plan to provide a test endpoint that behaves like production, test accounts with the same roles your real users and agents hold, sandbox data that resembles production without exposing real personal or customer records, and named owners who can answer questions about tools, permissions and business workflows. You will also need a decision on who can authorize tests that may change data or trigger external actions. Confirm with your platform team whether the agent runs in a staging environment and whether logs from the test runs can be kept. Missing owners are the most common cause of delay, because findings on tool permissions cannot be judged without someone who knows what each tool is meant to do.
Should we use promptfoo Community or Enterprise for agentic red teaming?
The Community edition is free, includes all LLM evaluation features, all model providers and integrations, and red teaming with 10k probes per month, with community support. It fits a single team running scans from the CLI or CI pipeline. Enterprise adds team sharing, teams-based access control and SSO, custom roles and permissions, continuous monitoring, a centralized guardrail dashboard, remediation recommendations and priority support with SLAs, at custom pricing. Enterprise On-Premise runs that functionality on your own infrastructure with complete data isolation and a dedicated deployment engineer. Choose Enterprise when several teams need shared results, access control or continuous monitoring. Ask the vendor for a written quote before assuming any edition fits your budget.
How long does setup take before the first agent test run?
Setup time depends on the factors above: how many agents and tools are in scope, how quickly test accounts and a staging endpoint become available, and whether the team has to build a custom target connection. Installation of promptfoo itself is quick compared with those steps. Note that the software requires Node.js 22.22.0 or newer, so check your runtime first. Ask any partner for a written timeline tied to the agreed scope, with dependencies such as access approvals and owner availability listed separately, so you can see which parts depend on your organization.
Does a clean promptfoo scan prove that our agent is compliant?
No. A scan shows how the agent responded to the probes that ran, under the grading rules and configuration you chose. It does not prove that every OWASP agentic risk is absent, and it does not produce an audit report or certification. Some risks, such as identity design, trust boundaries between agents, cascading failures and the decisions behind human approval, need architecture review that a probe cannot judge. Treat scan results as one input to a documented review, and ask an independent auditor or certification body to assess any compliance claim.
Which OWASP agentic risks do automated probes cover least well?
Automated probes cover goal hijacking and tool misuse reasonably well because the attack can be sent as an input and the response checked. Coverage is weaker for identity and privilege abuse (ASI03), agentic supply chain issues (ASI04), cascading failures (ASI08), human-agent trust exploitation (ASI09) and rogue agents (ASI10), where the risk lives in permissions, dependencies, monitoring and operating procedures. For Model Context Protocol servers, the MCP security best practices, protocol version 2025-11-25, call for token passthrough to be avoided, since servers must not accept tokens not issued for them. Confirm that with a code and configuration review, not only with prompts.
Why OWASP agentic coverage is not a compliance certificate
A passing promptfoo run against the owasp:agentic preset is evidence that specific probes were resisted, not that the agent conforms to the OWASP Top 10 for Agentic Applications. The OWASP list is a risk catalogue. It names ASI01 Agent Goal Hijack through ASI10 Rogue Agents and describes what to worry about, but it does not define a pass threshold or a conformance test. A red team scan samples attack variants against one configured target at one point in time. Record the preset version, the plugins and strategies enabled, the target configuration and the grading criteria alongside each report, so a reviewer can see exactly what was and was not exercised.
Regulators and buyers ask for different evidence. The EU AI Act, Regulation (EU) 2024/1689, sets obligations for providers and deployers of AI systems, and its requirements (risk management, data governance, logging, human oversight and documentation, depending on the system's classification) need their own records. NIST AI 600-1, the Generative AI Profile published on 26 July 2024, is a voluntary profile for trustworthiness across the AI lifecycle, and its governance and documentation expectations are not satisfied by a probe report. Decide early which framework your organization must answer to, then map each obligation to an owner, a control and a piece of evidence that exists outside the test output.
Only independent auditors and certification bodies issue attestations or certifications. DeployOpen prepares systems, controls and evidence for those assessments but does not issue audit reports or certificates, and promptfoo's output does not either. Before you tell a customer or regulator that an agent is aligned with the OWASP agentic risks, ask your assessor which evidence they will accept, whether they expect continuous testing or a dated snapshot, and who will sign off the scope. Plan the architecture review, access design and monitoring records as separate deliverables from the red team report.
How DeployOpen scopes and delivers agentic red teaming evidence
DeployOpen treats promptfoo red teaming for the OWASP Top 10 for Agentic Applications as a scoped engagement tied to your agents, their tools and their permissions. We run the owasp:agentic tests, document what they cover and hand over results with the architecture gaps that testing cannot close.
How we scope
- Agree in writing which agents, tools, MCP servers and memory stores are in scope before any testing starts.
- Map each in-scope agent to the ASI risks it can realistically be exposed to, such as goal hijack and tool misuse.
- Confirm the target endpoints, test accounts and permission levels that the red team will use, with your security team.
How we build
- Configure promptfoo against your agent endpoint so the test traffic reaches the same tools and permissions production uses.
- Run owasp:agentic plugins and strategies, then review the grading to confirm probe results match the behavior you expect.
- Test trust boundaries directly, including token handling between agents and memory write paths, where automated probes are limited.
How we hand over
- Deliver a findings report that lists each failed test, the ASI risk it maps to, and reproduction steps.
- Document which OWASP agentic risks the automated tests cover and which need architecture review, stated plainly.
- Provide the promptfoo configuration and run outputs so your team can rerun the scan and keep the evidence current.
How we support
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
- Retest agreed fixes and record the results alongside the original findings in the handover package.
- Ongoing support, upgrades and continuous testing are available as a retainer after the initial engagement.
Sources and further reading
- promptfoo docs: OWASP Top 10 for Agentic Applications ↗
- OWASP Top 10 for Agentic Applications for 2026 ↗
- OWASP Top 10 for Agentic Applications announcement (9 December 2025) ↗
- Model Context Protocol security best practices (2025-11-25) ↗
- MITRE ATLAS data release v2026.09 ↗
- promptfoo red teaming documentation ↗

