SecArena
Benchmarks

CWEval

Outcome-driven benchmark simultaneously evaluating functional unit-test correctness and dynamic security resistance of LLM-generated code.

Specification

Evaluation scope, grading oracle, and provenance policy for CWEval.

Origin
External · CWEval Authors
Year
2025
Domain
Secure Coding
Scale
Multi-Lang CWE Tasks
Primary Metric
func-sec@1 (%) (Higher is better)
Verification Oracle
Functional Tests + Dynamic Exploit Oracles
Data Policy
External reference metadata and attributed scores only. Datasets, containers, and evaluation scripts remain hosted upstream.
Data Channel
arXiv Paper Snapshot · Table 1 baseline func-sec@1 (%) · Synced 2026-11-23 (sha256:d80fe3f69cd5)

Standings

9 evaluation records synced from upstream provenance.

# Model / System Provider func-sec@1 (%) Provenance
1
func@1 80.8%
OpenAI 50.2% Reported ↗
2
Claude 3.5 Sonnet Compare →
func@1 78.2%
Anthropic 46.7% Reported ↗
3
GPT-4o mini Compare →
func@1 75.4%
OpenAI 44.5% Reported ↗
4
Claude 3.5 Haiku
func@1 73.8%
Anthropic 43.2% Reported ↗
5
Llama 3.1 70B Instruct
func@1 71.8%
Meta 39.6% Reported ↗
6
Gemini 1.5 Pro Compare →
func@1 69.0%
Google 38.1% Reported ↗
7
Llama 3.1 405B Instruct Compare →
func@1 69.2%
Meta 36.2% Reported ↗
8
Gemini 1.5 Flash Compare →
func@1 70.7%
Google 35.3% Reported ↗
9
Llama 3.1 8B Instruct
func@1 52.6%
Meta 26.5% Reported ↗