Messaging Layer Security: A Few Thoughts posted January 2020
I've been following the Messaging Layer Security (MLS) standardization a bit. I really appreciate what the people are doing there, and what they are trying to solve. I think group messaging is currently a huge mess, as every application I have seen/audited seemed to invent a new way to implement group chat. A common standard and guidelines would greatly help.
MLS' goal is to provide a solution to end-to-end encryption for group chats. A solution that scales.
If you don't know how the MLS protocol works, I advise you to read Michael Rosenberg's blog post or to watch the Real World Crypto talk on the subject (might not be available at the moment).
Thinking about the standard, I have two questions:
- Does a group chat loses any notion of privacy/confidentiality after it gets too large? For example, if you are in a Hong Kong group trying to organize a protest and there are more than 1,000 people in the group, what are the odds that one of them is a cop?
- Would a group chat protocol targeting groups with small numbers of participant (let's say 50 at most) be able to provide better security insurances efficiently?
For example, here are two security properties (taken from SoK: Secure Messaging) that MLS does not provide:
Speaker Consistency: All participants agree on the sequence of messages sent by each participant.
This means that if Alice (who is part of a group chat with Bob and Eve) colludes with the server, she can send "I like cats" to Bob and "I like dogs" to Eve.
Global Transcript: All participants see all messages in the same order. Note that this implies speaker consistency
This means that if Alice sends the following messages:
- you must decide
- your path
a server could re-order these messages so that Bob would see them in the same order, but Eve would see:
- your path
- you must decide
I have the following open questions:
- Are these attacks important to protect against?
- Is there an efficient protocol to prevent these attacks for groups of reasonable size?
- If we cannot prevent them, can we detect them and warm the users?
- If we are willing to change the protocol when going from 2 participants to 3 participants, would be willing to change the protocol when going from N to N+1 participants (where N is the number of participants threshold where confidentiality/privacy fades away)?
Comments
Tom
I think your example of Speaker Consistency is incorrect. It talks about ordering of messages but you're sending entirely different messages...
david
Is there another property that would more closely fit my example?
In "agree on the sequence of messages" what I understand is that participants agree not just ordering, but on the messages content themselves as well.
leave a comment...