LSCBench
Code · 2026-10-10
450 secure-coding tasks (Last Secure Code Benchmark) from the National University of Singapore and Alibaba's Qwen team: 150 vulnerability scenarios covering 24 CWEs, each posed at function, file and repository granularity. Each task asks a coding agent, offline in a Harbor container, to implement a functional specification derived from a real CVE in C, C++, Go, Java, JavaScript, PHP or Python; the specification never mentions security. Hidden functional tests and a security suite that replays the original attack run in a separate verifier, and a task counts only when both pass. The score (FUNC∧SEC) is the percentage of the 450 tasks whose code both works and is secure.
Top models (higher is better)
| Model | Score |
|---|---|
| Claude Fable 5 | 25.1 |
| GPT-5.6 Sol | 24.7 |
| Qwen3.8 Max (0902) | 22.0 |
| GLM-5.3 | 21.3 |
| Kimi K3 | 16.4 |