Back to Rankings

Staying on the Attack Path: Structured State for Long-Horizon Automated Penetration Testing

Weizhe Wang, Yitong Zhang, Yao Zhang, Xiaoqiang Di, Zhigang Li, Bin Wu, Guangquan Xu

Sep 7, 2026arXiv:2609.07344v1
cs.CRcs.AI
Share
Scorecard· 16/16
6.0/10 impact

Coherent, timely architectural idea with strong relative results and good empirical hygiene, but bounded by a tiny CTF benchmark, no variance reporting, and no code release.

Abstract

Large language model (LLM) based agents are increasingly applied to cybersecurity tasks such as vulnerability discovery and automated penetration testing. On long-horizon security tasks, however, such agents remain limited by context forgetting and intent drift: early critical facts and causal reasoning chains are lost over extended interactions, and the agent falls into aimless, repetitive exploration. This paper proposes Intentest, an intent-graph-guided automated penetration testing agent that externalizes long-horizon state from the LLM's context window onto a persistent fact-intent directed acyclic graph (DAG), thereby substantially reducing invalid transitions. We evaluate Intentest on automated penetration testing of web applications, a representative long-tail task in cybersecurity. In the DAG, verified network states are stored as immutable fact nodes, and exploration directions are constrained as intent edges bounded by predecessor facts. The system adopts a three-layer architecture, in which the fact-intent mapping layer maintains the global state, the task scheduling and allocation layer ensures execution stability through two-phase degradation recovery and multi-dimensional adaptive load balancing, and the intent retrieval and prediction layer provides tactical priors through a top-down five-stage filtering algorithm. On a benchmark of real CTF challenges covering more than ten vulnerability types across three difficulty levels, Intentest achieves an overall success rate of 88.2% and a success rate of 75.0% on hard tasks, improving over the baseline by approximately 44 and 50 percentage points. Ablation experiments further show that the intent retrieval and prediction reduce the average number of rounds on successful medium and hard tasks by about 33% and 48%, respectively, without changing the set of solvable tasks.

AI Impact Assessments

(1 models)

Scientific Impact Assessment: Intentest

1. Core Contribution

The paper introduces Intentest, an LLM-agent framework for automated penetration testing that externalizes long-horizon state from the model's context window into a persistent fact-intent directed acyclic graph (DAG). The central claim is that LLM agents fail on long-horizon security tasks because of "context forgetting" and "intent drift" — early critical facts and causal chains are lost, and agents devolve into repetitive, aimless exploration. The proposed fix is a graph-theoretic state machine where verified network states become immutable *fact nodes* and exploration directions become *intent edges* strictly constrained by predecessor facts. Around this the authors build a three-layer architecture: a fact-intent mapping layer (global blackboard), a task scheduling/allocation layer (two-phase degradation recovery, adaptive load balancing), and an intent retrieval/prediction layer (a five-stage top-down filtering algorithm combining embedding search, subgraph isomorphism, Jaccard fuzzy matching, strategic alignment, and LLM fallback).

The core conceptual move — treating agent memory as an externalized, causally-constrained graph rather than linear context or plain-text task trees — is a sensible and reasonably fresh framing that also doubles as a security-boundary mechanism (unverified intents are rejected by construction, mitigating prompt injection).

2. Methodological Rigor

The experimental design is fairly thorough for a systems paper. The authors compare against five relevant baselines (PentestGPT, PentestAgent, Pentest-R1, VulnBot, Claude Code), hold the underlying LLM constant (DeepSeek), report Fisher's exact test p-values for all comparisons, and include an ablation (Intentest–noIntent) that cleanly separates the DAG's contribution (solvability) from the intent module's contribution (efficiency). The failure analysis (F1–F4) and the explicit acknowledgment that a fully controlled DAG-removal ablation is infeasible — supplemented instead by three triangulating lines of evidence — reflect unusual methodological self-awareness. The threats-to-validity section is candid about data leakage, scalability, and external validity.

However, significant weaknesses remain. The benchmark is tiny: it appears to be ~17 CTF challenges (percentages like 88.2%, 90.9%, 8.3% imply denominators of 11–12 per difficulty band, ~34 total). With such small n, even statistically significant differences rest on a handful of tasks, and the dramatic "44/50 percentage-point" gains are inflated by small-sample dynamics. LLM stochasticity is acknowledged but not controlled via multiple runs — no variance/error bars are reported across seeds, which is a real gap given the noise inherent in agentic pipelines. The DAG's necessity is argued only by cross-system analogy to VulnBot, which differs in orchestration and tooling, so the causal attribution is corroborative, not conclusive (the authors admit this).

3. Potential Impact

Automated penetration testing with LLM agents is an active and commercially significant area. The externalized-graph-state idea is transferable beyond pentesting to other long-horizon agentic tasks (the authors flag this). If the results hold at larger scale, the architecture could inform how practitioners build stateful security agents. However, the impact is bounded by the CTF-only evaluation: production enterprise intranets, lateral movement, EDR/IDS-style dynamic defenses, and compliance constraints are all absent. This is a proof-of-concept that demonstrates a promising design pattern rather than a deployable system. The security-by-construction framing (precondition validation as an access-control layer against prompt injection) is a genuinely useful secondary contribution.

4. Timeliness & Relevance

Highly timely. LLM agent memory/long-horizon reasoning is a central bottleneck across the field in 2025–2026, and automated pentesting is a fast-moving subfield with several concurrent baselines (VulnBot, Pentest-R1, PentestAgent, CheckMate all recent). The paper engages directly with the current frontier and positions itself well against the newest work.

5. Strengths & Limitations

Strengths: clear problem articulation grounded in a real, recognized failure mode; a coherent and elegant architectural idea; strong relative numbers; statistical testing; honest, detailed threats-to-validity and failure analysis; the dual role of the DAG as both memory and safety mechanism.

Limitations: very small benchmark; no multi-run variance reporting; no code/data release mentioned, hurting reproducibility of an intricate multi-component system; the intent graph provides no benefit on novel/0-day attack surfaces (efficiency-only gain per the ablation); heavy engineering complexity (three layers, six tables, five-stage pipeline) that may be hard to reproduce faithfully; generalization to real networks unvalidated. There is also a self-selection concern in difficulty binning ("easy/medium/hard" defined by the authors).

Additional observations: The paper reads as a well-engineered systems contribution with above-average empirical hygiene for the subfield, but the headline gains should be read cautiously given sample size and stochasticity. The conceptual framing (graph-externalized causal state for agents) is its most durable contribution and the most likely thing to be cited/reused. Reproducibility is moderate: the algorithms are given as pseudocode with concrete thresholds (180s/90s timeouts, 40-round budget, cosine ≥0.3, Top-k), but no repository, and the offline intent-graph construction is under-specified.

Overall: a solid, timely, well-argued applied-systems paper with a genuinely useful architectural idea, held back from higher impact by a small benchmark, absence of variance analysis, no code release, and CTF-only scope.

Rating:6/ 10
Significance 6Rigor 6Novelty 6.5Clarity 7.5

Generated Sep 9, 2026

Comparison History (0)

No comparisons yet.