arXiv:2609.01185cs.CRSep 2026

Manuscript Offprint

arXiv:2609.01185

Reveree: Diagnosing LLM Reverse-Engineering Agents

Hadjer Benkraouda, Hongyu Cai, Berkay Celik, Gang Wang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Reverse engineering (RE) is critical to security tasks such as malware analysis and vulnerability discovery, and large language model (LLM) agents are increasingly able to perform it autonomously. Capture-the-flag (CTF) RE challenges have become the standard proxy for measuring this capability, but evaluation rests on a single criterion: whether the agent captures the flag. This solve rate reveals neither where in the RE process an agent fails nor whether a success reflects analysis of the binary or recall of a public solution. In this paper, we propose REVEREE, a diagnostic framework that scores an LLM RE agent's trajectory at three tiers: solve rate, milestone progress through an eight-stage RE schema, and a behavioral profile of its actions. Comprehension stages are scored by an outcome-blinded LLM judge validated against a human expert; all other stages are verified deterministically. Using REVEREE, we evaluate nine frontier models and four prompting strategies on 88 picoCTF and NYU-CTF challenges. We find that the base model dominates performance, whereas prompting strategy is a secondary, model-dependent effect. Surprisingly, larger, newer, or costlier models are not reliably stronger. We also find that failures concentrate at the comprehension stages of the RE process, and that extra budget, persistence, or reasoning effort rescues few of them, pointing to a competence limit rather than a resource limit. Regarding memorization, while models reproduce picoCTF flags from challenge descriptions alone, NYU-CTF shows minimal measurable recall, and most solves survive surface perturbation, indicating that genuine analysis coexists with memorization. We release REVEREE to the community.

1 Introduction

Reverse engineering (RE), the recovery of a program's structure and behavior from its compiled form, is critical to security tasks such as malware analysis, vulnerability discovery, and firmware analysis [7, 18, 21, 33, 45, 56, 67]. The work is expensive and iterative: an analyst alternates between disassemblers, decompilers, debuggers, and scripts to recover

what the code does and how to drive it [9, 10, 53]. Large language models (LLMs) show promise on individual RE sub-tasks [8, 24, 26, 50, 60, 62], and LLM agents, which interleave reasoning with tool use, are increasingly able to carry out the process end to end [1, 19, 44, 52, 72]. How well they do so is therefore a pressing question. The common way to answer it is to use capture-the-flag (CTF) RE challenges as a proxy [1, 42, 43, 51, 52, 55, 64, 68]: the agent is given a binary and must recover a hidden flag, a task that exercises real RE competencies, is machine-checkable, and can be perturbed without changing its difficulty.

Existing evaluations rest almost entirely on a single criterion, the solve rate: the fraction of challenges whose flag is captured [1, 42, 51, 52, 64, 68]. For reverse engineering, this criterion is necessary but insufficient. It floors on hard challenges, where every model fails and diagnosis matters most. It cannot localize failure: a run that recovered the binary's core algorithm and stalled one step short of a solver scores the same as one that never parsed the file, although the two call for different fixes. And it cannot separate reasoning from recall: public challenges and their write-ups leak into pre-training, so a captured flag may be reproduced from memory rather than derived from the binary, a confound that grows as models train on more of the web content.

Goal and Method. In this paper, we develop REVEREE, a diagnostic framework for evaluating LLM RE agents. Its key idea is to score the agent's trajectory rather than its outcome alone, at three tiers: 1) the solve rate, 2) milestone progress through an eight-stage schema of the RE process. Stages that leave a mechanical trace are verified deterministically from tool calls; only comprehension stages are referred to an outcome-blinded LLM judge validated against a human expert, and 3) a behavioral profile that models the run as a Markov chain [34] over behavioral states. A memorization probe queries the bare model for a flag from the challenge description alone and re-runs the agent on renamed or paraphrased challenges, holding difficulty fixed. The harness is not our contribution: we build on D-CIPHER [52] and hold it fixed, so that differences in outcome are attributable to the model or the prompting strategy rather than to the scaffold.

Evaluation. Using REVEREE, we evaluate nine frontier models from the Claude and GPT-5 families, spanning size tiers and versions, under four prompting strategies (vanilla, ReAct [65], Reflexion [46], and a hypothesis ledger) on 88 RE challenges from picoCTF [13] and NYU-CTF [42]. REVEREE exposes five patterns that solve rate hides. First, the base model dominates performance, whereas prompting strategy is model-dependent. Second, larger, newer, or costlier models are not reliably stronger. Third, failures are not random: on hard challenges, agents recover the structure of the binary and stall at the comprehension stages, and extra budget, persistence, or reasoning effort rescues few of them, pointing to a competence limit rather than a resource limit. Fourth, successful runs share a behavioral signature that failed runs lack, pivoting from analysis into building a solver rather than reanalyzing the binary, and it holds across every model and strategy. Finally, memorization is real but benchmark-dependent: models reproduce picoCTF flags from challenge descriptions alone, whereas NYU-CTF shows minimal measurable recall, and most solves survive surface perturbation, so genuine analysis coexists with memorization. These findings motivate RE-specific reasoning strategies aimed at the comprehension bottleneck (Section 7.2).

Contributions. We make three contributions.

• We propose REVEREE, an evaluation method beyond solve rate, that scores an agent's trajectory at three tiers and pairs them with a memorization probe. We open-source our tool to the community.

• We perform a controlled evaluation of nine frontier models and four prompting strategies on 88 RE challenges and identify a success-versus-failure signature that replicates across all nine models.

• We carryout a memorization evaluation to separate reasoning from recall with difficulty-preserving perturbations, and show that memorization is benchmark-dependent.

References (59)