Back to all posts

What OWASP’s Securing Agentic Applications V2 Gives Builders and Defenders

Andrea Siposova
Andrea Siposova
November 30, 2026
2
min read
What OWASP’s Securing Agentic Applications V2 Gives Builders and Defenders

If your team is moving an AI agent toward production, one question decides whether it is ready. How do you know it will stay within what you intended, under realistic and adversarial conditions?

‍

The OWASP GenAI Security Project has released Securing Agentic Applications V2, A Builder and Defender's Guide. It gives software developers, AI engineers, security architects and technical leads practical guidance for designing, building, deploying and operating agentic applications securely. V2 covers secure architectures, developer guidelines across the lifecycle, operational capabilities such as code execution and computer use, the tool and MCP supply chain, assurance, deployment and runtime hardening.

‍

Our team at Lasso contributed to the guide, with Andrea Siposova serving as chapter lead for Chapter 7, Assuring Agentic Applications, and teammates Eliran Suisa and Or Oxenberg adding their expertise alongside the OWASP community. This post explains why the guide matters now, looks closely at what the assurance chapter gives your team, and shows what has improved since V1.

‍

Why this matters now

‍

Agents have always been non-deterministic. The same input may not reliably produce the same output, so a passing test is one sample of possible behavior. An industry study by Thinking Machines Lab, Defeating Nondeterminism in LLM Inference, ran the same temperature-zero prompt 1,000 times and saw 80 distinct completions.

‍

What has changed is how much depends on that behavior. The agents V2 describes invoke tools, access data and act with delegated privileges. In that setting, a failure can mean an unauthorized action and not merely a wrong answer.

‍

Three points from the guide show why a clean test run before launch does not settle the matter.

‍

  • Capability emerges at runtime. Tool use, memory, autonomy, external data and accumulated state create execution paths that only appear in context.
  • Capabilities combine. The guide describes the lethal trifecta, which is access to private or sensitive data, exposure to untrusted content, and the ability to communicate externally. An agent holding all three can be manipulated into exfiltrating data. Coding and computer-use agents are, by definition, in this position.
  • The system keeps changing. Models, prompts, tools and permissions are updated, and tools or skills can appear, disappear or be renamed in an MCP catalog without explicit human intervention.

‍

This is why the guide states that assurance strategies for agentic applications must extend beyond static testing. A team needs to say what the agent is for, test against that, and test again when the system changes.

‍

A practical guide for your team

‍

The chapter Lasso team led starts by defining what you are aiming for. It defines assurance as a risk-based, evidence-backed case that the application's design assumptions hold under realistic and adversarial conditions.

‍

That case starts with the design, because testing has nothing to falsify until the design has named its own assumptions. The chapter asks you to state the intended scope, meaning what the application is for, the behavior it should and should not exhibit, the data and tools it may use, and its trust boundaries. A scope stated vaguely, such as "act as a helpful assistant", cannot be configured, tested or monitored against.

‍

Before any testing begins, the design produces five explicit, testable statements.

‍

  • Intended capability boundaries, stating what the agent is permitted to do and what it is not.
  • Trust boundary declarations for each input source, including user prompts, tool results, memory retrievals, inter-agent messages and web content.
  • Threat assumptions, stating which threats the design mitigates, which it accepts as residual risk, and which are out of scope.
  • Safe failure states for each high-risk capability.
  • Operational-environment assumptions that, if violated, would invalidate the controls.

‍

The result is an assurance case with four parts. These are declared design assumptions, validation evidence, runtime evidence and change traceability. It gives builders, security engineers and the accountable owner one shared record of what was promised, what was tested and what is still accepted as residual risk.

‍

The rule for what belongs in it is strict, because a design assumption that cannot be linked to a control, test or monitoring signal remains an unsupported assumption.

‍

Failures that need no attacker

‍

Red teaming stays in the chapter as the adversarial half of validation. It attempts to falsify the assumptions behind the controls, and it should run before deployment, on material change, and on a regular cadence. For attack techniques and tooling the chapter points to the dedicated OWASP red teaming guides.

‍

The less familiar half is behavioral testing. It measures whether the agent remains within its intended scope across representative in-scope usage. It surfaces five failures that require no attacker at all.

‍

  1. Scope drift. Gradual departure from the intended boundary on routine inputs.
  2. Silent composition. Sequences of individually permitted actions that compose into an out-of-scope outcome.
  3. Encoding gaps. Declared constraints never correctly translated into operational controls.
  4. Over-restriction. Blocking or escalation of legitimate in-scope requests.
  5. Control miscalibration. A guardrail, classifier or policy control that incorrectly permits out-of-scope behavior or blocks legitimate in-scope behavior.

‍

The last two matter to anyone who has had to defend a security control to a product team. An agent that over-refuses has failed its intended scope as surely as one that oversteps it. Persistent refusal may not be a sign of over-caution but of an encoding failure or a miscalibrated control. Behavioral testing makes the security and utility trade-off explicit and measurable, so the discussion can rest on evidence.

‍

Benchmarks built from your own scope

‍

Many teams reach for a public benchmark to show an agent is ready. The chapter is direct about the limits of that. General-purpose benchmarks such as AgentBench, HELM and WebArena give a useful baseline for broad capabilities, but they are not designed to validate a deployed agentic system and should not serve as primary assurance evidence.

‍

  • Generic context. They do not evaluate your deployment's capability set, trust boundaries or operational environment. A high-scoring agent may still over-refuse legitimate requests or under-refuse against its declared boundaries.
  • No capability for composition. They evaluate capabilities in isolation and do not model the lethal trifecta.
  • Scores, not evidence. A score is not traceable to a declared design assumption.

‍

The chapter adds a method for building your own benchmark. A custom benchmark answers what a general-purpose one cannot. Is this agent refusing requests it should permit? Is it permitting actions it should block? Does it behave correctly at the boundaries of its declared scope?

‍

Action-based benchmarks check single decisions. You sample test cases from the design-time scope, define the expected record of each action, run the deployed agent, and compare field by field. Each failure is classified as a security failure, a usability failure or an instrumentation failure. The records come from the logging and hook instrumentation the guide already specifies.

‍

Trajectory-based benchmarks check the whole path, because a sequence of individually permitted actions can compose into an out-of-scope outcome. The unit of evaluation is the path, not the endpoint. The chapter names four deviation types, which are honest misexecution, overreach, prohibited composition and cross-session drift. Each one points to a different detection frame and a different response.

‍

Both kinds run in CI/CD. A change that shifts behavior relative to declared boundaries should block release the same way a failing security test does.

‍

A rule for when to test again

‍

A test result describes the system that was tested. The chapter therefore names the changes to a deployed system that must trigger explicit revalidation of the affected scope elements.

‍

  • A new tool integration or an expansion of operational capabilities.
  • A change to memory architecture.
  • A modified trust-boundary assignment for an input source.
  • An update to system prompts or agent instructions.
  • A change to orchestration logic or workflow transitions.
  • An infrastructure change affecting environment assumptions.
  • An incident or anomaly suggesting a declared mitigation did not operate as designed.
  • Background catalog drift in the MCP catalog.
  • Changes to third-party declarations the assurance case relies on, such as tool effect annotations, agent card claims or skill manifest permissions.

‍

Revalidation is not necessarily a full retest. It is a partial replay of the affected design checks, red-team scenarios and behavioral cases, with the scope updated first. That keeps the cost proportionate, and it gives teams a defensible answer to the question of what must be re-run after a change. An undocumented decision to skip revalidation is itself an assurance gap.

‍

How to start

‍

The chapter is written so that software builders, security engineers and defenders can follow the same process. A team can adopt it in this order.

‍

  1. Write the intended scope precisely enough that a reviewer can decide, for any given action, whether it falls within the boundary. Include capability compositions that stay out of scope even where each capability is individually permitted.
  2. Record the five design-time scoping statements and version them with the codebase.
  3. Link every design assumption to a control, a test or a monitoring signal.
  4. Use red teaming to try to falsify the assumptions behind the controls.
  5. Build action-based and trajectory-based benchmarks from your own scope and run them in CI/CD.
  6. Treat the listed changes as revalidation triggers, replay the affected checks, and document the decision.

‍

A team that does this can answer the opening question with evidence. It can show what the agent is for, which boundaries were tested, which failures were found with and without an attacker, and what was re-run after the last change.

‍

Read the guide

‍

Securing Agentic Applications V2 is community developed and released under CC BY-SA 4.0 by the OWASP GenAI Security Project. If you build or defend agentic applications, this resource is a must-read.

FAQs

No items found.

Trusted Security for a World Run by AI

Protect every AI interaction with Lasso.
Book a Demo
Text Link
Andrea Siposova
Andrea Siposova
Text Link
Andrea Siposova
Andrea Siposova