Renaissance Labs · Code
Benchmark · 2023-12

CyberSecEval (Purple Llama)

Meta's suite for insecure-code generation and cyber misuse, with later versions adding more tests; also in inspect_evals (cyberseceval_2 to 4).

How to use it

Run as a safety gate for code models before release, alongside CWEval for dynamic checks.

Caveats

Original insecure-code tests use static analysis rules (CWEval's authors criticize unclear specs and impractical evaluation). Not execution-based for functionality. Repo license is mixed, so check it.

LicenseThis entry is not plainly permissive (family: unknown, read the source). Read the license on the source page before using it for training or for a product.

Related

  • Aider Polyglot benchmark: Hard Exercism exercises where the model must edit files in aider's format and pass tests, measuring...
  • CWEval: Outcome-driven evaluation of both functionality and security of generated code using test oracles for...
  • CodeContests (DeepMind): Competitive problems from Codeforces, CodeChef, AtCoder and others with generated tests and correct/incorrect...
  • CodeScope: Execution-based multilingual, multitask benchmark covering code understanding and generation across many...
  • CodeUltraFeedback: Preference data: coding instructions with responses ranked on five coding preferences by GPT-3.5 as judge,...
  • DevEval (SDLC benchmark, arXiv 2403.08604): Evaluates LLMs across the software lifecycle: design, environment setup, implementation, acceptance and unit...