Hacking benchmarks only count a full break-in as success, so should an AI get partial credit for getting halfway?
Can intermediate primitives be scored separately in exploitation benchmarks?
This explores whether an exploit benchmark could give credit for partial progress, such as reading or writing arbitrary memory or escaping a sandbox, instead of scoring only whether the agent reaches full code execution.
This explores whether an exploit benchmark could give credit for partial progress, such as reading or writing arbitrary memory or escaping a sandbox, instead of scoring only whether the agent reaches full code execution. The corpus shows the gap clearly. It has no example of anyone closing it. It does hold adjacent ideas that show what closing it would take.
The gap comes from ExploitGym, where success means arbitrary code execution. That endpoint is clear and verifiable, but it treats an agent that got an arbitrary read/write primitive or escaped a sandbox exactly like one that failed on the first step Does arbitrary code execution alone capture exploit progress?. This matters more because exploitation is already the least-measured part of cybersecurity evaluation. Models look strong on vulnerability reproduction, patching and CTFs, while the step where a bug becomes a real attack is barely tracked Do cybersecurity benchmarks actually measure exploitation?. An all-or-nothing score on that step means most of what agents actually do goes unseen.
The nearest machinery comes from reward-hacking research, where the aim is to record what happened during a run instead of trusting the final number. BenchShield models a benchmark run as a finite sequence of typed, reward-relevant events, and checks it against what the task intended Can a finite lifecycle model detect reward hacking across benchmarks?. It also records authority-bearing transitions on the infrastructure side, so it can tell a task that exposes a vector from a run that exercised one Can runtime instrumentation distinguish hacking exposure from actual exploitation?. Those papers use this to detect cheating. The same approach, applied to exploit primitives, would log "got arbitrary read" or "escaped the sandbox" as events and score them separately. That extension is my inference. The papers don't test it. AgentCompass points the same way from the other side: separating benchmark, harness and environment makes agent behavior inspectable, where a scalar score hides it How can we make reward-hacking visible in agent evaluation?.
There are two catches. The first is how partial credit gets built. DRO found that turning rubric scores into dense rewards invites hacking, while using the rubric as a pass/fail gate did not Can rubrics and dense rewards work together without hacking?. A benchmark that scores each primitive independently adds several scoring points an agent could game. It might be safer to report primitives as a checklist of what was reached than to sum them into one number. Related work says how exposed a system is depends on where the evaluator's errors sit and how good the search is, not on a general ranking Can distance alone rank which substrates resist reward hacking?. Each new intermediate check is a new place for a scoring defect.
The second catch is that finer scoring is also a finer dual-use measurement. Exploit capability serves defenders assessing vulnerabilities and lowers the barrier for attackers, and no single measurement separates the two without knowing who has access and under what controls Does measuring exploit capability help or harm defense?. Scoring intermediate primitives would give a more detailed map of how far an agent can get toward an attack. So the technical answer is probably yes, if you record events at the infrastructure level and report them without collapsing them into a reward. Who should see that detailed map is still unsettled.
Sources 8 notes
ExploitGym's success criterion—arbitrary code execution—is verifiable and clear but ignores meaningful outcomes like arbitrary read/write primitives and sandbox escape. This endpoint-only metric treats agents that reach intermediate steps identically to those that fail immediately.
ExploitGym shows that while frontier models excel at vulnerability reproduction, patch generation, and CTF tasks, exploitation—the step where a vulnerability becomes a real attack—remains largely unmeasured in the benchmark literature.
BenchShield grounds exploit detection in a finite lifecycle model of reward-relevant events, enabling both static pre-run analysis and runtime instrumentation to operate over the same formal object. This replaces pattern-matching detection with deviation from an intended lifecycle structure.
Infrastructure-side recording of authority-bearing transitions distinguishes tasks that merely expose a hacking vector from runs that actually exercise one. This separation prevents every score from an exposed task being automatically suspect.
AgentCompass separates benchmark, harness, and environment into independent components, enabling trajectory analysis that surfaces reward-hacking and other failure modes scalar scores conceal. This architectural change shifts evaluation from opaque final scores to inspectable agent behavior.
Show all 8 sources
DRO shows that using rubrics to accept or reject rollout groups—rather than converting rubric scores into dense rewards—prevents reward hacking. This separation preserves the categorical strength of rubrics while letting token-level rewards optimize within valid answers.
A distance-dependent error bound and capacity ordering are formal statements about limits, not predictions of what systems find. Where evaluator errors sit among reachable behaviors and search effectiveness determine actual exposure, which shifts as the scoring defect location changes.
ExploitGym demonstrates that exploit generation supports both defensive vulnerability assessment and lowering barriers to offensive attacks simultaneously. No single measurement distinguishes between these outcomes without knowing who has access and under what controls.
Papers this line draws on 8
The research behind the notes this line reads — ranked by how closely each paper relates.
- Hack-Verifiable Terminal Bench: Evaluating Reward Hacking in Terminal Tasks
- Monitoring and Discovering Reward Hacking with Internal Representations during LLM Evaluations
- Optimizing the Score, Losing Sight of the Task: Reward Hacking Across Weights, Selection, and Prompts
- BAITBENCH: Measuring Agent Reward Hacking with Optional Shortcuts Planted in ML Tasks
- ExploitGym: Can AI Agents Turn Security Vulnerabilities into Real Attacks?
- BenchShield: Formal Model-Backed Instrumentation for Reward Integrity in LLM-Agent Evaluation Infrastructure
- Natural Emergent Misalignment From Reward Hacking In Production RL
- A Causal Model for Locating and Unlocking Sandbagging in Model Organisms