CWE-bench is designed to check the boundaries of frontier cyber capabilities. In our continued pursuit to push the horizon at Collinear AI, CWE-bench v2 opens up a public set of 100 duties that anybody can run and consider their fashions on. The setup is similar as earlier than. An agent will get a checkout of an actual open-source repository and a brief instruction, with the aim of discovering and fixing a safety weak spot with out breaking current performance. Scoring is totally programmatic, so outcomes are deterministic and anybody can reproduce them with out additional value. All our programmatic checks have been curated with the assistance of LLM choose panels that form them in the direction of the path of hardness and equity. We additionally keep a held-out set, in order that we are able to hold monitoring progress on duties no mannequin has seen. To guage your mannequin on the held-out set, contact cyber@collinear.ai.
Our aim is to be exhaustive. A defender has to anticipate the methods an attacker may get in, and get it proper each single time. These 100 duties cowl 91 completely different CWEs, spanning a variety of vulnerability courses. A mannequin that does effectively right here has to know the a number of weak spot surfaces {that a} potential attacker can exploit. Recognising a well-recognized sample shouldn’t be sufficient.
As a part of our meticulous effort to maintain bettering high quality, for each activity we checked that the next questions had been true:
- Does the instruction learn like a sensible instruction and never an analysis setting?
- Can each graded behaviour be inferred from the instruction?
- Does the verifier verify for proper behaviour and never for particular construction of 1 repair?
- Does the starter code fail and the reference repair cross?
- Does the unique performance nonetheless work with the brand new repair?
- Do the verifiers fail memorized options just like the recognized upstream patch?
Each activity was additionally reviewed by hand. Open-sourcing the set is a part of the identical effort to enhance high quality. We welcome suggestions on any activity, and contributions to the general public set.
Outcomes
Outcomes are tracked in two locations on the Hub. The leaderboard on the CWE-bench dataset web page covers open-weight fashions and updates by itself: labs and the neighborhood add a outcome by opening a PR on the mannequin’s repo with a outcomes file (how). For the total comparability, together with API-only fashions similar to Gemini, Claude and GPT, see the CWE-bench leaderboard Area, the place new fashions are added by a PR on the Area.
Open-weight fashions, from the dataset web page:
All evaluated fashions, together with API-only ones:
Of the 11 fashions evaluated, Gemini 4 Argon leads with 67.8% cross@1 and 81.0% cross@4, simply forward of Claude Opus 5.5 (67.3% cross@1, 78.0% cross@4). 95 duties are solved by at the least one mannequin, a sign that the duties are certainly solvable. Nevertheless, even the chief fails 19% of the set on each try, so the lengthy tail is way from solved. The general public set, the grader and the harness are open. Run your mannequin, and inform us the place it stands.

On value, DeepSeek V4.1 Flash (1017), Claude Opus 5.5 and Gemini 4 Argon kind the Pareto frontier: DeepSeek reaches 57.0% cross@1 at $0.04 per rollout, Opus provides ten factors at $1.83, and Gemini edges forward at $3.92.
Run it from the Hub
Each activity is a self-contained Harbor activity (a Dockerized atmosphere, an instruction, and a deterministic verifier), and the dataset ships a registry.json. Harbor can due to this fact run the entire benchmark straight from the Hugging Face repo, with out cloning something your self:
harbor run --repo "https://huggingface.co/datasets/collinear-ai/cwe-bench" -d cwe-bench@2.0 -k 4
--agent --model --env docker
--allow-agent-host
-k 4 runs 4 makes an attempt per activity, and the reported rating is the imply reward over all 400 trials. The dataset is gated: settle for its entry situations on the dataset web page first. Harbor fetches the duties with git, so additionally save your HF token to git’s credential helper as soon as:
hf auth login --token $HF_TOKEN --add-to-git-credential
The duties are additionally tagged rl-environment: the identical environments and verifiers can present rewards for coaching defensive brokers, not only for evaluating them.




