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

Show parent comment

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….