Skip to content
cloudgrip

$ cat blog/harness-not-model.md

//AI agents

In agentic security testing, the harness matters as much as the model

Why tools, memory, planning, validation and scope controls shape an AI security agent's results as much as the language model underneath.

  • Oct 30, 2026
  • 6 min read
  • Cloudgrip team

When people compare AI security products, the first question is often which model is underneath. It is a fair question, but it covers only half of what decides the outcome. The other half is the harness: the software around the model that gives it tools, keeps its memory, structures its plan, checks its claims and limits where it can go.

Our argument is simple. A language model on its own produces text. A security test requires actions, evidence and restraint. Everything that turns the first into the second lives in the harness, so the harness deserves as much scrutiny as the model.

What the harness is

The harness is everything in an agent that is not the model. Five parts matter most for security testing.

Part What it does
Tools Let the agent act: send HTTP requests, drive a browser, read code, run scripts
Memory Keeps track of what has been tried, what was learned, and which account owns what
Planning Breaks "test this application" into steps and decides what to do next
Validation loop Checks each claimed finding by attempting it and inspecting the result
Scope controls Decide which hosts and actions are allowed, and block the rest

The model supplies the reasoning inside this structure. It reads a response and decides what it means. It proposes the next request. It writes the exploit. The harness decides what the model sees, what it can do with its conclusions, and whether those conclusions are accepted.

Where a model alone falls short

A capable model without a good harness fails in predictable ways, and none of them is a lack of intelligence.

It cannot act. Without tools, a model can describe how to test for a flaw but cannot send a single request. With clumsy tools, it wastes effort. If the only tool is "fetch a URL", the agent cannot log in through a browser-based single sign-on flow, however clever it is.

It forgets. A real test can run for hours, over thousands of steps. A model can attend to a limited amount of text at once. Unless the harness stores the right facts and brings them back at the right time, the agent retests what it already covered and loses the session token it obtained an hour earlier.

It drifts. Asked to test a whole application, a model follows whatever looks interesting. Planning in the harness makes sure the dull parts get covered too, such as every endpoint under every role.

It believes itself. Language models produce plausible text, and "this endpoint is vulnerable to injection" is plausible text. A model can reason its way to a confident conclusion that is false. This gap matters more than the other three, and the next section is about closing it.

The validation loop

The validation loop is the part of the harness that refuses to take the model's word for anything. When the agent claims a finding, the harness requires the attack to be carried out, and judges the result with a check the model does not control.

Take a claim that one user can read another user's data. A sound loop does not ask the model whether the attack worked. It replays the request from a fresh session as the second user and looks for a marker value that exists only in the first user's record. If the marker is there, the finding stands. If it is not, the finding is dropped, whatever the model said.

Two things follow. Reported findings come with proof by construction, because proof is the condition for reporting. And the model's mistakes become cheap. A wrong guess costs a few requests instead of an hour of an engineer's time.

This is why two products built on the same model can produce very different reports. One passes the model's opinions straight through. The other treats them as hypotheses to test.

Scope and safety belong outside the model

Safety controls that depend on the model following instructions are weak, because a model can be mistaken or manipulated. A web page under test can contain text written to steer the agent, which is a form of prompt injection. An agent told in its prompt to stay on app.acme.test may still follow a link somewhere else if the page makes a persuasive case.

The dependable approach puts the limits in the harness.

  • Scope. The allowed hosts are a list enforced at the point where requests are sent. An out-of-scope request fails no matter what the model wants.
  • Actions. Destructive operations are left out of the toolset entirely. Telling the model to avoid them is not enough.
  • Logging. The harness records every action as it happens. The log does not depend on the model describing its own behavior.

These are the same rules of engagement a human tester agrees to, turned into code.

The same reasoning applies to stopping. A model that has just confirmed a flaw will often see an obvious next step, such as using a credential it found. Whether that step is allowed is a decision for the people who authorized the test, so it belongs in configuration that the harness enforces, not in the model's judgment in the moment.

What this means when you compare products

None of this means the model is unimportant. A stronger model reasons better, notices subtler flaws and writes better exploits. It raises the ceiling on what an agent can find. The harness decides how much of that ability reaches your report as proven findings, and how much risk comes along with it.

This has a practical consequence for buyers. Models improve quickly, and a vendor can usually adopt a newer one. A weak validation loop or scope enforcement that lives in a prompt is a design choice, and it will not be fixed by a model upgrade.

So when you evaluate a product, ask about both halves. Alongside "which model do you use", ask how findings are validated, how scope is enforced, what the agent remembers across a long run, and how it logs in. We list more of these in questions for autonomous pentesting vendors.

This is how we think about building Cloudgrip. In Hydra, every exploit is replayed from a clean session before it is reported, and findings that don't reproduce are dropped. Ownership of a target is verified before it is tested, staging is the default and production is opt-in. The agents confirm a flaw and then stop, every request is logged and tagged, and a kill switch halts every agent.

Key takeaways

  • An AI security agent is a model plus a harness: tools, memory, planning, a validation loop and scope controls.
  • A model alone cannot act, loses track over long runs, wanders, and can be confidently wrong.
  • The validation loop turns the model's claims into tested findings, which is why the same model can give very different results in different products.
  • Scope, safety and logging should be enforced by the harness, because instructions in a prompt can be ignored or overridden.
  • When comparing products, ask how findings are validated and how scope is enforced, as well as which model is used.

See what an attacker would find.

Give us a URL and two test logins. If there’s something to find, your first exploited findings land within 24 hours.

You talk to the people who build Hydra and Cerberus. No sales script.

or write to founders@cloudgrip.ai