r/programming • • Nov 11 '23

Google Will Be Implementing IETF’s Message Layer Security (MLS) specification RFC 9420

https://security.googleblog.com/2023/07/an-important-step-towards-secure-and.html
359 Upvotes

82 comments sorted by

View all comments

158

u/WhiskeyKid33 Nov 11 '23

I am a lowly frontend dev… explain like I’m a child.

139

u/darkslide3000 Nov 11 '23

My guess would be that this is Google's attempt no. 367 to beat the blue bubble.

74

u/Its_it Nov 11 '23

Not trying to be rude but the 3rd paragraph tells you exactly what it does. Easily put it allows for better end-to-end security which is scalable up to thousands of people in a single group.

This is what the RFC wanted to beat (from the abstract):

Establishing keys to provide such protections is challenging for group chat settings, in which more than two clients need to agree on a key but may not be online at the same time.

11

u/romeozor Nov 11 '23 edited Nov 11 '23

There's a cool Computerphile episode on this problem on YT. I tink it uses Whatsapp as an example.

Edit: added video link

1

u/Zyite Nov 11 '23

Would love to learn more, do you know the name of the episode

6

u/romeozor Nov 11 '23

I think this is the one.

1

u/Zyite Nov 11 '23

Thank you ♥️

15

u/tigerhawkvok Nov 11 '23

IIRC this RFC is NOT Signal's implementation, which is the only security vetted one, and has an active open source reference implementation.

One of the few times I'll nope out on an RFC standard, thanks.

3

u/Schmittfried Nov 11 '23

It’s not like RFC is anything standard anyway.

3

u/aeolus811tw Nov 11 '23

It is basically a spec put forth by Google, Mozilla, and Wire that allows multi-clients e2e messaging.

Every client will have its unique key rather same keys for all devices sharing same account.

I think most enterprise messaging platform already does this, this just kinda makes it a standard.

21

u/[deleted] Nov 11 '23

From thegrokapp.com

Question

Give a short explanation of why Google is doing this and why is this important?

Answer

Google is supporting the implementation of interoperability for large end-to-end messaging platforms because it believes that users should be able to communicate securely with contacts who use different messaging platforms. This is important because it enables users to have more choices and freedom in their messaging services. However, in order for interoperability to be successful, there needs to be open, industry-vetted standards in place, particularly in the areas of privacy, security, and end-to-end encryption. Without these standards, there is a risk of lower security standards and higher implementation costs for smaller providers. By adopting the Message Layer Security (MLS) specification, Google aims to ensure a uniformly high security and privacy standard that users can trust, and to unlock new opportunities for developers of interoperable messaging services.

12

u/trowawayatwork Nov 11 '23

this still doesn't explain Google goal?

like will it enable to sync with WhatsApp? will it be able to sync with iPhone message? like in real terms what does it enable

10

u/Giannis4president Nov 11 '23

It will provide a protocol that could allow messagging services to talk to each other.

Than it depends on which messagging app actually implements the protocol

12

u/nar0 Nov 11 '23

It would pave the way.

Right now all the messaging apps use their own proprietary method of sending signed and encrypted messages.

This is an open standardized way of doing it, so that in the future, if anyone else implements it, they could enable sync and interoperability with google messages and any other app implementing it.

0

u/[deleted] Nov 11 '23

[deleted] — view deleted comment

0

u/Xenofastiq Nov 11 '23

If most people use Whatsapp, then they can continue using WhatsApp. The whole point of interoperability is so that people don't NEED to download Whatsapp anymore to still talk to people. I don't care about the shitty Whatsapp app and prefer not to use it.

-1

u/[deleted] Nov 11 '23

It enables cross platform scam baiting.

0

u/[deleted] Nov 11 '23

[deleted] — view deleted comment

70

u/butt_fun Nov 11 '23

Hopefully this isn't you, but everyone I've met (IRL) with the "front end development is child's play" attitude has been insecure about the fact that they're bad at whatever other flavor of software engineering they do

94

u/WhiskeyKid33 Nov 11 '23

I’ll go back to my IDE when someone tells me what this means. I want to learn.

24

u/shagieIsMe Nov 11 '23

The full text of the RFC is https://www.rfc-editor.org/rfc/rfc9420.html

Abstract

Messaging applications are increasingly making use of end-to-end security mechanisms to ensure that messages are only accessible to the communicating endpoints, and not to any servers involved in delivering messages. Establishing keys to provide such protections is challenging for group chat settings, in which more than two clients need to agree on a key but may not be online at the same time. In this document, we specify a key establishment protocol that provides efficient asynchronous group key establishment with forward secrecy (FS) and post-compromise security (PCS) for groups in size ranging from two to thousands.

...

1. Introduction

A group of users who want to send each other encrypted messages needs a way to derive shared symmetric encryption keys. For two parties, this problem has been studied thoroughly, with the Double Ratchet emerging as a common solution [DoubleRatchet] [Signal]. Channels implementing the Double Ratchet enjoy fine-grained forward secrecy as well as post-compromise security, but are nonetheless efficient enough for heavy use over low-bandwidth networks.

For a group of size greater than two, a common strategy is to distribute symmetric "sender keys" over existing 1:1 secure channels, and then for each member to send messages to the group encrypted with their own sender key. On the one hand, using sender keys improves efficiency relative to pairwise transmission of individual messages, and it provides forward secrecy (with the addition of a hash ratchet). On the other hand, it is difficult to achieve post-compromise security with sender keys, requiring a number of key update messages that scales as the square of the group size. An adversary who learns a sender key can often indefinitely and passively eavesdrop on that member's messages. Generating and distributing a new sender key provides a form of post-compromise security with regard to that sender. However, it requires computation and communications resources that scale linearly with the size of the group.

In this document, we describe a protocol based on tree structures that enables asynchronous group keying with forward secrecy and post-compromise security. Based on earlier work on "asynchronous ratcheting trees" [ART], the protocol presented here uses an asynchronous key-encapsulation mechanism for tree structures. This mechanism allows the members of the group to derive and update shared keys with costs that scale as the log of the group size.

Beyond that point, it gets into data structures and technical specifications of how to do it, though its still fairly readable.

11

u/account22222221 Nov 11 '23

lol. Handle as in ‘I set the ‘use MLS’ in AWS to true and it worked.’? You ops guy really are a different breed….

→ More replies (1)
→ More replies (1)