218 points · by tpush · 3y ago · 113 comments
> 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 and post-compromise security for groups in size ranging from two to thousands.
There is now a follow-up IETF project to use MLS for inter-messenger interoperability, with Matrix as an early participant, https://news.ycombinator.com/item?id=33420112
Review of 2020 draft protocol, https://liu.diva-portal.org/smash/get/diva2:1388449/FULLTEXT...
> Work is now ongoing to introduce the Messaging Layer Security (MLS) protocol as an efficient standard with high security guarantees for messaging in big groups. This thesis examines whether current MLS implementations live up to the promised performance properties and compares them to the popular Signal protocol. In general the performance results of MLS are promising and in line with expectations, providing improved performance compared to the Signal protocol as group sizes increase.
https://mailarchive.ietf.org/arch/msg/mls/ZJ4e78obXSdYWnxmsN...
The word you’re looking for is “repudiability.”
Although one might say that lacking repudiability could be enough for a messaging system to lack reputability ;)
If China (e.g. WeChat) is a predictor of future messaging systems, there may be convergence between messaging and payments. Musk has publicly suggested that Twitter follow in WeChat's footsteps as an "Everything App". If payments and messaging converge, and governments adopt CBDCs for digital legal tender, then we may be looking down the barrel of state-issued digital IDs for online and offline activity.
Linux Foundation is promoting blockchain for both software signing and globally interoperable travel/health credentials. Big tech companies each have their own island of semi-verified identities, depending on their proximity to financial services. It's not clear which groups are willing or able to effectively lobby for pseudonymous digital identity.
It's worth highlighting (as a comment in the linked discussion does) that the EU's newly-passed Digital Markets Act requires interoperability between the messaging apps of large "gatekeeper" platforms.
If Twitter does end up supporting E2EE messaging, it may soon be forced to implement MLS, and if Facebook and Google are really supportive of MLS then soon(TM) most people online will be able to communicate via that technology.
You have to put trust in the app (and the company that owns that app), though.
In twitter, I type a message in plain text. The twitter app encrypts it and sends it to the recipient. I am trusting Twitter to not encrypt it twice, once with my key and once with there's and capturing their copy in flight.
With current trends at Twitter, I wouldn't trust them an inch.
[1] https://github.com/signalapp/libsignal/blob/main/LICENSE
So they are able to offer Twitter a non-APGL license. Usually for a sizeable fee.
You can fork such dual licensed project, add your own contributions and then Signal cannot use your code in anything they license to third-parties under non-AGPL. The fork becomes AGPL-only.
Example of where this has happened: MySQL was forked to MariaDB, so developments to MariaDB cannot be used by Oracle in their proprietary licensing of MySQL.
You're giving the company (in this case Signal) an open-ended license for your contributions whilst they don't return the favour. And so whilst they can offer a proprietary version e.g. Signal Pro with a friendlier license e.g. BSD you can't.
And what kind of underpins all of this is that many companies especially in the enterprise will not touch anything that is GPL or AGPL.
> "agreement to license Signal protocol was reached"
https://mobile.twitter.com/bhcarpenter/status/15966919162503...
e2e means server never does any encryption or decryption so i don't think they'll have any signal code running on their server.
They will however be required to open source their application code.
Edit : and i think open sourcing twitter app would be a stunning move, that elon is totally capable of.
No, not at all. If a server is AGPL-licensed, clients may have whatever license they want. If a client is AGPL-licensed, servers may have whatever license they want. What the AGPL does is provide that if code under the AGPL is used to provide network services, then clients of those servers are entitled to the server source code. You may read the terms here: https://www.gnu.org/licenses/agpl-3.0.en.html
There is no copyright mechanism by which the AGPL could apply to clients of an AGPL server.
What i’m saying about server code is the logic of agpl. GPL is about providing the means for users to obtain source code of the binary they’re running. There was a gap with api, where a given library feature could be exposed through network services and since no binary were downloaded then the code wouldn’t required to be open sourced. AGPL fixes that.
But we both agree that client code and server code are independent relative to their licensing terms.
The cryptography itself didn't come out unscathed, but the basic nuts and bolts semantics of the system itself had devastating vulnerabilities.
The Signal Protocol somewhat excessively provides forward secrecy for each and every message sent. That is sort of pointless while the messages still exist on the screen. Most people would be happy getting rid of their old messages every week or so. You could totally do that in an instant messaging system that used OpenPGP formatted messages. The reason that no one bothers is because few people want to dump their old encrypted emails. No one wants to dump their old encrypted files. Instead they take advantage of the greater security inherent in an offline encryption system and avoid getting their keys leaked in the first place.
If you really wanted to do message by message forward secrecy using a hash ratchet using OpenPGP formatted messages you could do that too. There is nothing magical about the Signal Protocol for stuff like that...
Relevant discussion:
In other words, the point being that a man-in-the-middle attacker cannot decrypt past conversations that he recorded even if in the future he is able to determine the key?
It's kind of obvious that you cannot prevent the other party from saving the messages, but from what I understand I don't think that's what forward secrecy is even trying to do (disclaimer: I'm not a cryptographer).
Or if the message's recipient took a screenshot.
For offline file encryption ( pgp isn’t intended for messaging).
I guess you mean "leak" as in "being copied", which relies on how good the hardware actually is at preventing this, but what if I just lose my hardware key, isn't that the same?
> When you want to send a message to someone, you ask the server for one of their one-time prekeys and use that. Decrypting this message requires using the private half of the one-time prekey, and the recipient deletes it afterwards. This means that an attacker who intercepts a bunch of encrypted messages over the network and then later somehow obtains the long-term keys still won't be able to decrypt the messages, since they depended on keys that no longer exist.
> Since these one-time prekeys are only supposed to be used once (it's in the name!) there's a risk that they can all be consumed before they're replenished. The spec regarding pre-keys says that servers should consider rate-limiting this, but the protocol also supports falling back to just not using one-time prekeys if they're exhausted (you lose the forward secrecy benefits, but it's still end-to-end encrypted).
> This implementation not only implemented no rate-limiting, making it easy to exhaust the one-time prekeys, it then also failed to fall back to running without them. Another easy way to force DoS.
You just described a security/convenience tradeoff in the use of prekeys. OK. Then, the app's choice to go with security over convenience is a security problem, because you're not allowed to send messages without forward secrecy. For greater security, the app should have allowed messages at a lower level of security.
If you want to make the case that someone did the wrong thing, do it in a way where they wouldn't also have been wrong if they did the opposite of what you're complaining about.
Want to make the argument that libsignal can be misused? First, go through all of your examples and make sure they actually show misuse.