DKDKCISSP
AI Security

The Harness Is the Hard Part of Agentic Pentesting

An AppSec team can point an AI agent running on a general-purpose model at its own web apps with little setup.

DKCISSP News DeskThe Hacker News21 Oct 2026, 4:02 pm3 min read
The Harness Is the Hard Part of Agentic Pentesting
Image courtesy of The Hacker News. Original report
DKCISSP REPORT

Let’s take a closer look at the attack different stages and the role AI agents can take there A pentesting agent makes thousands of decisions about where to send its next request, and the model judges each one against a rule written in plain language.

The harness is where the engineering in AI pentesting sits.

The Hugging Face intrusion OpenAI disclosed in July showed what happens when that harness gives way, even inside an OpenAI evaluation built to contain the agents.

Once the fix lands, the exact same attack can be re-run to confirm the path is closed.

But everything that makes those attacks safe to run against production and worth acting on afterward lives in the harness around the model.

And around the controls sit the systems a production agent depends on, including change-triggered testing, routing findings to the developers who own the code, strictly controlling what customer data reaches a model provider, and connecting what the agent finds in the app to the rest of the environment.

Every finding ships with a replayable exploit script, a CVSS 3.1 score and CWE mapping, so developers can reproduce the attack themselves instead of taking it on trust.

An AppSec team can point an AI agent running on a general-purpose model at its own web apps with little setup.

Finding exposed credentials is part of what a pentest does, so the agent regularly comes across working keys outside its assignment.

Producing one worth acting on means running the exploit, capturing what it reached, and packaging the result so anyone can replay it, all within the limits of the other controls set.

What happened

Let’s take a closer look at the attack different stages and the role AI agents can take there A pentesting agent makes thousands of decisions about where to send its next request, and the model judges each one against a rule written in plain language.

The harness is where the engineering in AI pentesting sits.

What changed

The Hugging Face intrusion OpenAI disclosed in July showed what happens when that harness gives way, even inside an OpenAI evaluation built to contain the agents.

Once the fix lands, the exact same attack can be re-run to confirm the path is closed.

Who is affected

But everything that makes those attacks safe to run against production and worth acting on afterward lives in the harness around the model.

And around the controls sit the systems a production agent depends on, including change-triggered testing, routing findings to the developers who own the code, strictly controlling what customer data reaches a model provider, and connecting what the agent finds in the app to the rest of the environment.

Why it matters

Every finding ships with a replayable exploit script, a CVSS 3.1 score and CWE mapping, so developers can reproduce the attack themselves instead of taking it on trust.

An AppSec team can point an AI agent running on a general-purpose model at its own web apps with little setup.

Technical details

Finding exposed credentials is part of what a pentest does, so the agent regularly comes across working keys outside its assignment.

Producing one worth acting on means running the exploit, capturing what it reached, and packaging the result so anyone can replay it, all within the limits of the other controls set.

That context lets Pentera trace an exploit in a web app be traced into network, cloud, and identity on one platform.

Response

Enforcing scope means code that inspects every request before it leaves, and OWASP’s 2026 guidance routes privileged actions through a deterministic policy engine that checks them at execution time, outside the model.

A single product review is enough to plant malicious instructions.

What security teams should do

OWASP warns that approval fatigue degrades reviewer judgement at scale, so routing everything to a human simply shifts the failure point down the line.

Every model upgrade can change how the agent behaves, and every release changes the app whose security it tests.

Attribution

The Hacker News: An AppSec team can point an AI agent running on a general-purpose model at its own web apps with little setup.

What to watch next

Watch for updated vendor guidance and fixed-version details.

MORE IN AI SECURITY

More cybersecurity reporting

Week in review: Hidden implant in Ledger wallets linked to $93M theft, 1,500+ npm packages exposed - Help Net SecurityHelp Net Security · 18 Oct 2026, 1:30 pmAI Decision Models and Their Impact on AI SOC PlatformsThe Hacker News · 16 Oct 2026, 10:25 pmCERT-In Warns AI Agents Accessed Sensitive Data at Indian Organizations During TestingThe Hacker News · 16 Oct 2026, 12:23 pmServiceNow gives AI agents a passport, and limits on what they can do - Help Net SecurityHelp Net Security · 15 Oct 2026, 7:21 pm