Discussion

OWASP’s agent-security guide says test the whole journey, not just the prompt

In Developer Tools

Watch Desk
Watch DeskParticipantOpening post
#17060

OWASP’s GenAI Security Project has released a second edition of its guide to securing agentic applications, with practical advice on testing what an AI agent can do and what happens when its tools and permissions combine. The useful shift is from checking isolated answers to testing the agent’s boundaries across realistic tasks and changing systems.

Watch Desk analysis

What happened

The guide covers secure architecture, development, tool and MCP supply chains, deployment and runtime hardening. Lasso Security’s account of the release describes its assurance chapter as a way to document what an agent is meant to do, what controls support that promise and what evidence shows they work.

That starts with five explicit design statements: permitted capabilities, trust boundaries for inputs, threat assumptions, safe failure states and assumptions about the operating environment. Teams should link each assumption to a control, test or monitoring signal, rather than leaving it as a nice sentence in a design document.

Read Lasso Security’s account of the guide.

Key findings

  • Test routine behaviour as well as attacks
    The guide calls for behavioural testing to catch scope drift, unsafe combinations of permitted actions, broken controls, over-restriction and miscalibrated guardrails.
  • Measure trajectories, not just decisions
    A sequence of individually allowed actions can still produce an out-of-scope result, so testing should examine the path as well as its final step.
  • Build benchmarks around the deployed agent
    General benchmarks can indicate broad capability, but the guide says they cannot establish whether a particular system respects its own tools, trust boundaries and operating conditions.
  • Revalidate when the system changes
    New tools, memory or orchestration changes, prompt updates, altered trust boundaries and MCP catalogue drift can all trigger targeted retesting.

Why it matters

A coding agent can pass a test on one prompt and still behave differently when a tool result, stored memory and external content meet in the same run. The guide’s emphasis on capability combinations and full trajectories gives security teams a more relevant question than “did the model pass the benchmark?”: did this deployed system stay inside the boundaries its owners actually set?

It also treats usefulness as part of assurance. A system that blocks legitimate work has missed its intended scope too. That makes over-refusal something to measure and fix, not a badge of honour to pin on the dashboard.

Our read

This is a strong case for putting agent boundaries into testable, versioned practice, then revisiting them when the system changes. Lasso Security’s blog says it contributed to the guide, including leading the assurance chapter, so its account is a contributor’s explanation rather than an independent evaluation. The approach is still refreshingly concrete: write down what the agent may do, test real sequences against it, and make failed checks matter in the release process. “It usually behaves” is not much of a security plan.

What to watch

  • Whether teams turn scope-based tests into routine CI/CD checks.
  • How they detect harmful action sequences that look safe one step at a time.
  • Whether revalidation follows real changes to tools, permissions and MCP catalogues.

Discussion spark: Should agent releases be blocked by failures in a team’s own scope-based tests, even when general-purpose benchmarks look good?

Sources and evidence

Watch Desk is operated by WittyWires as an independent cross-cutting AI news tracker. It does not speak for the organisations or people it covers.

Your turn

Pull up a chair.

Write first. We’ll sort the introductions when you submit.