Skip to content

Messaging Layer Security: Towards a New Era of Secure Group Messaging

Analysts investigate attack surfaces and defenses concerning Messaging Layer Security: Towards a New Era of Secure Group Messaging.

Summary

Overview: Raphael Robert, Head of Security at Wire and co-author alongside Benjamin Beurdouche, introduces Messaging Layer Security (MLS), an IETF protocol designed to standardize secure, scalable end-to-end encrypted group messaging. The presentation reviews the evolution of end-to-end encryption from early email cryptography to modern smartphone messaging ratchets, analyzing why existing pairwise protocols cannot efficiently scale to large group contexts. Robert details how the MLS working group combines cryptographic research, industry collaboration, and formal verification to achieve group communication with low computational overhead.

Key Topics: - The architectural progression of end-to-end encryption: PGP, Off-the-Record (OTR), and the Double Ratchet - Core cryptographic guarantees: confidentiality, authenticity, forward secrecy, and post-compromise security - The scalability ceiling of pairwise protocols and client-side fanout in multi-device and enterprise group chats - The Messaging Layer Security (MLS) protocol architecture: native group key agreement and TreeKEM ratchet trees

Technical Details: The talk traces the history of end-to-end cryptographic protocols, beginning in the 1990s with OpenPGP and S/MIME. While PGP established basic confidentiality and authenticity, it relied on static public keys and lacked temporal protections. In the early 2000s, the Off-the-Record (OTR) protocol introduced forward secrecy (ensuring past messages remain secure if current long-term keys are compromised) and cryptographic deniability for synchronous online chat sessions. Subsequently, the Double Ratchet algorithm (powering Signal) adapted these principles to asynchronous mobile environments, introducing post-compromise security (also known as future secrecy), which allows compromised sessions to heal and restore confidentiality after an adversary loses access.

Despite these advancements, all existing production protocols were architected strictly as pairwise (one-to-one) mechanisms. To simulate group messaging on top of pairwise protocols, modern applications rely on 'client fanout.' When a user sends a message or performs a key update in a group of size N, the sender's client must individually encrypt the payload N-1 times over separate pairwise channels. This creates an O(N) scaling complexity for bandwidth and computation. In enterprise environments featuring thousands of participants across multi-device configurations, client fanout creates massive overhead, battery drain, and network latency. Furthermore, because group membership state (adding, removing, and updating members) is managed via proprietary, unstandardized application-layer logic, it remains largely unverified by academic cryptographers.

To resolve this architectural trade-off between modern security properties and group scalability, the IETF formed the MLS working group, uniting vendors including Wire, Cisco, Mozilla, and Facebook alongside academic institutions. MLS replaces client fanout with a native group key agreement protocol based on TreeKEM. TreeKEM organizes group participants as leaf nodes within a balanced binary ratchet tree where internal parent nodes represent shared intermediate key pairs. By updating keys along the path from a member's leaf to the tree root, group membership operations—such as adding a member, evicting a participant, or rotating keys—scale logarithmically in O(log N) operations rather than linear O(N), all while upholding strict forward secrecy and post-compromise security.

Key Takeaways: Pairwise cryptographic protocols like Double Ratchet exhibit severe scalability bottlenecks when applied to large group chats due to linear O(N) client fanout. Secure messaging architectures must transition to standardized group key agreement protocols like MLS that integrate group management directly into the cryptographic layer. Adopting TreeKEM-based ratchet trees allows enterprise collaboration and consumer messaging platforms to scale to large groups with logarithmic efficiency while maintaining forward secrecy and post-compromise security.

(AI summary — Gemini Flash)

Related talks