arXiv(opens in a new tab)cs.CRAug 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2608.26237

How Do LLM Agents Actually Get the Flag? Trace-Level Provenance for Agentic Offensive Security Evaluation

Kimberly Milner, Minghao Shao, Nanda Rani, Haoran Xi, Venkata Sai Charan Putrevu, Meet Udeshi, Sandeep K. Shukla, Prashanth Krishnamurthy, Farshad Khorrami, Muhammad Shafique, Ramesh Karri

Abstract

Capture-the-Flag (CTF) benchmarks are widely used to assess the offensive security capabilities of autonomous language-model agents. Evaluations rely on shallow binary judgments or aggregate scores, overlooking the agent's trajectory to the flag. Consequently, actual exploitation is conflated with direct flag exposure, memorized recall, external lookup, guessing, and unsupported claims, potentially overstating the agent's cybersecurity capability. We introduce CTF-ABACUS, a trace-based agent auditing framework that reconstructs each run as an evidence-grounded solve profile. By decomposing agent actions into penetration-testing phases and categorical techniques, it identifies where exploitation occurs, where the flag first appears, and whether the recovered flag is supported by demonstrated behavior. Aggregating solve profiles across agents yields challenge signatures that reveal whether success was achieved via the intended exploit or via shortcut pathways. We apply CTF-ABACUS to 1,435 CTF attempts by six frontier and open-source models on 240 challenges, yielding 2,870 solve profiles under two judge lenses. Trace-verified exploits account for only 62-87% of recovered flags across benchmarks, while shortcut recoveries follow substantially shallower trajectories. These findings shift CTF evaluation from counting recovered flags to verifying demonstrated exploitation and provide a basis for designing benchmarks that better isolate the offensive capabilities.

Introduction

Autonomous language-model agents can now perform complex offensive-security tasks. Recent systems plan multi-step attacks, interact with software environments, invoke external tools, and solve Capture-the-Flag (CTF) challenges that previously required experienced human participants (Yang et al. 2023b; Happe and Cito 2023; Fang et al. 2024; Shao et al. 2024). CTF benchmarks have consequently become a central testbed for comparing cyber agents, evaluating planning architectures, and reasoning about their security implications (Sanz-Gómez et al. 2025; Zhuo et al. 2025).

Yet most CTF evaluations reduce each run to a single outcome, whether the submitted flag matches the ground truth, treating recovery as evidence of the targeted capability. For modern models, the same flag can arise through different pathways. A model may execute the intended exploit, read

Figure

Figure 1: CTF-Abacus reconstructs each run from its execution trace, separating demonstrated exploitation from shortcuts that flag matching counts as solved.

an exposed flag, recall a public solution, retrieve a write-up, guess the answer, or assert it without supporting observations. Conventional scores collapse these into one solve, overstating capability and obscuring what the benchmark measures, a risk amplified by contamination and memorization (Dong et al. 2024; Lee, eun Bae, and Yun 2026).

Evaluating agents on unseen challenges and improving benchmark construction reduce these risks (Lee, eun Bae, and Yun 2026; Zhuo et al. 2025; Happe and Cito 2023), but leave a fundamental question: when an agent submits a correct flag, what evidence shows that it actually performed the intended exploit? Existing benchmarks verify the answer, but not the execution that produced it. This evidence lies in the execution trace. We introduce CTF-ABACUS, an automated framework that reconstructs each run as an evidence-grounded solve profile: it decomposes agent actions into penetration-testing phases and category-specific security techniques, locates where exploitation occurs and where the flag first appears, and determines whether the recovered flag is supported by demonstrated behavior. This separates exploitation from shortcuts like memorization and flag lookups. Aggregating profiles across models and categories yields challenge signatures that reveal whether success depends on the intended capability.

We use CTF-ABACUS not only to audit individual attempts but to study autonomous CTF agents and the benchmarks that assess them: how agents progress through penetration-testing phases, which techniques they employ, and where successful trajectories diverge from demonstrated exploita-

∗^{*}Authors contributed equally to this research.

tion. The analysis surfaces recurring structures separating genuine exploits from shortcut recoveries showing conventionally equivalent challenges can demand different offensive capabilities. CTF-ABACUS thus turns execution traces into an empirical instrument for studying agent behavior and benchmark validity. Our contributions are as follows:

• We introduce an automated trace-based framework with a observability instrument transforming traces into evidence-grounded solve profiles, attributing recovered flags to demonstrated exploitation or alternative pathways.

• We develop a systematic method for auditing challenge validity by aggregating solve profiles into challenge signatures, revealing how strongly success depends on the capability each challenge is intended to measure.

• We conduct a comprehensive large-scale study of 1,435 attempts, six frontier language models, and 240 challenges from four CTF benchmarks, yielding over 2,870 solve profiles under two independent judges. Trace-verified exploitation validates only 62-87% of recovered flags, showing that flag-based scores can obscure substantial differences in agent behavior and challenge validity.

References (17)