USENIX Security2023Top-tier venue
Formal Analysis of Session-Handling in Secure Messaging: Lifting Security from Sessions to Conversations
Abstract
The building blocks for secure messaging apps, such as Signal's X3DH and Double Ratchet (DR) protocols, have received a lot of attention from the research community. They have notably been proved to meet strong security properties even in the case of compromise such as Forward Secrecy (FS) and Post-Compromise Security (PCS). However, there is a lack of formal study of these properties at the application level. Whereas the research works have studied such properties in the context of a single ratcheting chain, a conversation between two persons in a messaging application can in fact be the result of merging multiple ratcheting chains. In this work, we initiate the formal analysis of secure messaging taking the session-handling layer into account, and apply our approach to Sesame, Signal's session management. We first experimentally show practical scenarios in which PCS can be violated in Signal by a clone attacker, despite its use of the Double Ratchet. We identify how this is enabled by Signal's session-handling layer. We then design a formal model of the session-handling layer of Signal that is tractable for automated verification with the Tamarin prover, and use this model to rediscover the PCS violation and propose two provably secure mechanisms to offer stronger guarantees.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
18 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Hey there! You are using WhatsApp: Enumerating Three Billion Accounts for Security and Privacy cites Clone Detection in Secure Messaging: Improving Post-Compromise Security in Practice
- Automated Formal Analysis of Signal's Double Ratchet: Attacks, Fixes and Security Proofs cites How fast do you heal? A taxonomy for post-compromise security in secure-channel establishment
- Automated Formal Analysis of Signal's Double Ratchet: Attacks, Fixes and Security Proofs cites Universally Composable End-to-End Secure Messaging
- Automated Formal Analysis of Signal's Double Ratchet: Attacks, Fixes and Security Proofs cites A More Complete Analysis of the Signal Double Ratchet Algorithm
- Automated Formal Analysis of Signal's Double Ratchet: Attacks, Fixes and Security Proofs cites Formal verification of the PQXDH Post-Quantum key agreement protocol for end-to-end secure messaging
- Automated Formal Analysis of Signal's Double Ratchet: Attacks, Fixes and Security Proofs cites On the Tight Security of the Double Ratchet
- Universally Composable End-to-End Secure Messaging cites Clone Detection in Secure Messaging: Improving Post-Compromise Security in Practice
- Universally Composable End-to-End Secure Messaging cites A More Complete Analysis of the Signal Double Ratchet Algorithm
- A More Complete Analysis of the Signal Double Ratchet Algorithm cites Universally Composable End-to-End Secure Messaging
- Formal verification of the PQXDH Post-Quantum key agreement protocol for end-to-end secure messaging cites A More Complete Analysis of the Signal Double Ratchet Algorithm
- On the Tight Security of the Double Ratchet cites Universally Composable End-to-End Secure Messaging
- On the Tight Security of the Double Ratchet cites A More Complete Analysis of the Signal Double Ratchet Algorithm
Cited by top-tier papers18
- Formal verification of the PQXDH Post-Quantum key agreement protocol for end-to-end secure messagingKarthikeyan Bhargavan, Charlie Jacomme, Franziskus Kiefer, Rolfe SchmidtUSENIX Security 2024 · 27 citations
- Hey there! You are using WhatsApp: Enumerating Three Billion Accounts for Security and PrivacyGabriel K. Gegenhuber, Philipp É. Frenzel, Maximilian Günther, Johanna Ullrich et al.NDSS 2026 · 5 citations
- Automated Formal Analysis of Signal's Double Ratchet: Attacks, Fixes and Security ProofsVincent Cheval, Charlie Jacomme, Jessica RichardsS&P 2026 · 3 citations
- On the Tight Security of the Double RatchetDaniel Collins, Doreen Riepel, Si An Oliver TranCCS 2024 · 3 citations
- Automated Side-Channel Analysis of Cryptographic Protocol ImplementationsFaezeh Nasrabadi, Robert Künnemann, Hamed NematiCCS 2026 · 2 citations
Builds on4
- A More Complete Analysis of the Signal Double Ratchet AlgorithmAlexander Bienstock, Jaiden Fairoze, Sanjam Garg, Pratyay Mukherjee et al.CRYPTO 2022 · 31 citations
- Universally Composable End-to-End Secure MessagingRan Canetti, Palak Jain, Marika Swanberg, Mayank VariaCRYPTO 2022 · 30 citations
- Clone Detection in Secure Messaging: Improving Post-Compromise Security in PracticeCas Cremers, Jaiden Fairoze, Benjamin Kiesl, Aurora NaskaCCS 2020 · 17 citations
- How fast do you heal? A taxonomy for post-compromise security in secure-channel establishmentOlivier Blazy, Ioana Boureanu, Pascal Lafourcade, Cristina Onete et al.USENIX Security 2023
Related papers
- Secrecy in Squirrel and the Post-Compromise Security of a RatchetClément Hérouard, Charlie Jacomme, Adrien Koutsos, Joseph LallemandCCS 2026
- Impossibility Results for Post-Compromise Security in Real-World Communication SystemsCas Cremers, Niklas Medinger, Aurora NaskaS&P 2025
- A Formal Analysis of Apple's iMessage PQ3 ProtocolFelix Linker, Ralf Sasse, David A. BasinUSENIX Security 2025
- On Ends-to-Ends Encryption: Asynchronous Group Messaging with Strong Security GuaranteesKatriel Cohn-Gordon, Cas Cremers, Luke Garratt, Jon Millican et al.CCS 2018 · 140 citations
- 3PaaS: Privacy-Preserving Post-Compromise Security as a ServiceCas Cremers, Abhinav Nakarmi, Aleksi Peltonen, Eyal RonenCCS 2026
