CodingDeprecated
Trust Score:
10

CyberSecEval

Meta's evolving suite for insecure code, cyberattack assistance, prompt injection, exploitation, SOC analysis, and autopatching.

Launched: Refresh: static
Status Assessment (deprecated):

The original CyberSecEval benchmark is no longer the recommended standalone version: Meta advanced through CyberSecEval 2 and 3 to CyberSecEval 4, changing tasks and metrics rather than maintaining one comparable score axis.

Performance Timeline

Longitudinal progression of model scores against human baselines.

Performance & Historical Trajectory

Empirical score progression across model release dates and evaluation rounds.

Independent Vendor-Reported Human Baseline (82.0%)
ModelScoreDateSource TypeProvenance
llama 3 70b-instruct29.27%2024-04-18vendor-reportedSource ↗
llama 3 8b-instruct45.27%2024-04-18vendor-reportedSource ↗
UN codellama-70b-instruct12.93%2024-01-29vendor-reportedSource ↗
UN codellama-34b-instruct36.33%2023-08-24vendor-reportedSource ↗
UN codellama-13b-instruct37.27%2023-08-24vendor-reportedSource ↗
GPT-419.87%2023-03-14vendor-reportedSource ↗
gpt-3.5-turbo39.13%2023-03-01vendor-reportedSource ↗

Human Baseline & Difficulty Horizon

Calibrated human reference points, specialist benchmarks, and ceiling thresholds.
Measured Human Score82.0%Domain Expert Baseline
Baseline Protocol & Interpretation

Human cyber-security specialist vulnerability detection and exploit identification rate.

Metric & Scoring Methodology

Verification protocols, aggregation formulas, and specialized metric variants.
Primary Metric:average textual prompt-injection success rate (%) — lower is safer
Scoring Engine:llm-judge

Dataset & Compute Cost

Evaluation volume, public availability, API pricing, and local hardware requirements.
Total Dataset SizeAnnotated evaluation items
Public Test SetPublicOpenly mirrored on repositories
Access GatingOpen AccessUnrestricted download
Evaluation LicenseOpen AccessDataset usage and redistribution terms
Frontier API Compute Cost:

$5 – $20 USD for full benchmark evaluation run on frontier APIs.

Recommended Local GPU Setup:

1x NVIDIA RTX 4090 (24GB) or A100 (40GB/80GB) via vLLM / SGLang

Official Dataset & Benchmark Files:Download / View Dataset Repository ↗

How to Run & Reproduce

Standardized evaluation protocols, CLI commands, and reproducible runner templates.
Prompt Regimezero-shot
Reasoning Modedirect
Sampling Temp0
Pass@k Budgetk = 1
Tools & SandboxPure Text
Scoring Verifierllm-judge
Option AEleutherAI LM-Evaluation-Harness (Open-Weight Models)
lm_eval --model hf --model_args pretrained=<model_path> --tasks cyberseceval --batch_size auto
Option BOpenCompass Evaluation Framework
opencompass --datasets cyberseceval --models <model_config>
Python APIDeterministic Inference Loop Snippet
# Standard API Evaluation Loop
from openai import OpenAI

client = OpenAI()
response = client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": prompt}],
    temperature=0.0,
)
Standardized Reporting Requirement:

When publishing results for CyberSecEval, always report the exact prompt template, few-shot exemplar ordering, sampling temperature (temperature=0), maximum reasoning budget tokens, and the precise timestamped model snapshot ID.

Contamination & Memorization Analysis

Audit of pretraining exposure risks, memorization vectors, and refresh policies.
Overall Contamination Risk:HIGH
Refresh Cadence:

Static fixed snapshot

Test Set Exposure:

Public on web / HuggingFace