Case · DiggingBeagle record

Repository retrieval improved working code more than secure code in CASE-Bench

An executable study separated functionality passes from exploit-safe passes for code assistants.

Public disclosure: Nov 4, 2026

Scope

Research benchmark with 145 CVE-derived coding tasks in 51 repositories.

Assessment profile

Assessment method
Setting
evaluation
Exploitation
demonstrated
Evidence
Grade C
Remediation
not applicable
AI role
AGAINST AI
Basis and provenance

The paper uses executable exploit verifiers on reconstructed CVE tasks, but estimates apply only to its coding agents and selected repositories. An impact band remains unassigned because the available evidence does not establish a comparable severity score or verified numerical loss for this assessment.

Assessed Nov 8, 2026 using diggingbeagle.assessment/1.

At a glance

Mechanism and trust boundary

  1. 01

    Prepare a vulnerable repository task with executable functional and security tests.

  2. 02

    Vary context retrieval and intentionally withhold or insert security examples.

  3. 03

    Compare correct patches with patches still exploitable under the verifier.

Claims & evidence

CLM-ENR-CASEBENCH-SAFEGUARDSThe CASE-Bench authors report that the tested coding agents encountered relevant repository safeguards in only 27% to 36% of their trajectories.supported

Basis: reported finding

Link to claim
CLM-CASEBENCH-RETRIEVAL-SECURITY-GAP-01Across CASE-Bench conditions, functionality-oriented context increased functional pass rate by up to 8.2 percentage points but secure pass rate by at most 3.7 points.supported

Basis: reported finding

Link to claim
CLM-CASEBENCH-RETRIEVAL-SECURITY-GAP-02Removing a relevant repository safeguard reduced secure passes by up to 8.1 points, and adding one insecure example raised functional-but-exploitable outcomes by 6.3 points.supported

Basis: reported finding

Link to claim

Implications

Retrieval quality needs a security outcome metric, because ordinary functional success can conceal a retained vulnerability.

Controls and mitigations

  • Include exploit-oriented regression tests and trace whether the agent inspected relevant safeguards.

Unknowns and contradictions

  • The 145 selected tasks and six model or harness conditions are a research sample rather than an estimate of real deployed coding-agent vulnerabilities. The upper-end gains describe tested configurations, not guaranteed improvements from any retrieval system.

Sources and citation

Material revision history

  1. Nov 8, 2026 · Canonical change recorded · new in release · revision 229