Field Notes
A small, source-linked blog

2026-11-03 · AI-assisted

Evaluating AI Security Agents with CWE-bench v2

An overview of CWE-bench v2, a public benchmark released on November 3, 2026, designed to test how well AI models find and fix security vulnerabilities.

According to the Hugging Face blog, Collinear AI released CWE-bench v2 to test the limits of cyber capabilities in AI models. The update provides a public set of 100 tasks covering 91 different Common Weakness Enumerations (CWEs) across various vulnerability classes.

What Changed

CWE-bench v2 updates the public task pool to 100 scenarios where an agent receives a checkout of a real open-source repository and an instruction. The goal is to find and fix a security weakness without breaking existing functionality. Scoring is programmatic and deterministic, and tasks are curated using LLM judge panels to prioritize hardness and fairness.

How It Works

Every task is a self-contained Harbor task featuring a Dockerized environment, an instruction, and a deterministic verifier. The verifiers are designed to check for correct behavior rather than enforcing a specific fix structure, and they fail memorized solutions like known upstream patches.

The benchmark ships with a registry.json and integrates directly with Hugging Face repositories, allowing developers to run evaluations using Harbor without manually cloning repositories. Additionally, tasks are tagged as rl-environment, meaning the same environments and verifiers can provide rewards for training defensive agents.

Why a Developer Might Care

According to results published on the Hugging Face blog, 11 models were evaluated on the public set. Gemini 4 Argon leads with a 67.8% pass@1 and 81.0% pass@4, just ahead of Claude Opus 5.5 at 67.3% pass@1 and 78.0% pass@4. A total of 95 tasks were solved by at least one model.

For cost-conscious engineering, the source highlights a Pareto frontier among evaluated models:

Limitations

Source: Hugging Face

Sources