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

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

22 May 2026arXiv:2605.23643added by Syntology

Matthias Cosler, Cas Cremers, Bernd Finkbeiner, Mohamed Ghanem, Niklas Medinger

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

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.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2605.23643")

Code

Syntology Ran 16 of 18 code samples harvested from 2 repositories linked to this paper; 2 have no recorded run. Of those that ran: 16 ran with no contract checked.

By repository: found in paper text by Syntology: 18 samples from 2 repositories, 16 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

niklasmedinger/Tamarin-ML-API found in paper text by Syntology report
MatCos/TamRL found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

18 samples harvested; 16 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

16ran
2unverified

Licence: 12 of the 18 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

add_dashes_to_arguments niklasmedinger/Tamarin-ML-API/etc/tamarin-troop.py found in paper text by Syntology ran GPL-3.0 (copyleft) · pointer only · 2242a44f3f7b7332 · report
add_double_dashes_to_arguments niklasmedinger/Tamarin-ML-API/etc/tamarin-troop.py found in paper text by Syntology ran GPL-3.0 (copyleft) · pointer only · ac554b856fdbcd2f · report
color niklasmedinger/Tamarin-ML-API/regressionTests.py found in paper text by Syntology ran fingerprinted GPL-3.0 (copyleft) · pointer only · 85c53052d0602d48 · report
create_commands MatCos/TamRL/eval/tamarin_wrapper.py found in paper text by Syntology ran MIT (permissive) · 28aae34a5d50f267 · report
extractexclude niklasmedinger/Tamarin-ML-API/manual/filter.py found in paper text by Syntology ran fingerprinted GPL-3.0 (copyleft) · pointer only · 3d037295fa1d28e5 · report
filterinput niklasmedinger/Tamarin-ML-API/manual/filter.py found in paper text by Syntology ran GPL-3.0 (copyleft) · pointer only · 524e718089af0ac5 · report
getColorQuality niklasmedinger/Tamarin-ML-API/regressionTests.py found in paper text by Syntology ran GPL-3.0 (copyleft) · pointer only · aad03ee127de0e35 · report
get_sinusoidal_positional_encoding MatCos/TamRL/src/models/utils.py found in paper text by Syntology ran MIT (permissive) · c046ae398def14ec · report
includefile niklasmedinger/Tamarin-ML-API/manual/filter.py found in paper text by Syntology ran GPL-3.0 (copyleft) · pointer only · 0e682454dc085471 · report
mean_pooling MatCos/TamRL/src/models/utils.py found in paper text by Syntology ran MIT (permissive) · 62a99b2d6369003d · report
parseTest niklasmedinger/Tamarin-ML-API/regressionTests.py found in paper text by Syntology ran fingerprinted GPL-3.0 (copyleft) · pointer only · d2c8d290524cfd7f · report
rename_quantified MatCos/TamRL/src/dtypes/fol_tree.py found in paper text by Syntology ran MIT (permissive) · 73624e17f433c69d · report
render niklasmedinger/Tamarin-ML-API/misc/cleandot/tamarincleandotlib.py found in paper text by Syntology ran fingerprinted GPL-3.0 (copyleft) · pointer only · c012b7f362c66aab · report
report_results niklasmedinger/Tamarin-ML-API/etc/tamarin-troop.py found in paper text by Syntology ran GPL-3.0 (copyleft) · pointer only · 60866a1f307ba993 · report
run_tamarin MatCos/TamRL/eval/tamarin_wrapper.py found in paper text by Syntology ran MIT (permissive) · c89cd3781f1a9d1d · report
subsequences niklasmedinger/Tamarin-ML-API/misc/cleandot/tamarincleandotlib.py found in paper text by Syntology ran fingerprinted GPL-3.0 (copyleft) · pointer only · 79638e88412d139d · report
abbreviate niklasmedinger/Tamarin-ML-API/misc/cleandot/tamarincleandotlib.py found in paper text by Syntology unverified GPL-3.0 (copyleft) · pointer only · 03aac3723778b306 · report
get_lemma MatCos/TamRL/eval/tamarin_wrapper.py found in paper text by Syntology unverified MIT (permissive) · f4e775bacbe0f922 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2605.23643, was issued in May 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections