From Capability to Assurance in Autonomous Penetration-Testing Harnesses: A Framework and Reference Implementation
Organizations: Independent Researcher — AI and Offensive Security S˜ao Paulo, SP, Brazil
Abstract
Research on large language model agents for penetration testing is evaluated almost entirely by capability: whether the agent captures a flag or reproduces a proof of concept. That metric suits a benchmark but is silent on the properties that decide whether an autonomous agent can be used in an authorized engagement: whether a reported finding is true, whether the agent stayed inside its authorized scope, and whether an operator can audit what it did. We call these assurance properties and argue that they belong to the harness, the runtime wrapping the model, and can be enforced in code. This paper makes three contributions. First, we define a framework of five assurance properties (evidence grounding, non destructive claim reduction, computed severity, enforced authorization, and tamper evident accountability), each with a formal model and an explicit acceptance test, connected to prior work in capability based security, tamper evident logging, and software provenance. Second, we position representative systems (PentestGPT, the Cochise reference harness, MAPTA, and the trajectory judge PentestJudge) within the framework using published coding criteria, and identify a consistent assurance gap. Third, we study one open source implementation, NeuroSploit, pinned to an exact commit, reporting its architecture, its complexity cost, and a content addressed artifact bundle from a run against a public deliberately vulnerable target. We execute the deterministic authorization and audit acceptance tests directly and find and report a real enforcement gap, which we reflect by scoring both properties as partial. We therefore claim an initial existence argument that the properties are realizable together, not a comparative performance result, and we specify the multi target, ablation, and adversarial evaluation protocol required to turn the framework obligations into measurements.
Figures & tables
| PentestGPT | Cochise | MAPTA | PentestJudge | NeuroSploit | |
| [ 2 ] | [ 7 ] | [ 4 ] | [ 13 ] | [ 34 ] | |
| P1 Evidence grounding | — | — | ✓ | ✓ | |
| P2 Non-destr. reduction | — | — | ✓ | ||
| P3 Computed severity | — | — | — | — | |
| P4 Enforced authorization | — | — | — | — | |
| P5 Tamper-evident audit | — | — | — | — |
| Item | Value |
|---|---|
| Commit SHA | 8894649ccb42a04c4763085b3b663e49fd98ddf5 |
| Describe/tag | v4.0.0-32-g8894649 |
| Commit date | 2026-09-18 |
| Measurement date | 2026-09-18 |
| OS | macOS 15.1 (Darwin 24.1.0, arm64) |
| Toolchain | rustc / cargo 1.96.0 |
| Case | Expected | Observed |
|---|---|---|
| Valid token | verify | verified, grant printed |
| Tampered token | refuse | refused (signature) |
| Wrong signing key | refuse | refused |
| Expired ( past) | refuse | flagged expired |
| Off-grant host in local scope | drop | dropped from hard scope |
| Off-grant primary target | refuse | reconned (gap) |
| Component | Metric |
|---|---|
| Rust modules (harness crate) | 40 |
| Rust LOC (harness crate) | 23,370 |
| Rust LOC (workspace, excl. target ) | 28,802 |
| Automated tests ( #[test] / #[tokio::test] ) | 312 |
| Deterministic validators (impl CweValidator ) | 27 |
| CWE identifiers referenced by validators | 31 |
| Quantity | Value |
|---|---|
| Agents scheduled | 245 |
| Agents producing a verified finding | 25 |
| Findings after verification | 27 |
| Critical / High / Medium / Low / Info | 1 / 6 / 14 / 4 / 2 |
| Distinct CWE classes | 13 |
| PoC scripts / evidence screenshots | 32 / 27 |
Automated Penetration Testing
Automated penetration testing uses software agents to find, verify, and assess exploitable weaknesses in systems.
See all 48 papers