Skip to content
IJK

CWE-bench v2: Task Contents, Scoring and What Is Open

By IJK ·

What a CWE-bench v2 task gives an agent, how the post says scoring works and which parts are open, held out or gated.

What a task gives the agent

An agent gets a checkout of a real open-source repository and a short instruction, with the goal of finding and fixing a security weakness without breaking existing functionality. [1]

Every task is a self-contained Harbor task (a Dockerized environment, an instruction, and a deterministic verifier), and the dataset ships a registry.json. [2]

Dockerized environmenta checkout of a real open-source repositoryShort instructionDeterministic verifierscoring is fully programmatic
What does a task contain and how is the result decided?

How scoring works

Scoring is fully programmatic, so results are deterministic and anyone can reproduce them without extra cost. [3]

We also maintain a held-out set, so that we can keep tracking progress on tasks no model has seen. [4]

What is open and what is gated

The public set, the grader and the harness are open. [5]

The dataset is gated: accept its access conditions on the dataset page first. [6]

The tasks are also tagged rl-environment: the same environments and verifiers can provide rewards for training defensive agents, not just for evaluating them. [7]

Sources

  1. The Hugging Face source says: An agent gets a checkout of a real open-source repository and a short instruction, with the goal of finding and fixing a security weakness without breaking existing functionality. CWE-bench v2
  2. The Hugging Face source says: Every task is a self-contained Harbor task (a Dockerized environment, an instruction, and a deterministic verifier), and the dataset ships a registry.json. CWE-bench v2
  3. The Hugging Face source says: Scoring is fully programmatic, so results are deterministic and anyone can reproduce them without extra cost. CWE-bench v2
  4. The Hugging Face source says: We also maintain a held-out set, so that we can keep tracking progress on tasks no model has seen. CWE-bench v2
  5. The Hugging Face source says: The public set, the grader and the harness are open. CWE-bench v2
  6. The Hugging Face source says: The dataset is gated: accept its access conditions on the dataset page first. CWE-bench v2
  7. The Hugging Face source says: The tasks are also tagged rl-environment: the same environments and verifiers can provide rewards for training defensive agents, not just for evaluating them. CWE-bench v2

Editorial (AI-assisted; automatically checked, not human-reviewed). Each statement is linked to its source; check the source before relying on a detail.

  • security
  • benchmarks
  • agents
  • evaluation