aiqbench analysis
This research addresses a critical bottleneck in AI-driven cybersecurity by offloading long-horizon state management from LLM context windows to a persistent fact-intent DAG, effectively mitigating context forgetting and intent drift. The proposed Intentest framework significantly improves success rates on complex penetration testing benchmarks while reducing the number of exploration rounds required for medium and hard tasks. By structuring agent memory as immutable fact nodes and constrained intent edges, this work offers a scalable architecture for maintaining causal reasoning chains in extended security operations.
Staying on the Attack Path: Structured State for Long-Horizon Automated Penetration Testing
From arXiv
Full textLarge 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.
Full text under the publisher's open licence · 257 words