← Back to section · Quantum-Safe Industry
The Post-Quantum Upgrade Path for Instant Messaging: From the First Handshake to Continuously Ratcheting Keys
Instant messaging is the communications category where post-quantum migration has landed fastest. This article traces the three stages of its upgrade path: hybridising the initial key agreement, making in-session key ratcheting post-quantum, and bringing group protocols along — plus the engineering cost of each step.
Among all secure communications categories, instant messaging has moved fastest on post-quantum upgrades and documented the process most openly: over the past few years, the leading open protocol and the major apps have walked the whole path. It was not a single leap but three distinct stages, each solving a different problem at a different price. For teams planning their own product migration, this ready-made path is the most instructive reference available.
Step one: hybridising the first handshake
An end-to-end encrypted session begins with two devices that have never communicated agreeing on keys while one of them is offline — made possible by prekeys stored on a server. The traditional design relies entirely on elliptic-curve key exchange, and its risk is “harvest now, decrypt later”: ciphertext recorded today can be decrypted retrospectively once a capable quantum computer exists. The first upgrade therefore lands on the initial agreement: a post-quantum key encapsulation mechanism runs in parallel with the classical exchange, and both shared secrets jointly derive the session keys.
The value of this hybrid structure is its security floor: an attacker must break both the classical and the post-quantum algorithm to recover the session, and if either one holds, the communication is safe. That is what let vendors deploy at scale early in the standardisation of the new algorithms, without staking everything on a single one of them. The leading open messaging protocol completed this step around 2023, and Apple’s in-house messaging protocol followed with the same approach.
Step two: making the session ratchet post-quantum
Protecting only the first handshake is not enough. In a long session, keys roll forward through a ratchet — every message derives fresh keys — providing forward secrecy and self-healing after a compromise. But if every ratchet step still uses only classical key exchange, then after a single device compromise, subsequent key updates can be picked off one by one by a quantum attacker, and the post-quantum protection of the initial handshake gradually dilutes away over a long session.
The second upgrade injects post-quantum encapsulation into the ratchet periodically: every so many messages, a fresh hybrid key agreement is performed and the new post-quantum shared secret is mixed into the key chain. Apple’s protocol included periodic post-quantum rekeying from its initial design; the leading open protocol moved to deployment of a triple-ratchet design in 2025, extending quantum resistance from “only at the start” to “rolling throughout”. The engineering difficulty is throttling: post-quantum encapsulation is far more expensive in computation and size than elliptic-curve operations, so the injection frequency must balance security gain against phone battery and data usage.
Step three: the scaling problem of group protocols
Once one-to-one sessions are sorted, groups are the real hard problem. In a group of several hundred members with frequent joins and departures, key distribution must ensure new members cannot read history and departed members cannot read new messages, without forcing the whole group to renegotiate on every change. Tree-based key structures in the Messaging Layer Security (MLS) architecture are the standardised direction — the international standard has been published for several years — but putting post-quantum algorithms into group protocols amplifies the size problem by group scale: every member’s key material grows, and every layer of the tree passes larger data.
Common industry practice is layered progress: use hybrid key exchange when groups are established and membership changes, while day-to-day messages continue on the symmetric ratchet — the actual content encryption of group messages is symmetric anyway, and the quantum threat falls mainly on key distribution. At the same time, vendors apply downgrade strategies to very large groups, such as capping the size of end-to-end encrypted groups or using different key structures for large groups. There is no settled answer yet, which makes this the part of each vendor’s protocol documentation most worth reading closely.
Downgrade protection: an upgrade must not be silently reversible
Hybrid protocols have an easily overlooked attack surface: if negotiation permits falling back to classical-only mode, a man-in-the-middle can fake “the peer does not support the new protocol” and strip away the post-quantum protection, voiding the whole upgrade. Protocol designs therefore build downgrade protection into the handshake itself — negotiation outcomes are bound by signatures so either side can later detect tampered parameters, and new clients take an explicit stance toward old peers: either hybrid-only, or an honest in-interface label of the current session’s protection level.
Alongside this sits verifiability: if the app is closed-source, why should users believe the claimed upgrade is actually running? The industry’s answer is composite: open-source the core protocol, publish protocol specifications and security audit reports regularly, and provide safety numbers or key fingerprints in the client for out-of-band verification. None of these gives a mathematical guarantee, but together they turn “trust the vendor’s word” into “trust a public process that many parties can inspect” — a checklist worth verifying item by item when selecting a product.
Hidden costs and the principle of invisible upgrades
Post-quantum keys and ciphertexts are roughly an order of magnitude larger than their elliptic-curve counterparts, which creates a string of hidden costs: prekey bundles grow, raising server storage and distribution load; handshake messages fragment more easily on poor networks; older devices take longer to complete encapsulation. Vendors absorb these by compressing key material, prefetching prekey replenishment in the background instead of on demand, and validating failure rates through gradual rollouts.
For users, the industry consensus on this upgrade round is invisibility: no number changes, no re-adding contacts, no security warning pop-ups — the upgrade completes silently with app updates, and at most the security settings page gains a protocol version note. The restraint is deliberate: a communications product’s network effect cannot withstand migration friction, and any upgrade scheme that asks users to act manually ends with coverage too low to matter. The harvest-now-decrypt-later risk window is being closed day by day by exactly this kind of invisible upgrade.
Tags: instant messagingend-to-end encryptionkey agreementhybrid encryption