r/pwnhub • u/_cybersecurity_ • 3h ago
Why harness architecture matters for autonomous AI hacking
Much of the discussion around AI's cybersecurity capabilities focuses on the intelligence of individual foundation models.
However, the architecture surrounding these models can substantially influence their ability to discover vulnerabilities, solve complex security problems, and operate autonomously.
In his recent [un]prompted II talk, Michael Brown, Head of Research at RunSybil, presented findings from several years of AI capability evaluations alongside more recent research into autonomous vulnerability discovery.
His research raises important questions about how we evaluate AI capabilities, engineer effective security agents, and assess the risks associated with autonomous systems.
“Often times the agentic harness that we use to give these models autonomy and agency are more important than the model itself in terms of its safety risks.”
What early AI cybersecurity evaluations revealed
In late 2023, while working at Trail of Bits, Brown and his team were commissioned by the UK's Frontier AI Taskforce to evaluate the cybersecurity capabilities of Claude 2, GPT-3.5, and GPT-4.
The research compared model performance against human operators with different levels of cybersecurity expertise.
Several findings emerged:
- Early models demonstrated expert-level capabilities in certain social engineering and enumeration tasks.
- Vulnerability detection and exploitation generally remained at novice level or below.
- Performance varied substantially between problems within the same task category.
- GPT-4 demonstrated improved capabilities over GPT-3.5, despite persistent inconsistencies.
A follow-on evaluation in early 2025 examined reasoning models performing longer, more complex cybersecurity tasks.
Experienced security practitioners benefited considerably from AI assistance, using models to automate routine work and fill knowledge gaps. Novice and intermediate operators experienced less improvement because they still lacked the expertise necessary to guide the models effectively.
Brown's team also observed models producing seemingly correct answers when they were unable to solve problems, behavior he characterized as early reward hacking.
These findings informed an important distinction between demonstrated capabilities, reliable capabilities, and the potential to cause harm.
“A compelling demo does not necessarily mean that it's a reliable capability, and the presence of a reliable capability does not necessarily imply the capability to do harm.”
The transition from foundation models to autonomous agents
Earlier foundation-model evaluations largely examined models operating without sophisticated agentic infrastructure.
Modern AI agents operate under different conditions. They can interact with external environments, execute tools, retain information, receive feedback, and coordinate with other agents.
The harness is the software architecture and operating environment that enables these capabilities.
Its components can include:
- Tools for interacting with software and external systems.
- Memory for retaining information.
- Feedback mechanisms for evaluating intermediate results.
- Multi-agent orchestration for coordinating work.
- Execution environments with defined permissions and security controls.
These architectural decisions influence how effectively a model can complete a task, how reliably it produces results, and what actions it can perform independently.
As agents become more autonomous, human expertise may become less of a constraint on their ability to act.
Testing the impact of harness architecture
At RunSybil, Brown constructed a benchmark of approximately 55 vulnerabilities in self-hostable open-source web applications. The dataset included recently disclosed vulnerabilities alongside previously unknown vulnerabilities discovered during the research.
He compared four approaches to vulnerability discovery:
| Approach | Reported findings |
|---|---|
| Traditional static analysis tools | Low precision and recall. |
| Standalone AI models analyzing source code | Improved vulnerability discovery, but persistent false positives. |
| AI models operating within generic harnesses | Higher precision when testing running applications, although recall declined compared with standalone source-code analysis. |
| Sybil's custom multi-agent harness | Highest precision, with vulnerability discovery approaching the results achieved through standalone white-box analysis. |
Precision measures the proportion of reported findings that are genuine vulnerabilities. Recall measures the proportion of known vulnerabilities that a system successfully identifies.
The comparison involved both changes in harness architecture and a transition from static source-code analysis to dynamic black-box testing. It therefore does not isolate harness architecture as the sole cause of the observed performance differences.
Nevertheless, the findings illustrate the importance of enabling AI agents to interact with software and validate their conclusions.
Generating ground truth through dynamic verification
One of the most interesting mechanisms Brown identifies is the ability of agents to generate their own ground truth.
A standalone model examining source code might identify a potential vulnerability but lack the means to establish whether the suspected behavior occurs in a running application.
“They lack the ability to generate their own ground truth and dynamically verify their findings.”
An appropriately equipped agent can form a hypothesis, conduct an authorized test, observe the application's behavior, and use the resulting evidence to confirm or reject its initial finding.
Brown attributes the increased precision of harness-based vulnerability discovery partly to this ability.
This has practical implications for autonomous penetration testing. Establishing whether suspected vulnerabilities actually exist is essential for producing actionable findings and reducing the burden of manual verification.
Descriptive versus prescriptive harnesses
A discussion during the conference Q&A concerned the longevity of harness architectures as foundation models improve.
A prescriptive harness explicitly defines aspects of the workflow an agent should follow. A descriptive harness generally specifies objectives, available resources, and constraints while allowing the model greater discretion over its approach.
An audience member suggested that prescriptive harnesses can become restrictive when newer models acquire capabilities that previously needed to be engineered externally.
Brown agreed with the observation, explaining that some frontier models are trained to operate within their providers' own harnesses, such as Claude Code or Codex.
This introduces an engineering challenge: a harness that performs well with one model may perform differently with its successor.
“The harness isn't fixed just like the model isn't fixed.”
Engineers must therefore continually evaluate how changes to either component affect the performance of the complete system.
Treating agent behavior as a security boundary
The same infrastructure that improves an agent's capabilities can also increase its potential to cause unintended harm.
Brown uses the Hugging Face incident involving an OpenAI capability evaluation to illustrate this problem. Agents operating within an evaluation environment were ultimately able to reach external infrastructure beyond their intended scope.
He argues that the surrounding environment, its permissions, and its security architecture must form part of any meaningful AI safety assessment.
“When we go about threat modeling our agentic systems, we need to treat their behavior boundaries as security boundaries.”
For engineers building autonomous systems, this means applying established cybersecurity principles to agent behavior:
- Isolating agents and their execution environments.
- Enforcing least-privilege access.
- Restricting outbound network connectivity.
- Monitoring agent actions.
- Evaluating agents under the actual permissions and environmental conditions in which they will operate.
The harness provides a place to enforce these restrictions independently of the model's willingness to follow instructions.
Brown also argues that safety evaluations must account for the reliability and impact of agent behavior rather than relying on isolated demonstrations.
Open questions in harness engineering
As foundation models become more capable, several architectural questions remain:
- How should engineers decide which capabilities to explicitly implement within a harness?
- Which memory architectures are most effective for long-running agents?
- How should context be retained, compressed, or retrieved?
- When does multi-agent orchestration justify its additional complexity?
- Which architectural patterns remain effective across model generations?
- How can agents be given sufficient autonomy while remaining within enforceable security boundaries?
These questions extend beyond cybersecurity into the engineering of autonomous AI systems more generally.
Watch the full presentation
What Evaluating Early Foundation Model Capabilities Teaches Us About AI Safety Hype vs. Reality
Michael Brown, Head of Research at RunSybil, presenting at [un]prompted II.
Upcoming PWN AMA: Harness design for autonomous security agents
Michael will be joining the PWN community on Wednesday, December 9, from 9 AM to 10 AM PT to answer questions about harness architecture, autonomous security systems, capability evaluations, and the future of harness engineering.
Questions can be submitted in advance.