CryptoFormalEval: Integrating LLMs and Formal Verification for Automated Cryptographic Protocol Vulnerability Detection

Cristian Curaba, Denis D'Ambrosi, Alessandro Minisini, Natalia Pérez-Campanero Antolín
11/20/2024
cs.CRcs.AIcs.SC

No official code found. Best implementation: Cristian-Curaba/CryptoFormalEval (14 stars, GPL-3.0, last commit 2025-06-30).

Abstract

Cryptographic protocols play a fundamental role in securing modern digital infrastructure, but they are often deployed without prior formal verification. This could lead to the adoption of distributed systems vulnerable to attack vectors. Formal verification methods, on the other hand, require complex and time-consuming techniques that lack automatization. In this paper, we introduce a benchmark to assess the ability of Large Language Models (LLMs) to autonomously identify vulnerabilities in new cryptographic protocols through interaction with Tamarin: a theorem prover for protocol verification. We created a manually validated dataset of novel, flawed, communication protocols and designed a method to automatically verify the vulnerabilities found by the AI agents. Our results about the performances of the current frontier models on the benchmark provides insights about the possibility of cybersecurity applications by integrating LLMs with symbolic reasoning systems.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

We introduce a benchmark for testing how well LLMs can find vulnerabilities in cryptographic protocols. By combining LLMs with symbolic reasoning tools like Tamarin, we aim to improve the efficiency and thoroughness of protocol analysis, paving the way for future AI-powered cybersecurity defenses.

142Python, HaskellOct 13, 20241 years agoGPL-3.0
communication-protocolcryptographyevaluationllm-based-agentsllm-benchmarking+2 more

Similar Papers

Cite this paper

@article{curaba2024cryptoformaleval,
  title  = {CryptoFormalEval: Integrating LLMs and Formal Verification for Automated Cryptographic Protocol Vulnerability Detection},
  author = {Cristian Curaba and Denis D'Ambrosi and Alessandro Minisini and Natalia Pérez-Campanero Antolín},
  year   = {2024},
  eprint = {2411.13627},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.13627v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.13627.svg)](https://codeofpaper.com/paper/2411.13627)

Discussion