AI-TechScienceGovernmentBusinessSportsEntertainment
AI-Tech

Autonomous security agents need verifiable receipts before claiming real vulnerabilities

Enforceable runtime wrappers that require cryptographic receipts and strict authorization boundaries can prevent offensive language models from hallucinating network flaws or drifting into unauthorized computer targets.

18 statements added by Joas · 3 Dec see what was added
Autonomous security agents need verifiable receipts before claiming real vulnerabilities
Source: Primary generated image. © 2026
Published3 Dec 2026, 23:12 Last updated3 Dec 2026, 23:12 Sources
Source mode Marks each sentence drawn from a source or a contributor

Autonomous security software powered by artificial intelligence can discover genuine software vulnerabilities, yet automated agents regularly invent flaws that do not exist or drift onto network systems they possess no legal authority to touch. In a controlled laboratory benchmark, an automated agent might register a clean score simply by retrieving a specific text string from an isolated target server. In commercial practice, an organization hires penetration testers to evaluate live corporate systems, where an ungrounded bug claim wastes hundreds of engineering hours and unauthorized network traffic can violate computer crime statutes.

When an autonomous program inspects a network target, several things must happen in a precise causal sequence before anyone can conclude that a vulnerability exists. The software must transmit a specific input to a server, receive and parse the incoming network packet, verify that the server reacted differently than expected, and reproduce that change to confirm the effect. Only after that target responds with verifiable data can an operator establish that a security flaw is real. If an artificial intelligence model fills gaps in reasoning with plausible guesses, the resulting report can describe devastating security breaches that never occurred on the wire.

A related operational hazard occurs when an automated agent encounters unexpected web addresses or redirected traffic. The program may follow an external hyperlink to a payment processor or a public cloud service, treating that new destination as just another target. Because the software possesses the capability to launch exploit payloads, a single unguided decision can turn an authorized corporate audit into an unlawful attack against a bystander. In a preprint paper posted to the arXiv server on September 19, 2026, independent researcher Joas Antonio dos Santos Barbosa in São Paulo, Brazil, argued that solving these problems requires shifting focus away from raw model capability and toward enforceable software guarantees.

Why do automated security agents struggle with real engagements?

Existing automated penetration testing systems fail in production because their development has focused almost exclusively on benchmark scores rather than operational truth, authorization, and accountability.1 Academic evaluations regularly test whether an agent can solve specialized capture-the-flag competitions, where discovering a hidden token proves that an exploit succeeded.1 In contrast, corporate security audits require a detailed written assessment that clients can trust without repeating every manual test themselves.1

Language models frequently produce coherent narratives describing vulnerabilities that do not exist, a failure pattern that costs human teams time and undermines confidence.1 Earlier research showed that large models can perform individual offensive security tasks while struggling to manage end-to-end campaigns. In a paper posted to arXiv in August 2023, Gelei Deng and nine colleagues at Nanyang Technological University and partner institutions documented that while language models could operate testing tools and interpret output, they suffered from context loss when attempting to track an entire assessment.1 Deng and his colleagues created PentestGPT, a system dividing testing work across three self-interacting modules, which achieved a 228.6% increase in task completion over a base GPT-3.5 model across benchmark targets.2

Subsequent multi-agent architectures yielded further efficiency gains. The CHECKMATE system organized tasks into planning, execution, and perception roles, achieving an improvement of more than 20% in task success and a cost reduction of more than 50% through harness design alone while keeping the underlying model fixed.1 Other systems, including HPTSA and MAPTA, introduced specialized sub-agents and tool-grounded execution with end-to-end exploit validation.3 However, as benchmark studies such as PentestEval revealed, an agent pipeline can see overall success rates fall to 31% or lower across complex multi-stage tasks, even when per-stage success appears promising.1

Barbosa reported that none of these operational systems provide structural guarantees that an agent remains inside authorized boundaries or grounds its final claims in unalterable evidence.1 Evaluating representative tools against objective criteria, Barbosa noted that systems such as PentestGPT, the 630-line Python reference harness Cochise, and the trajectory evaluator PentestJudge lack mechanisms for computing evidence-based severity ratings, enforcing legal authorization ceilings, or generating tamper-evident activity logs.4 While PentestJudge evaluates whether an agent displays reckless behavior across its entire run, that trajectory assessment operates at the level of whole executions rather than individual network actions.1

What stops an autonomous tester from inventing flaws or drifting off target?

Software wrappers can enforce operational constraints by rejecting unverified claims and blocking unauthorized requests before network packets leave the machine. Barbosa defined five distinct assurance properties that should reside in the harness, the runtime software layer that surrounds a language model with tool wrappers, memory management, and execution shells.1 These properties transform abstract security guidelines into concrete code obligations that can be validated using deterministic tests.

Autonomous security agents need verifiable receipts before claiming real vulnerabilities
Source: Amazon

The first property, evidence grounding, mandates that no vulnerability finding can enter the final report without an independently verifiable receipt.1 A receipt consists of raw tool output, such as an HTTP server response, a shell transcript, an out-of-band network callback, or an application error code, stamped with an action hash and a timestamp. To satisfy this rule, a deterministic decision procedure operating outside the language model must confirm the receipt. If an operator injects a syntactically plausible but fabricated transcript that lacks a matching cryptographic action hash, the acceptance test requires the harness to block the finding from reaching asserted status.1

When asked how the runtime prevents an agent from reusing captured traffic, Joas said in response to questions from Primary that isolated verification remains incomplete. "This is precisely the limitation of verifying an isolated hash: it may be valid yet belong to a different execution," Joas said. "To detect the assembly of old proofs, the verification mechanism must link each piece of evidence to the action that generated it, the target, the execution, and its position within a record whose sequence can be verified. If an agent presents historical hashes to explain a new finding, that causal relationship does not establish the correct timeline."

The second property, non-destructive claim reduction, prevents the system from either deleting genuine observations or exaggerating their real-world impact.1 When an agent discovers a functional flaw, such as an unauthenticated administrative endpoint, but cannot prove that remote code execution is possible, the harness decomposes the claim into its verified mechanics and unproven impact. The harness rewrites the finding into one of four typed outcomes: a supported finding, an informational observation, an insufficient evidence marker, or an invalid claim.1 If the underlying mechanic is verified, the software retains and downgrades the finding rather than discarding it.1

Severity ratings must also reflect demonstrated evidence rather than worst-case theoretical risks. Under the third property, computed severity, the harness calculates vulnerability scores using the Common Vulnerability Scoring System base function, with values keyed directly to physical receipts. The harness assigns two separate scores: a demonstrated score capped by the actual damage proved during the session, and a potential score reflecting theoretical severity. The demonstrated rung follows a strict order, climbing from reaching an endpoint, to reading data, writing data, executing code, and crossing security boundaries.1 By separating demonstrated impact from potential risk, the harness avoids penalizing a security tester who deliberately refrains from damaging a live client database.1

To prevent scope drift, the fourth property enforces cryptographic authorization. A client provides a signed capability token containing allowed hosts, network ranges, URL prefixes, action ceilings, expiration windows, and unique numbers used once.1 The runtime checks every proposed network interaction against this token alongside local configuration rules.1 Even if the internal reasoning of a language model attempts to contact a newly discovered domain, the harness refuses the request. A battery of adversarial scope tests, including HTTP redirects pointing outside scope, domain name rebinding, alternate IP address encodings, and altered authorization tokens, must all be rejected by the runtime.1

Asked about edge cases that could evade this enforcement, Joas told Primary that external tools remain the critical vulnerability. "The scenario that concerns me most is an agent triggering an external tool that opens its own network connection," Joas said. "While the harness can correctly verify URLs, redirects, and DNS for the calls it controls, that tool might create a socket or use a proxy outside that path. In such a case, the validation is bypassed without even breaking the token signature. That is why the scope enforcement is considered partial: to be truly effective, blocking must also be implemented at the network egress layer, covering child processes as well."

The fifth property, tamper-evident accountability, requires the harness to record every action in an append-only cryptographic log.1 Each action record contains a hash of its contents combined with the hash of the preceding record, forming a continuous hash chain. Because a local user with administrative access could theoretically recalculate an unanchored hash chain after editing historical entries, the framework requires periodic external anchoring. By submitting root hashes to a write-once storage repository, a trusted timestamping service, or a public transparency ledger, the harness ensures that any deleted, modified, or reordered log entries are mathematically detectable.1

Can code enforce these boundaries in practice?

Deterministic checks can successfully validate and constrain autonomous security actions in code, although building complete end-to-end enforcement remains an active engineering challenge. To demonstrate that the five assurance properties can operate together, Barbosa evaluated an open-source security harness written in the Rust programming language, called NeuroSploit. All measurements were conducted on a specific software release, identified by Git commit 8894649ccb42a04c4763085b3b663e49fd98ddf5 and version tag v4.0.0-32-g8894649, dated September 18, 2026, and compiled using Cargo version 1.96.0 on a computer running macOS 15.1.

In the NeuroSploit architecture, an initial reconnaissance phase constructs an internal belief state represented as a property graph.1 Each node in the graph tracks a probability and an evidence count, updated through Bayesian calculations, while Shannon entropy measures the uncertainty of the model. When uncertainty remains high, a value-of-information calculation forces the harness to gather more network observations instead of launching premature exploit attempts.1

Autonomous security agents need verifiable receipts before claiming real vulnerabilities
Source: NOAA National Severe Storms Laboratory (CC BY 2.0)

Explaining this balance, Joas told Primary that the harness models the engagement mathematically before acting. "I treat the target as a partially observable environment," Joas said. "For each hypothesis—such as whether a service is exposed or a vulnerability is exploitable—the system maintains a probability and an evidence count. New observations update this probability, and Shannon entropy indicates the remaining level of uncertainty. The planner compares the expected value of gathering another observation with the expected value of attempting an exploit at that moment. If observing yields greater value, it continues reconnaissance. This helps avoid premature conclusions, though it does not mean every additional data-gathering step is worthwhile; time and cost must also factor into the decision. The paper describes this planning rule but does not yet present a comparative measurement of how much it improves results."

Once candidate findings emerge, they pass through a verification pipeline containing 27 deterministic validators referencing 31 Common Weakness Enumeration identifiers.1 These validators operate entirely outside the language model before an adversarial model-voting step and an evidence prosecutor process the claims.

Regarding how those rules were established, Joas said in response to questions from Primary that the checks demand concrete technical discrepancies. "The criterion involved verifying a claim using specific evidence, based on a rule executed outside the language model," Joas said. "For SQL injection, for instance, we look for a reproducible difference between the normal request and the test request. For IDOR, we need to demonstrate that one identity accessed another's resource; a generic login page does not suffice. The 27 validators cover 31 CWE identifiers, but this initial set is not an exhaustive list of vulnerabilities. If a class lacks a validator, the system routes it for review rather than automatically confirming it. We still need to measure—across diverse targets—which flaws these criteria might miss."

Executing tests against NeuroSploit also revealed that implementing these guarantees is an incremental process. While NeuroSploit fully satisfied the acceptance criteria for evidence grounding and non-destructive claim reduction, Barbosa reported that the tested software build partially met the authorization and accountability standards. Specifically, the tested build lacked an automated primary-target check within its authorization logic and had not yet integrated external cryptographic anchoring for its append-only hash chains.1 Consequently, Barbosa scored both properties as partial implementations in the published study, presenting the tool as an initial existence argument rather than a completed commercial product.

Describing how that flaw was uncovered during testing, Joas told Primary that the agent began scanning before inspecting boundaries. "The behavior appeared during an authorization test involving a primary target outside the scope granted by the token," Joas said. "I expected execution to be denied before it even began. Instead, NeuroSploit initiated reconnaissance on that target and logged the session start as permitted. The token restricted the agents' scope, but that version did not verify the primary target at the very start of execution. It was this test that revealed the gap."

The study notes significant operational boundaries that software wrappers cannot fully resolve. While the framework addresses ungrounded hallucinations, scope creep, and retrospective log alteration, it only reduces rather than eliminates the risk of prompt injection, where a hostile remote server embeds malicious instructions inside HTTP responses or error messages. Furthermore, the evaluation assessed a single software implementation against a public deliberately vulnerable target rather than measuring comparative performance across enterprise environments. Because the preprint is an initial research proposal posted to arXiv without peer review, extensive multi-target evaluations, ablation experiments, and adversarial testing batteries will be required to determine how completely production systems can satisfy these obligations.

Emphasizing where current laboratory guarantees fall short in corporate deployments, Joas said that unmonitored network pathways create persistent risks. "They cease to provide complete assurance when actions occur outside the scope that the harness can control and log," Joas told Primary. "In a corporate network, this can happen with tools that establish their own connections, or through proxies, redirects, or DNS changes during execution. There are also limitations regarding the interpretation of evidence: a positive response does not, in itself, prove the full extent of the alleged impact, and demanding rigorous proof may leave actual vulnerabilities unconfirmed. In the version studied, we identified a specific gap in the primary target check, and external log anchoring had not yet been integrated. Therefore, the next step is to test each limitation across various environments, using deliberate attempts to bypass them."

Treating autonomous penetration testing as an engineering discipline demands that autonomous agents operate under the same strict audit requirements as human consultants. When artificial intelligence programs are permitted to conduct offensive cyber operations, trust cannot rest on conversational fluency or unverified assertions. By moving verification, scope restrictions, and audit trails into deterministic runtime code, security teams can deploy automated agents that operate aggressively against real vulnerabilities while remaining firmly within legal and physical bounds.

One additional insight worth highlighting is that verifiable evidence can improve collaboration between autonomous agents and human security teams: findings linked to reproducible actions and traceable records can be easier to review, prioritize, and remediate. This positions assurance mechanisms as both operational safeguards and a foundation for making autonomous security results more useful in practice.

The record

60 sentences trace to 4 sources and 1 contributor.

  1. 1 JA Joas Antonio dos Santos Barbosa Paper · arxiv.org · 22 Sep 2026 From Capability to Assurance in Autonomous Penetration-Testing Harnesses: A Framework and Reference Implementation Preprint · may not have been peer reviewed See the source
  2. 2 A arxiv.org Paper · arxiv.org PentestGPT: An LLM-empowered Automatic Penetration Testing Tool Preprint · may not have been peer reviewed See the source
  3. 3 A arxiv.org Paper · arxiv.org Multi-Agent Penetration Testing AI for the Web Preprint · may not have been peer reviewed See the source
  4. 4 A arxiv.org Paper · arxiv.org Cochise: A Reference Harness forAutonomous Penetration Testing Preprint · may not have been peer reviewed See the source
  5. 5 J Joas Contributor · interview 25 Sep 2026 · in the article since 3 Dec 2026 Contribution — Joas 18 statements added to this article

Article history

  1. Published 3 Dec 2026, 23:12
    Assembled by the Primary desk from 4 sources · 1 contributor · 60 cited sentences
  2. Joas, independent researcher 18 statements added 70 days before publication
    1. Go to the sentence: If an operator injects a syntactically plausible but fabricated transcript that lacks a matching cryptographic action hash, the acceptance test requires the harness to block the finding from reaching asserted status.
    2. Go to the sentence: "This is precisely the limitation of verifying an isolated hash: it may be valid yet belong to a different execution," Joas said.
    3. Go to the sentence: "To detect the assembly of old proofs, the verification mechanism must link each piece of evidence to the action that generated it, the target, the execution, and its position within a record whose sequence can be verified. If an agent presents historical hashes to explain a new finding, that causal relationship does not establish the correct timeline."
    4. Go to the sentence: A battery of adversarial scope tests, including HTTP redirects pointing outside scope, domain name rebinding, alternate IP address encodings, and altered authorization tokens, must all be rejected by the runtime.
    5. Go to the sentence: "The scenario that concerns me most is an agent triggering an external tool that opens its own network connection," Joas said.
    6. Go to the sentence: "While the harness can correctly verify URLs, redirects, and DNS for the calls it controls, that tool might create a socket or use a proxy outside that path. In such a case, the validation is bypassed without even breaking the token signature. That is why the scope enforcement is considered partial: to be truly effective, blocking must also be implemented at the network egress layer, covering child processes as well."
    7. Go to the sentence: When uncertainty remains high, a value-of-information calculation forces the harness to gather more network observations instead of launching premature exploit attempts.
    8. Go to the sentence: "I treat the target as a partially observable environment," Joas said.
    9. Go to the sentence: "For each hypothesis—such as whether a service is exposed or a vulnerability is exploitable—the system maintains a probability and an evidence count. New observations update this probability, and Shannon entropy indicates the remaining level of uncertainty. The planner compares the expected value of gathering another observation with the expected value of attempting an exploit at that moment. If observing yields greater value, it continues reconnaissance. This helps avoid premature conclusions, though it does not mean every additional data-gathering step is worthwhile; time and cost must also factor into the decision. The paper describes this planning rule but does not yet present a comparative measurement of how much it improves results."
    10. Go to the sentence: Once candidate findings emerge, they pass through a verification pipeline containing 27 deterministic validators referencing 31 Common Weakness Enumeration identifiers.
    11. Go to the sentence: "The criterion involved verifying a claim using specific evidence, based on a rule executed outside the language model," Joas said.
    12. Go to the sentence: "For SQL injection, for instance, we look for a reproducible difference between the normal request and the test request. For IDOR, we need to demonstrate that one identity accessed another's resource; a generic login page does not suffice. The 27 validators cover 31 CWE identifiers, but this initial set is not an exhaustive list of vulnerabilities. If a class lacks a validator, the system routes it for review rather than automatically confirming it. We still need to measure—across diverse targets—which flaws these criteria might miss."
    13. Go to the sentence: Specifically, the tested build lacked an automated primary-target check within its authorization logic and had not yet integrated external cryptographic anchoring for its append-only hash chains.
    14. Go to the sentence: "The behavior appeared during an authorization test involving a primary target outside the scope granted by the token," Joas said.
    15. Go to the sentence: "I expected execution to be denied before it even began. Instead, NeuroSploit initiated reconnaissance on that target and logged the session start as permitted. The token restricted the agents' scope, but that version did not verify the primary target at the very start of execution. It was this test that revealed the gap."
    16. Go to the sentence: Furthermore, the evaluation assessed a single software implementation against a public deliberately vulnerable target rather than measuring comparative performance across enterprise environments.
    17. Go to the sentence: "They cease to provide complete assurance when actions occur outside the scope that the harness can control and log," Joas told Primary.
    18. Go to the sentence: "In a corporate network, this can happen with tools that establish their own connections, or through proxies, redirects, or DNS changes during execution. There are also limitations regarding the interpretation of evidence: a positive response does not, in itself, prove the full extent of the alleged impact, and demanding rigorous proof may leave actual vulnerabilities unconfirmed. In the version studied, we identified a specific gap in the primary target check, and external log anchoring had not yet been integrated. Therefore, the next step is to test each limitation across various environments, using deliberate attempts to bypass them."