Capture the Flags: Family-Based Evaluation of Agentic LLMs via Semantics-Preserving Transformations

Shahin Honarvar, Amber Gorzynski, James Lee-Jones, Harry Coppock, Marek Rei +2 more
2/5/2026
cs.SEcs.AI

No confident code implementation found for this paper.

Abstract

Agentic large language models (LLMs) are increasingly evaluated on cybersecurity tasks using capture-the-flag (CTF) benchmarks, yet existing pointwise benchmarks offer limited insight into agent robustness and generalisation across alternative versions of the source code. We introduce CTF challenge families, whereby a single CTF is used to generate a family of semantically-equivalent challenges via semantics-preserving program transformations, enabling controlled evaluation of robustness while keeping the underlying exploit strategy fixed.

Show full abstract

We present Evolve-CTF, a tool that generates CTF families from Python challenges using a range of transformations. Using Evolve-CTF to derive families from Cybench and Intercode challenges, we evaluate 13 agentic LLM configurations with tool access. We find that models are remarkably robust to renaming and code insertion, but that composed transformations and deeper obfuscation degrade performance by requiring more sophisticated tool use. Enabling explicit reasoning has little effect on success rates. Our work contributes a technique and tool for future LLM evaluations, and a large dataset characterising the capabilities of current state-of-the-art models in this domain.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{honarvar2026capture,
  title  = {Capture the Flags: Family-Based Evaluation of Agentic LLMs via Semantics-Preserving Transformations},
  author = {Shahin Honarvar and Amber Gorzynski and James Lee-Jones and Harry Coppock and Marek Rei and Joseph Ryan and Alastair F. Donaldson},
  year   = {2026},
  eprint = {2602.05523},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.05523v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.05523.svg)](https://codeofpaper.com/paper/2602.05523)

Discussion