CTFExplorer: Evaluating LLM Offensive Agents Through Multi-Target Web CTF Benchmarking

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

TL;DR

CTFExplorer is a novel benchmark that shifts the evaluation of LLM offensive security agents from isolated, single-target environments to a realistic, multi-target setting containing 40 concurrent web services. The framework reveals that while current LLMs excel at exploiting known vulnerabilities, they struggle with strategic reasoning, target prioritization, and handling uncertainty when faced with a complex attack surface.

What Problem Does This Paper Address?

Existing benchmarks for evaluating LLM-based offensive security agents (like penetration testing or Capture-the-Flag tools) typically operate in isolated, single-target environments. An agent is dropped into an instance with a single, known vulnerable service and a fixed objective.

While effective at measuring raw exploitation capabilities, this setup fails to replicate real-world security assessments or actual CTF competitions. In reality, human attackers must perform reconnaissance across a noisy network, triage unknown attack surfaces, prioritize targets, handle false positives, and decide when to abandon a dead-end path. By removing these strategic complexities, current benchmarks risk overestimating the autonomous reasoning capabilities of LLMs.

Methods

The authors introduce CTFExplorer, a comprehensive evaluation suite consisting of three core components:

  1. The Multi-Target Environment: A controlled virtual machine hosting 40 distinct web-based vulnerable services running simultaneously in separate Docker containers, creating a noisy, partially observable attack surface.
  2. CTFExplorer Agent (Reference Framework): A reactive multi-agent architecture designed to tackle this environment. It uses a two-stage workflow: a Reconnaissance Agent maps the attack surface, and a Dispatcher spawns parallel teams of Executor Agents to investigate specific entry points. A Supervisor LLM manages knowledge hand-offs between short-lived agents, while a Critic LLM intervenes to suggest pivots when progress stalls.
Figure 1: CTFExplorer agent workflow: a reconnaissance agent finds entry points, then executor teams explore them with self-critique and shared memory.
  1. CTFExplorerEval (Evaluation Framework): An agent-agnostic evaluation system that exposes tools via the Model Context Protocol (MCP). Instead of just checking if a flag was captured, it forces agents to explicitly declare their exploration level and evidence certainty. It builds a live, directed Reasoning Graph to track the agent's step-by-step hypotheses and lateral movements.
Figure 2: CTFExplorer Evaluation Workflow.

Datasets

The benchmark features 40 web-based CTF challenges curated from six prominent security competitions: NYU CTF Bench, HKCERT CTF, Project Sekai CTF, Hack The Box, CodeGate CTF, and Google CTF. These challenges span various vulnerability categories (injection flaws, authentication bypasses, logic errors) and cover multiple stages of the cyber kill chain.

Key Insights and Ideas

  • The Compute-Scaling Paradox in Agents: Unlike traditional machine learning where more compute/budget generally improves performance, scaling up resources for LLM agents under uncertainty often backfires. When agents get stuck, they tend to compensate by escalating—spawning more agents or burning budget—without revising their flawed initial hypotheses. The authors call this "agent inflation."
  • Reasoning Continuity Over Extensive Exploration: Successful exploitation trajectories are typically characterized by strong early-stage planning and sustained reasoning within a single agent context. Conversely, failing trajectories fragment reasoning across many short-lived agents, leading to frequent context resets and repeated mistakes.
  • The Precision vs. Recall Trade-off: State-of-the-art models exhibit distinct operational styles. Some favor a conservative, high-precision approach (never submitting a wrong flag but missing harder targets), while others opt for aggressive, broad exploration that yields higher flag recovery at the cost of more false positives.

Key Results

The authors evaluated six state-of-the-art LLMs (including GPT-5.2, Claude Opus 4.5, DeepSeek V4 Pro, and Gemini 3 Pro) within the CTFExplorer benchmark:

  • Flag Capture: Gemini 3 Pro discovered the most flags (13/40), achieving the highest recall (27.50%). However, GPT-5.2 and DeepSeek V4 Pro achieved 100% precision, meaning they never submitted an incorrect flag.
  • Efficiency: Claude Opus 4.5 proved to be the most efficient and direct, requiring the fewest average interaction rounds (40.15) and the shortest execution time (788.85 seconds) to resolve entry points.
  • Dead-End Persistence: As illustrated in Figure 3, across almost all models, dead-end trajectories consumed significantly more interaction rounds than successful ones, proving that current agent architectures struggle to recognize when an approach has failed.
Figure 3: Distribution of interaction rounds for LLM agents to reach solved and dead-end outcomes.

Limitations and Future Work

While CTFExplorer advances offensive AI benchmarking, it currently focuses exclusively on web-based vulnerabilities. The authors note that future iterations should expand into other critical attack surfaces, such as binary exploitation, reverse engineering, and cryptography. Additionally, the evaluation highlighted that even the best current LLM agents struggle with deep, multi-stage attack chaining (e.g., compromising a public service, discovering an internal network, and pivoting to a hidden backend), pointing to a clear area for future agent architecture research.

Summary updated

BibTeX
@misc{rani2026ctfexplorer,
  author = {Nanda Rani and Kimberly Milner and Minghao Shao and Meet Udeshi and Haoran Xi and Venkata Sai Charan Putrevu and Saksham Aggarwal and Sandeep K. Shukla and Prashanth Krishnamurthy and Farshad Khorrami and Muhammad Shafique and Ramesh Karri},
  title = {{CTFExplorer: Evaluating LLM Offensive Agents Through Multi-Target Web CTF Benchmarking}},
  year = {2026},
  eprint = {2602.08023},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.08023},
}
Figure