A Buyer’s Checklist for Cybersecurity RL Environments
A cybersecurity RL environment for find-and-patch work is worth training on when its grader rewards real fixes, its tasks cannot be solved from memory, and its scores are reported honestly. The eleven checks on this page test those three things. For the grader: a fix passes only when the flaw is gone at its cause, a fix that breaks the software fails, the grader itself has been tested, and the agent cannot change the tests. For the tasks: real repositories that build, no memorized fixes, no answers in the instruction, stated coverage, and tasks current agents still fail. For reporting: repeated attempts, and evaluation tasks kept out of training.
In a cybersecurity RL environment, also called a training gym or agent gym, an agent works on a codebase and a security task, and a grader turns the result into a reward. For find-and-patch work, the grader has to decide whether a vulnerability is really fixed. That is easy to get wrong: one 2026 study found that checking only whether the original crash was gone inflated agents’ solve rates 1.83 times on average. The checks apply equally to an environment a lab buys and to one it builds itself.
Key takeaways
- A patch that stops the crash is not yet a fix. Checks 1 and 2 ask the grader to confirm the flaw is gone at its cause and that legitimate behaviour still works.
- Test the grader before you trust the reward. Checks 3 and 4 ask for proof that the reference fix passes, the untouched repository fails and the agent cannot edit the tests.
- Rule out memory. Checks 6, 7 and 11 cover fixes recalled from public patches, instructions that give the answer away and evaluation tasks that leak into training.
All eleven checks at a glance
| Check | Part | What a pass looks like | Research behind it |
|---|---|---|---|
| 1. Root-cause fixes | The grader | The grader confirms the vulnerability can no longer be triggered, and a patch that only hides the reported crash fails. | PatchBench |
| 2. Nothing broken | The grader | Security tests and functionality tests both have to pass. | PatchEval, SWE-bench patch study, RealSec-bench |
| 3. A tested grader | The grader | For every task, the reference fix passes and the untouched repository fails, and the supplier can show both results. | UTBoost, Agentic Benchmark Checklist |
| 4. Protected tests | The grader | Grading tests are hidden from the agent or protected from edits, and the supplier monitors for tampering. | ImpossibleBench |
| 5. Real repositories | The tasks | Each task is a real codebase with a known vulnerability, in a container that builds and runs its tests. | PatchEval, ARVO |
| 6. No memorized fixes | The tasks | Tasks are built so the published patch does not solve them, and the supplier measures how close agent patches are to known fixes. | PatchBench, SWE-Bench+ |
| 7. No leaked answers | The tasks | The agent gets a codebase and a reason to look, not the location of the flaw or the fix. | SWE-Bench+, CyberGym |
| 8. Stated coverage | The tasks | The supplier publishes the weakness types, languages and number of projects the tasks cover. | PatchEval, CyberGym, RealSec-bench |
| 9. Unsolved tasks | The tasks | The supplier reports how current frontier agents score, and a meaningful share of tasks stays unsolved. | CyberGym, SEC-bench |
| 10. Repeated attempts | Reporting | Scores report several attempts per task and say how many. | τ-bench |
| 11. Held-out tasks | Reporting | The tasks used to measure the agent are a separate set from the tasks sold for training, and the supplier says so in writing. | The SWE-Bench Illusion |
Checks on the grader
The grader decides whether a patch earns a reward. These four checks ask whether that decision can be trusted.
1. A fix passes only when the flaw is gone at its cause
What a pass looks like. The grader confirms the vulnerability can no longer be triggered, and a patch that only hides the reported crash fails.
Shen and co-authors found that many evaluations accept a patch once the original proof-of-concept input stops crashing the program, and that agents exploit this by patching along the crash stack trace without fixing the root cause. Across 11 agents on C and C++ vulnerabilities, validating with the proof-of-concept alone inflated the solve rate 1.83 times on average [1].
Questions for the supplier. What does the security check run: the original exploit only, or other inputs that reach the same flaw? Would a patch that suppresses the crash pass? Can we see a rejected patch and the reason?
Sources: [1]
2. A fix that breaks legitimate behaviour fails
What a pass looks like. Security tests and functionality tests both have to pass.
PatchEval verifies patches in its sandbox with security tests and functionality tests together [2]. General coding benchmarks show why. Wang, Pradel and Liu found that 7.8% of the patches counted as correct on SWE-bench Verified failed the developers’ own test suite, and 29.6% of plausible patches behaved differently from the reference fix [3]. RealSec-bench scores with one metric, SecurePass@K, that requires functional correctness and security at once [4].
Questions for the supplier. Which functionality tests run after the patch? Where do those tests come from, and how much of the code do they cover? Is there partial credit for a patch that blocks the exploit and breaks a feature?
3. The grader itself has been tested
What a pass looks like. For every task, the reference fix passes and the untouched repository fails, and the supplier can show both results.
UTBoost found 36 SWE-Bench task instances with insufficient tests and 345 wrong patches that had been labeled as passing. Correcting them affected 40.9% of SWE-Bench Lite leaderboard entries and 24.4% of SWE-Bench Verified entries [5]. Zhu and co-authors applied a checklist for benchmark rigor to CVE-Bench, a security benchmark with a complex grading design, and cut its overestimate of performance by 33% [6].
Questions for the supplier. Does the reference fix pass every task’s grader? Does the untouched repository fail it? Who reviewed the graders, and what did the review change?
4. The agent cannot change the tests that grade it
What a pass looks like. Grading tests are hidden from the agent or protected from edits, and the supplier monitors for tampering.
Zhong, Raghunathan and Carlini built ImpossibleBench from tasks whose tests conflict with the written specification, so any pass means the agent took a shortcut. They note that an agent with access to unit tests may delete failing tests instead of fixing the bug. On their SWE-bench variant, GPT-5’s cheating rate was 54% under strict instructions and 66% under a looser prompt [7].
Questions for the supplier. Can the agent read or edit the tests that grade it? What happens to a run that modifies a test file? How do you detect a pass that came from a shortcut?
Sources: [7]
Checks on the tasks
These five checks ask whether the tasks are real code, whether an agent could solve them from memory, and how much ground they cover.
5. Tasks run on real repositories that build
What a pass looks like. Each task is a real codebase with a known vulnerability, in a container that builds and runs its tests.
PatchEval collected 1,000 vulnerabilities from CVEs reported between 2015 and 2025, and 230 of them come with a runtime sandbox where a patch can be executed and tested [2]. ARVO is a dataset of more than 6,100 real vulnerabilities across 311 open-source projects, each in a form that can be rebuilt and triggered. In the authors’ evaluation it reproduced 81% of vulnerabilities [8]. A list of CVEs is not yet an environment: the build and the trigger both have to work.
Questions for the supplier. How many tasks build and run today? How often does a rollout fail because of the environment and not the agent? Are failed builds rerun or counted against the agent?
6. The fix cannot be recalled from memory
What a pass looks like. Tasks are built so the published patch does not solve them, and the supplier measures how close agent patches are to known fixes.
Shen and co-authors measured how similar agent patches were to the historical developer patches. On average, 25% showed substantial similarity. Their benchmark responds by transplanting vulnerabilities into new repository contexts and mutating the code [1]. Aleithan and co-authors report that more than 94% of SWE-bench issues predate the knowledge cutoffs of the models tested on them [9].
Questions for the supplier. Are tasks drawn from vulnerabilities disclosed after current models’ training cutoffs, or rewritten so the public patch does not apply? Do you measure similarity between agent patches and upstream fixes? How often are tasks refreshed?
7. The instruction does not reveal the flaw
What a pass looks like. The agent gets a codebase and a reason to look, not the location of the flaw or the fix.
Aleithan and co-authors screened the issues one agent had resolved on SWE-bench. In 32.67% of the successful patches, the solution had been given in the issue report or its comments. Removing those and the weakly tested cases cut the agent’s resolution rate from 12.47% to 3.97% [9]. CyberGym gives the agent only a text description of the vulnerability and the codebase [10].
Questions for the supplier. What exactly does the agent receive at the start of a task? Does the instruction name the file, the function or the weakness type? Does the task say how many vulnerabilities there are?
8. Coverage is stated
What a pass looks like. The supplier publishes the weakness types, languages and number of projects the tasks cover.
Published benchmarks state this up front. PatchEval covers 65 distinct CWEs in Go, JavaScript and Python [2]. CyberGym covers 1,507 vulnerabilities across 188 software projects [10]. RealSec-bench has 105 instances spanning 19 CWE types, all in Java [4]. Numbers like these tell a buyer whether the tasks match the code their agent will defend.
Questions for the supplier. Which CWEs do the tasks cover, and how many tasks per weakness class? Which languages and how many distinct projects? Where is coverage thin?
9. Current agents still fail a large share
What a pass looks like. The supplier reports how current frontier agents score, and a meaningful share of tasks stays unsolved.
On CyberGym, even the best agent and model combinations reached about a 20% success rate at reproducing vulnerabilities [10]. On SEC-bench, agents reached at most 18.0% on proof-of-concept generation and 34.0% on vulnerability patching [11].
Questions for the supplier. What do current frontier agents score on these tasks? How many tasks does every tested model fail? How do you add harder tasks as scores rise?
Checks on reporting
These two checks cover how results are measured and which tasks are used to measure them.
10. Results come from repeated attempts
What a pass looks like. Scores report several attempts per task and say how many.
One run hides inconsistency. τ-bench introduced pass^k, which asks whether an agent succeeds on all of k trials. Agents that succeeded on under 50% of its tasks were far less consistent across trials: pass^8 was under 25% in the retail domain [12]. τ-bench is not a security benchmark, but the reliability problem is general. Ask which measure a supplier reports, because pass@k counts a task as solved if any of k attempts succeeds.
Questions for the supplier. How many attempts per task sit behind each score? Do you report success on any attempt, on every attempt, or both? Are attempts lost to infrastructure rerun?
Sources: [12]
11. Evaluation tasks never appear in training deliveries
What a pass looks like. The tasks used to measure the agent are a separate set from the tasks sold for training, and the supplier says so in writing.
The clearest published evidence comes from coding benchmarks. Liang, Garg and Moghaddam asked models to name the buggy file from an issue description alone, with no access to the repository. Models were right up to 76% of the time on SWE-Bench Verified and up to 53% on repositories outside the benchmark, which the authors read as a sign of contamination or memorization [13]. An agent trained on the same vulnerabilities it is later scored on shows the same effect.
Questions for the supplier. Are evaluation tasks and training tasks separate sets? Has any evaluation task been delivered to another customer? Are the tasks we license exclusive to us?
Sources: [13]
Sources
The papers cited above, in the order they first appear. Each was read on November 23, 2026.
- Chihao Shen and 5 co-authors, “PatchBench: Evaluating AI Agents for Vulnerability Patching,” arXiv:2609.04075, first posted September 3, 2026.
- Zichao Wei and 10 co-authors, “PATCHEVAL: A New Benchmark for Evaluating LLMs on Patching Real-World Vulnerabilities,” arXiv:2511.11019, first posted November 14, 2025.
- You Wang, Michael Pradel and Zhongxin Liu, “Are “Solved Issues” in SWE-bench Really Solved Correctly? An Empirical Study,” arXiv:2503.15223, first posted March 19, 2025.
- Yanlin Wang and 7 co-authors, “RealSec-bench: A Benchmark for Evaluating Secure Code Generation in Real-World Repositories,” arXiv:2601.22706, first posted January 30, 2026.
- Boxi Yu, Yuxuan Zhu, Pinjia He and Daniel Kang, “UTBoost: Rigorous Evaluation of Coding Agents on SWE-Bench,” arXiv:2506.09289, first posted June 10, 2025.
- Yuxuan Zhu and 24 co-authors, “Establishing Best Practices for Building Rigorous Agentic Benchmarks,” arXiv:2507.02825, first posted July 3, 2025.
- Ziqian Zhong, Aditi Raghunathan and Nicholas Carlini, “ImpossibleBench: Measuring LLMs’ Propensity of Exploiting Test Cases,” arXiv:2510.20270, first posted October 23, 2025.
- Xiang Mei and 10 co-authors, “ARVO: Atlas of Reproducible Vulnerabilities for Open-Source Software,” arXiv:2408.02153, first posted August 4, 2024.
- Reem Aleithan and 5 co-authors, “SWE-Bench+: Enhanced Coding Benchmark for LLMs,” arXiv:2410.06992, first posted October 9, 2024.
- Zhun Wang and 5 co-authors, “CyberGym: Evaluating AI Agents’ Real-World Cybersecurity Capabilities at Scale,” arXiv:2506.02548, first posted June 3, 2025.
- Hwiwon Lee, Ziqi Zhang, Hanxiao Lu and Lingming Zhang, “SEC-bench: Automated Benchmarking of LLM Agents on Real-World Software Security Tasks,” arXiv:2506.11791, first posted June 13, 2025.
- Shunyu Yao, Noah Shinn, Pedram Razavi and Karthik Narasimhan, “τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains,” arXiv:2406.12045, first posted June 17, 2024.
- Shanchao Liang, Spandan Garg and Roshanak Zilouchian Moghaddam, “The SWE-Bench Illusion: When State-of-the-Art LLMs Remember Instead of Reason,” arXiv:2506.12286, first posted June 14, 2025.
Questions buyers ask
What should I check in a cybersecurity RL environment before training on it?
Check three things: whether the grader rewards real fixes, whether the tasks can be solved from memory, and how scores are reported. Shen and co-authors found that validating a patch with the original exploit alone inflated agents’ solve rates 1.83 times on average across 11 agents.
What counts as a verified reward for a successful patch?
A verified reward means the exploit no longer works and the software still does. PatchEval verifies patches with security tests and functionality tests together, and Wang, Pradel and Liu found that 29.6% of plausible patches on SWE-bench Verified behaved differently from the reference fix.
Is a specialist find-and-patch environment or a general RL gym better for training patching agents?
Choose on the checks, not the label. A patching agent needs rewards that confirm the exploit is blocked and the software still works, whoever supplies them. PatchEval equips 230 of its 1,000 vulnerabilities with a sandbox that runs both security and functionality tests.
Why does pass@k matter in a cybersecurity RL environment?
It tells you how many attempts sit behind a score. An agent can solve a task once and fail it on the next try: τ-bench found agents that succeeded on under 50% of tasks dropped below 25% when asked to succeed on all of eight trials in one domain.
See a check applied
Checks 2, 3 and 6 are written into Collinear AI’s CWE-bench, a public benchmark of audit-and-patch tasks. Its site says every task ships a reference patch that its verifier passes and an untouched repository that it fails. Its verifier confirms the exploit no longer works and that legitimate behaviour still holds, and tasks solvable from memorized fixes alone are excluded. Collinear describes the benchmark’s design in “CWE-bench: Refocusing Agentic Security from Exploitation to Defense” (arXiv:2610.17020, October 2026).
CWE-bench’s 250 tasks are evaluation tasks: 100 public and 150 held out. Collinear’s training corpus is a separate collection of more than 4,000 tasks, and the site says evaluation tasks never appear in training deliveries, which is check 11. Read the seven task checks and the grading method on CWE-bench.
For suppliers to put these questions to, see Best Cybersecurity RL Environment Companies in 2026.