A Sound Translation from Tamarin to ProVerif: Enabling Comparative Analysis
This paper presents a sound translation from Tamarin to ProVerif that enables rigorous comparative analysis of security protocol verification tools by encoding Tamarin's multiset rewrite semantics into ProVerif's applied-pi calculus, achieving high coverage and significant performance gains while formally characterizing the limits of faithful translation.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are a detective trying to solve a mystery, but instead of a crime scene, your "crime" is a secret code that might be broken by a sneaky hacker. In the world of computer security, these codes are called protocols—the rules that let your phone talk to a bank, or your game console talk to a server. The problem is, these rules are so complicated that even the smartest human detectives can miss a tiny loophole where a hacker could sneak in. So, scientists built "automated detectives," which are super-smart computer programs designed to check these rules for holes.
Two of the most famous automated detectives are named Tamarin and ProVerif. Think of them as two different types of investigators with very different styles. Tamarin is like a meticulous, slow-moving librarian who checks every single book on the shelf, one by one, to make sure nothing is missing. It is incredibly thorough and rarely makes mistakes, but it can take a long time to finish its work. ProVerif, on the other hand, is like a lightning-fast speed-reader who skims the shelves. It can check a massive library in seconds, but because it skims, it might sometimes think it found a problem where there isn't one (a "false alarm").
For years, these two detectives worked in separate offices. Because they spoke different "languages" and used different methods, it was nearly impossible to compare them directly. You couldn't easily ask, "Is ProVerif's speed worth the risk of missing a real problem?" or "Does Tamarin's slowness actually catch things ProVerif misses?" This paper is about building a magical translator that lets these two detectives talk to each other, allowing them to solve the same cases side-by-side to see who is faster, who is more accurate, and where their strengths lie.
The Great Detective Translator
The authors of this paper, Kevin Morio, Yavor Ivanov, and Robert Künnemann, built a sound translation tool. In the world of science, "sound" is a fancy way of saying "trustworthy." They created a system that takes a security protocol written in Tamarin's slow-but-precise language and automatically rewrites it into ProVerif's fast-but-skimming language.
But here's the tricky part: you can't just translate a book word-for-word if the two languages have different grammar rules. Tamarin uses a method called multiset rewrite rules, which is like having a pile of physical cards where you can only use a card once before it disappears. ProVerif uses something called the applied-π calculus, which is more like a digital database where entries can be copied and reused. To make the translation work, the authors invented new techniques to force ProVerif to act like it's using physical cards that disappear, ensuring it doesn't accidentally reuse a "card" and create a fake problem. They also figured out how to handle "simultaneous events"—moments where Tamarin says two things happen at the exact same time, while ProVerif insists everything happens one after another. They solved this by giving every event a unique ID tag, so ProVerif knows which events belong to the same moment.
What They Found: Speed vs. Accuracy
The team didn't just build the translator; they put it to the test. They took 121 different security models (think of these as 121 different lock-and-key systems) and ran them through both Tamarin and the new ProVerif translation.
The results were fascinating:
- The Agreement: Out of 562 specific security checks (called "lemma tasks") that both tools could successfully run, 246 out of 247 of the non-tricky cases agreed perfectly. If Tamarin said "Safe," ProVerif said "Safe." If Tamarin found a "Hacker," ProVerif found the same "Hacker." The one case where they disagreed was flagged because the translation was incomplete for that specific model, not because the tools are fundamentally broken.
- The Speed Gap: This is where ProVerif shines. When both tools finished a task, ProVerif was 6.74 times faster on average. In terms of memory (how much computer brainpower it used), ProVerif was 6.24 times more efficient.
- To put this in perspective: For a specific famous case study (the Lowe fix for the Andrew Secure RPC protocol), Tamarin took about 30 seconds to check five different security rules. ProVerif did the exact same job in just 0.46 seconds. That's a speedup of nearly 65 times for that specific test!
- The "Best Effort" Warning: The authors were very careful to note that some features, like a specific math trick called XOR, couldn't be translated perfectly. For these cases, ProVerif's results are "best effort" approximations. In these tricky XOR cases, the tools disagreed more often (31 times out of 65), so the authors warn users not to trust those specific results as absolute proof.
Why This Matters
This paper doesn't claim that ProVerif is now "better" than Tamarin, or that Tamarin is obsolete. Instead, it proves that for a huge chunk of security problems (the "common core"), you can use the fast tool (ProVerif) with confidence, knowing that if it says a system is safe, the slow, meticulous tool (Tamarin) would agree.
The authors showed that by using their translation, security researchers can now use ProVerif as a "fast backend" to quickly check many ideas, while still having the option to use Tamarin for the final, most critical checks. It's like having a speed-reader who can scan a library in seconds to find the books you need, while knowing that the librarian is there to double-check the most important ones if you need 100% certainty.
In short, the paper successfully bridges the gap between two giants of computer security, proving that they can work together to make our digital world safer, faster, and more reliable.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.