AutoTam generates Tamarin models that prove secure implementations of WireGuard and signed Diffie-Hellman
Their language-first method produces accurate Tamarin models and that verified universal trace properties safely translate back to the implementation, yielding secure protocol code.
Security & privacy arXiv 18 Jun 2026 Method Prototype evidence
Published as “AutoTam: Specifying Secure Protocol Implementations with Tamarin Model Generation”
Why it matters
Developers can write protocol code once, obtain a formally verified model and memory-safety guarantees, and deploy it with performance comparable to hand-optimized implementations.
Summary
AutoTam can automatically translate protocol implementations written in a domain-specific language into sound Tamarin models and verify authenticity and secrecy properties, while its interpreter runs at roughly the same throughput as the official WireGuard Go implementation. It also integrates symbolic execution to detect memory errors and demonstrates interoperability with existing WireGuard implementations.
What they found 4
- Performance comparable to official WireGuard Go implementation
“Our implementation performs at roughly the same throughput as the official WireGuard Go implementation when ran by our interpreter.”
- Symbolic execution discovers many execution paths and errors in the responder role
“WireGuard responder 16min 33s 4120”
- Interoperability with existing WireGuard Go and Linux kernel implementations
“We tested running our implementation alongside both the WireGuard Go and Linux kernel implementation in order to ensure our implementation is interoperable.”
- Sound translation preserves authenticity and secrecy properties at the implementation level
“Our sound translation enables verification of authenticity and secrecy properties at the implementation level.”
Caveats 3
- Because of this, the comparison is not fully fair, as there is some additional routing necessary to read and write messages between a UDP client and WireGuard implementation.
- The output part of a state cannot contain statements which may encounter non-network errors, including equality tests, AEAD decryption MAC validation, and signature verification.
- Considering that we have not made any specific optimizations as part of our interpreter implementation, it seems likely that further optimizations are possible.
What’s new here 4
- Automatic, sound extraction of Tamarin models directly from a DSL for protocol implementations
- Support for arbitrary finite-state (non-linear) protocol state machines
- Integrated dynamic symbolic execution (via KLEE) to check memory safety of the implementation
- An interpreter that allows interoperability testing with existing WireGuard implementations