CrypFormBench: Benchmarking Formal Analysis Capability of Large Language Models for Cryptographic Schemes
Manual formal analysis of cryptographic schemes is labor-intensive and requires substantial expertise. While model-checking tools (e.g., Scyther and Tamarin) and computational-security tools (e.g., CryptoVerif and EasyCrypt) improve the automation of security proofs, they still rely on experts to abstract schemes and write tool-specific formal descriptions. Large language models (LLMs) are a promising alternative, but their effectiveness in this domain remains unexplored due to the absence of standardized evaluation methodologies. To fill this gap, we introduce CrypFormBench (C.F.B for short), a comprehensive benchmark jointly covering symbolic and computational security to evaluate five core LLM capabilities: interpretation, generation, completion, transformation, and correction. It comprises 700 instances spanning 677 schemes, 7 mainstream formal verifier languages, and 160 security properties. The evaluation of 9 state-of-the-art LLMs reveals that most of them perform well on interpretation and completion, given their code-awareness advantages, but struggle with generation, transformation, and correction. Overall, their performance remains limited, with Claude-3.5 achieving the highest score at 48.7 out of 100. We further provide practical guidance, e.g., few-shot prompting, Pass@K sampling, and lightweight fine-tuning, to mitigate the executability bottleneck and improve tool-usable outputs. Taken together, our benchmark and analyses offer a grounded view of current progress and concrete directions toward reliable LLM-assisted formal cryptographic analysis.
Authors
- Hengyuan Liu (ORCID: https://orcid.org/0000-0002-5884-2089)
- H Liu
- Qionglu Zhang (ORCID: https://orcid.org/0000-0002-0927-0678)
- Zhaoxuan Li (ORCID: https://orcid.org/0009-0007-3754-9418)
- Haihui Fan (ORCID: https://orcid.org/0000-0002-4366-9121)
- Z. Zhao
- Bingzheng Wang
- Rui Zhang
- Xiaoyan Gu
- Xianhui Lu
- Li Zhou
Institutions
- Data Assurance and Communication Security (CN)
- Institute of Software (CN)
- Zhejiang University (CN)
Publication Details
- Journal
- Proceedings of the ACM on software engineering.
- Published
- 2026-06-30
- DOI
- https://doi.org/10.1145/3808184
- Primary Topic
- Advanced Malware Detection Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00