[Paper Review] Analysis and Improvements of the Sender Keys Protocol for Group Messaging
This paper presents the first formal security analysis of the Sender Keys protocol used in WhatsApp and Signal for group messaging. It introduces a new cryptographic primitive, Group Messenger (GM), and a game-based security model to evaluate forward and post-compromise security, identifying vulnerabilities related to randomness manipulation and suboptimal forward security in message authentication, with proposed fixes including ratcheting signature keys and state-dependent key derivation.
Messaging between two parties and in the group setting has enjoyed widespread attention both in practice, and, more recently, from the cryptographic community. One of the main challenges in the area is constructing secure (end-to-end encrypted) and efficient messaging protocols for group conversations. The popular messaging applications WhatsApp and Signal utilise a protocol in which, instead of sharing a single group key, members have individual extit{sender keys}, which are shared with all other group members. The Sender Keys protocol is claimed to offer forward security guarantees. However, despite its broad adoption in practice, it has never been studied formally in the cryptographic literature. In this paper we present the first analysis of the Sender Keys protocol along with some prospective improvements. To this end, we introduce a new cryptographic primitive, develop a game-based security model, present a security analysis in the passive and active settings, and propose several improvements to the protocol.
Motivation & Objective
- To formally analyze the Sender Keys protocol, which is widely used in WhatsApp and Signal but never previously studied in the cryptographic literature.
- To identify security weaknesses in the protocol, particularly regarding forward security and resilience to randomness manipulation attacks.
- To propose a new cryptographic primitive, Group Messenger (GM), tailored for non-group-key-agreement-based protocols like Sender Keys.
- To develop a game-based security model that captures forward-secure group messaging under passive and active adversaries.
- To suggest concrete protocol improvements, including ratcheting signature keys and state-dependent key derivation, to enhance security.
Proposed method
- Introduce a new cryptographic primitive, Group Messenger (GM), to model protocols that do not rely on group key agreement.
- Formalize the Sender Keys protocol based on reverse-engineering of Signal’s source code and WhatsApp’s security white paper.
- Define a security game with oracles and a cleanness predicate to model forward security in group messaging.
- Analyze the protocol under passive and active adversarial models, considering both honest randomness and randomness manipulation.
- Propose improvements such as ratcheting the sender’s signature key and hashing new keys with the current state to resist randomness-based attacks.
- Evaluate the impact of key updates and group operations on post-compromise security, noting limitations in achieving full PCS.
Experimental results
Research questions
- RQ1Can the Sender Keys protocol provide strong forward security in the presence of active adversaries?
- RQ2How does randomness manipulation by an adversary affect the security guarantees of Sender Keys?
- RQ3To what extent does using multiple sender keys improve security compared to a single group key?
- RQ4Can post-compromise security be meaningfully achieved in the Sender Keys model, given its design?
- RQ5What formal security model best captures the threat model of group messaging with individual sender keys?
Key findings
- The Sender Keys protocol provides only suboptimal forward security for message authentication, as the chain key ratcheting does not protect the signature key.
- The protocol is vulnerable to randomness manipulation attacks, where an adversary controlling randomness can prevent recovery from key exposure, undermining post-compromise security.
- Ratcheting the sender’s signature key improves forward security and mitigates the risk of long-term exposure.
- Hashing new keys with the current state (as in the NAXOS trick) provides resistance to randomness-based attacks with minimal overhead.
- The protocol does not achieve meaningful post-compromise security because a single key update by one member does not protect messages from other members.
- The use of multiple sender keys offers no significant security advantage over a single group key if randomness is honest, due to the lack of state isolation in key derivation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.