Less Effort, Shorter Proofs: Reinforcement Learning for Security Protocol Analysis in Tamarin

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Cosler, Matthias, Cremers, Cas, Finkbeiner, Bernd, Ghanem, Mohamed, Medinger, Niklas
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866911709061447680
author Cosler, Matthias
Cremers, Cas
Finkbeiner, Bernd
Ghanem, Mohamed
Medinger, Niklas
author_facet Cosler, Matthias
Cremers, Cas
Finkbeiner, Bernd
Ghanem, Mohamed
Medinger, Niklas
contents Tools like Tamarin and ProVerif have achieved notable success in analyzing and verifying complex real-world protocols such as EMV, 5G, and WPA2, even detecting zero-day exploits. Despite these successes, verifying such protocols remains a time-consuming, challenging task, often requiring significant human effort and expertise. In this paper, we present a reinforcement learning (RL) framework inspired by AlphaZero and AlphaProof that implements a new style of proof search for Tamarin. We have developed a stateless API for Tamarin that acts as a classical RL environment. We guide a Monte Carlo Tree Search (MCTS) by a neural heuristic that learns from completed subproofs. We evaluate our framework on 16 case studies, ranging from classical protocol models to challenging state-of-the-art protocol models from recent publications. Our method finds more proofs automatically than Tamarin's standard search and produces shorter proofs than both the standard and human-engineered heuristics. Our pipeline is applicable out of the box to assist Tamarin users in active research, reducing the human effort required. Moreover, our standardized interface provides a programmatic way for users to interact with Tamarin. Finally, our work demonstrates the promising potential of adapting RL-based methods to the Tamarin domain.
format Preprint
id arxiv_https___arxiv_org_abs_2605_23643
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Less Effort, Shorter Proofs: Reinforcement Learning for Security Protocol Analysis in Tamarin
Cosler, Matthias
Cremers, Cas
Finkbeiner, Bernd
Ghanem, Mohamed
Medinger, Niklas
Cryptography and Security
Machine Learning
Tools like Tamarin and ProVerif have achieved notable success in analyzing and verifying complex real-world protocols such as EMV, 5G, and WPA2, even detecting zero-day exploits. Despite these successes, verifying such protocols remains a time-consuming, challenging task, often requiring significant human effort and expertise. In this paper, we present a reinforcement learning (RL) framework inspired by AlphaZero and AlphaProof that implements a new style of proof search for Tamarin. We have developed a stateless API for Tamarin that acts as a classical RL environment. We guide a Monte Carlo Tree Search (MCTS) by a neural heuristic that learns from completed subproofs. We evaluate our framework on 16 case studies, ranging from classical protocol models to challenging state-of-the-art protocol models from recent publications. Our method finds more proofs automatically than Tamarin's standard search and produces shorter proofs than both the standard and human-engineered heuristics. Our pipeline is applicable out of the box to assist Tamarin users in active research, reducing the human effort required. Moreover, our standardized interface provides a programmatic way for users to interact with Tamarin. Finally, our work demonstrates the promising potential of adapting RL-based methods to the Tamarin domain.
title Less Effort, Shorter Proofs: Reinforcement Learning for Security Protocol Analysis in Tamarin
topic Cryptography and Security
Machine Learning
url https://arxiv.org/abs/2605.23643