CryptoBench: A benchmark of cryptographic API misuse for evaluating LLM code reviewers
54 Python snippets covering nine cryptographic misuse classes (36 vulnerable, 18 matched secure controls), a self-contained harness that queries local Ollama models with a fixed verdict-only prompt, and 1,890 recorded trials across seven open code models (qwen2.5-coder 0.5B to 14B, deepseek-coder 6.7B, codellama 7B). Includes an analysis script that reproduces per-model and per-class detection rates with Wilson 95% confidence intervals. v1.0.1 corrects the documentation: the harness sets no decoding options, so models ran at Ollama default sampling (v1.0.0 README wrongly said temperature 0). Data and results are unchanged. Related work (added in v1.1.0). Cihan, İçöz, Haratian and Tüzün (arXiv 2505.20206, "Evaluating Large Language Models for Code Review") test GPT-4o and Gemini 2.0 Flash as code reviewers on correctness classification and report that performance depends on the type of code and that the outputs can be faulty. CryptoBench asks a related question for security review of cryptographic API use with local open models. It reports detection together with the matched secure controls, so a model that flags everything can be told apart from one that finds real misuse. v1.1.0 changes this description only. Data, harness and results are unchanged.
- Link
- https://doi.org/10.5281/zenodo.23680776
- Found by
- DataCite
- Authors
- Sunny Chokshi
- Organizations
- University of the Cumberlands
- Categories
- benchmark, evaluation
- Published
- 2026-10-27
- Last seen by the radar
- 2026-10-28
- Citations
- 1
- Downloads
- 0
- Views
- 0
- Radar score
- 44.43 / 100 (how it is scored)
- Why it scored so
- Matched: benchmark, evaluat; Primary record: DataCite
- Related links
- https://zenodo.org/doi/10.5281/zenodo.23680776