TOSSS (C/C++): leaderboard

TOSSS (Two-Option Secure Snippet Selection, 2026) shows a model the vulnerable and the fixed version of the same C or C++ function from a real CVE fix, in random order, and asks it to pick one. The prompt is neutral and does not mention security. The score is the share of pairs where the secure version is picked (0-1, shown times 100); higher is better.

Metric: TOSSS security score (0-1, times 100): the share of 500 C/C++ function pairs (the function before and after a CVE fix, mined from MegaVul) for which the model picks the secure version when shown both in random order with a neutral prompt that does not mention security; a constant or random choice scores about 50; higher is better. Source: arxiv.org. Saturation forecast: Around February 2027. 14 models tracked. Updated 10 Oct 2026.

Top models

#ModelScoreOverall rank
1GLM-587.8#276
2GPT-5.486.6#139
3Claude Opus 4.686.4#116
4Kimi K2.585.8#272
5MiniMax-M2.583.8#612
6Gemini 3 Flash (Preview)83.6#153
7Claude Sonnet 4.680.8#180
8Claude 3.5 Sonnet75.2#774
9Llama 3 70B Instruct71.9#1730
10Gemini 3.1 Flash Lite (Preview)71#411
11codestral-250868#1562
12DeepSeek V3.265.2#432
13Qwen3 Coder Next64.4#744
14Mistral Large 348#844

No result here: #1 Claude Fable 5.2, #3 Gemini 4 Neon, #4 GPT-6.2 Astra.

Interactive version: theaggregate.ai/benchmark?slug=tosss-c-c-plus-plus · How It Works · Data refreshed daily, snapshot 2026-11-25.