SimpleX vs. Cwtch, who is right?

Two years ago, Sarah, one of the main people behind Cwtch, made this statement:

https://www.reddit.com/r/selfhosted/comments/s2hil6/comment/hsp09it/?utm_source=share&utm_medium=mweb3x&utm_name=mweb3xcss&utm_term=1&utm_content=share_button

Then the founder of SimpleX replied to her, and this is where it ended.

This year, Sarah posted multiple posts about SimpleX on Mastadon:

So clearly one of these people is lying to us, but I don’t have the technical knowledge and capabilities to tell who is right and who is wrong.

It would be great if someone knowledgeable about this topic could step in to clarify these things for us.

It would also be interesting to hear what @epoberezkin has to say in response to these Mastadon posts.

4 Likes

After reading the toots originally I honestly thought they were talking about Session, not SimpleX.

SimpleX does still continue to lack automatic rotation of queues after years which I’d argue does act as an identifier.

Aside from the topic, I’d wish Briar and cwtch style projects were more successful.
Briar is approaching fifteen years old at this point and has had many funding rounds yet still lacks basics like images in group chats.
I don’t blame anyone in particular, I just question why this isn’t a “solved problem” at this point.
Instead we have a ton of fragmentation.
(and yes, I’m just complaining, feel free to disregard)

related:

10 Likes

It’s sad that most people are using centralized messengers, including Signal.

We should all just pick a decentralized solution like Matrix or SimpleX and use it.

3 Likes

I’ve been pushing people towards XMPP for 12+ years now.
I have no doubt XMPP will be alive in another decade, I can’t say the same for these.

5 Likes

I haven’t tried XMPP. What are the selling points?

1 Like

XMPP is a federated chat protocol that has been around for ages. It’s main selling point is that it’s extensible. Despite being decades old, it has evolved to include double ratchet end to end encryption, multiple device support, bridges etc.

I’d argue it solves the same problems Matrix solves, but had been around for more than 10 years before Matrix started. It’s managed by the IETF and has plenty of client and server independent implementations. The server implementations are vastly lighter weight than Matrix’s. And while Matrix has very close ties to the for profit Element, where sometimes is hard to differentiate between the two, no one owns XMPP.

I wish all the funding and effort that have gone to Matrix, had gone to XMPP and Element had implemented their clients and built their business around XMPP.

3 Likes

XMPP is not metadata resistant (SimpleX and Signal both offer better protection of metadata).

Another problem with XMPP is usability. Signal is the easiest for non-tech users to adopt. “Hey download the app called Signal, sign up with your phone number and add me”

Instructing them sign up for XMPP requires them to:

  1. Find a suitable client for each device. There are different clients for various operating systems, some with varying features.
  2. Find which server they want to sign up with, create an account.
  3. Make sure the servers and clients both parties are using have the same features (ie if both clients and servers don’t offer encryption that is a problem).

Signal or SimpleX have a much clearer path to widespread usage than XMPP - which is already 20 years old.

There are other problems with XMPP too:

  • Server admin can see a lot of data plaintext
  • Message attachments might not be encrypted at all
  • Doesn’t use encryption by default (I believe this is a requirement for privacyguides secure messengers).
4 Likes

So clearly one of these people is lying to us, but I don’t have the technical knowledge and capabilities to tell who is right and who is wrong.

Not necessarily either of us is lying. People may simply have different opinions. I think it all boils down to two questions:

  1. whether a given solution delivers on the threat model it advertises. I actually think it would benefit Cwtch to have an explicit threat model, but maybe it’s somewhere there in the docs - please share if you saw something similar to this: simplexmq/protocol/overview-tjr.md at 1ac0068d22381781fca583ea5304c1fa4f107e46 · simplex-chat/simplexmq · GitHub

  2. whether this is a correct threat model for a given set of the end users.

While the first question is usually easier to settle, as long as threat model is clear and explicit, the second one is tricky - and I think this is the root of my disagreement with Cwtch design (I will elaborate on it below).

SimpleX does still continue to lack automatic rotation of queues after years which I’d argue does act as an identifier.

I agree that automatic queue rotation is important, and I see it as a problem related to queue redundancy - we will be solving both next year.

But I disagree that queue acts as a user identifier - it identifies a pair of users, a connection between them, but not the user.

So returning to the question of threat model adequacy, and whether relying on Tor’s threat model is a good idea for instant messaging, particularly in the model when onion network address is also used as a user identifier, as Cwtch does.

Tor anonymity guarantee relies on the assumption that all three nodes that provide the circuit are controlled by different parties - in case operators of these nodes collude and share the data, the user is not anonymous, and operator of these nodes can establish which IP address connects to which IP address - exactly what Tor is aiming to prevent.

Unfortunately, Tor provides no way to establish node operators - on the opposite, it aims to provide operator anonymity. And from the recent history we see that a party that operated a large part of Tor infrastructure was the same party that sells Internet traffic monitoring: Tor Project Moves Away from Infrastructure Ran by Internet Monitoring Firm. While this was a great news, I do think that to increase Tor’s anonymity requires more transparency about Tor node operators, so that the clients can choose nodes controlled by different operators when building the circuit.

Tom Ritter published great slides about Tor - I really recommend reading them all attentively if you use Tor. The most important part for our case is slide “Guards - maths” - it estimates probability of the user being de-anonymised in case the attacker controls 2% of Tor nodes, and the client choses entry and exit node randomly. The paper slightly overestimates this probability putting it at 50% of being de-anonymised after 1250 random circuits. A more precise calculation shows that it requires 1700 random circuits, but it’s beside the point - if you create many enough random Tor circuits, the probability that one of them won’t provide anonymity and would allow linking IP addresses becomes really high. To reduce it requires choosing entry node non randomly, but it is not something most users do, and it has its own downsides.

This probability is acceptable if you simply browse the web - first, you don’t have a fixed Tor identity in this case, and you also connect to different web servers, so except GPA attacks that Tor does not protect from, occasional de-anonymisation of the web traffic is acceptable and Tor overall provides great anonymity probability, even in the presence of the attackers that control a small share of the nodes.

But if you use Tor hidden service as your client address for instant messaging, then sooner or later you will connect to your contact via a compromised circuit - you just need to use it for a long enough time. From that it logically follows that an attacker who controls a small share of Tor nodes and observes Cwtch traffic over Tor nodes that it controls for a long enough time will be able to build connection graph of many Cwtch users, and I don’t see anything in Cwtch’s or Tor’s design that would prevent it - happy to be corrected about it.

So I think that using Tor addresses as persistent user addresses for instant messaging network is a bad idea, and it cannot provide an adequate anonymity of the network users. From this does not follow that using Tor is a bad idea - it is only a bad idea to use Tor addresses for instant messaging, and I am really sorry to say that, but it does make Cwtch design bad for anonymity of the contacts, if all my logic is correct…

That’s the reason I believe instant messaging requires an alternative model for onion routing, independent from Tor that was built for web browsing, the model where the network operators have no anonymity - on the opposite, they are identifiable to the users’ clients, so that they can choose different operators for message routing and to reduce the risks of the operators collusion.

Also, unlike Cwtch, SimpleX does not assign persistent identifiers to the users themselves, and instead assigns them to connections between the users - so all network operators can see on the protocol level is connection graph edges (messaging queues) and not vertices (users). NIST calls it “anonymous pairwise identifiers” and recommends it as a privacy-by-design principle.

There is a picture on the site that explains that: SimpleX Chat: private and secure messenger without any user IDs (not even random)

At the same time, there is nothing wrong in using Tor to connect to SimpleX network - many people did that before we added private message routing (a SimpleX network onion routing) and many will continue doing it even after that - it provides additional layer of anonymity protection, without creating a fixed user identifier in Tor network. So for some threat models SimpleX via Tor would be a better fit than SimpleX without it - we are not trying to replace Tor in any way.

Hope it all makes sense, happy to answer any questions.

16 Likes

Thanks for the explanation, good to know that moving my relatives to SimpleX was a good idea.

5 Likes

Simplex does not have good linux app having a good native app can increase the userbase

2 Likes

… and its still not using UnifiedPush, causing huge battery drains caused by that decision.

2 Likes

The battery consumption is really dramatic. However, it is worth mentioning that the client released for android devices in the notification about enabling constant updates refers to the fact that the push option is less secure, offering its own implementation of constant updates. Is there a way out of this situation besides push so that the charge consumption is not so aggressive? To this of course is also added the work of VPN for most users who chose SimpleX.

please support simplex desktop on wayland

3 Likes

To extend on my comment above.

The assessment in the linked presentation is somewhat outdated when it comes to hidden services. Since then Tor added mitigations for hidden service discovery: Announcing the Vanguards Add-On for Onion Services | The Tor Project

This post shows that prior to these mitigations the situation was worse than my analysis, and it is still not ideal:

the addition of second layer guard nodes means that the adversary goes from being able to discover your guard in minutes by running just one middle node, to requiring them to sustain the attack for weeks or even months, even if they run 5% of the network.

So, if a potential attacker that can control 5% of Tor network is seen as a viable threat, having a long-term fixed address for an anonymous hidden service can lead to discovery, that could be mitigated by the regular rotation.

I think Cwtch should share this analysis with the users, and recommend not to use the same address for a long time for the most sensitive communications.

6 Likes

@epoberezkin, I appreciate the thorough response and like to ask a few follow-up questions to clarify some points:

  1. Has this conversation been continued with Sarah in another online forum or platform that you would be willing to share? If not, I’m curious to know how the discussion unfolded between you two. If not, we could invite her to join this thread to continue the discussion and provide further clarification.

  2. I’d like to revisit Sarah’s comment on the Mastodon thread, where she mentions that having no identities is impossible in any system with distinct users. She explains that “because (in any system with distinct users) it is simply impossible, there is always an “identity” - typically a long term cryptographic key that it is necessary to know, authenticate and verify in order to guarantee other desirable properties.” She also states that projects claiming to have “no identities” instead simply don’t perform any kind of key verification and treats this has an out-of-scope problem (hiding a myriad of issues). The specific comment is linked here: Mastodon

Do you concur with Sarah’s assessment, or does SimpleX operate under a different understanding of “no identity,” perhaps implying a functional lack of identity? I’ve been trying to reconcile these two statements, and I’d appreciate your insight.

I’d also like to address a concern raised in the original post: “Beware of ‘metadata resistant’ privacy apps that advertise Real-time Audio / Video” - I believe this is the only other point that relates to SimpleX . How does SimpleX handle metadata in the context of real-time audio and video features? I’d appreciate any clarification that can be provided on this point.

2 Likes

So, practically speaking the anon set of SimpleX is 2. You are 1 out of 2 possible options and that is not an identifier? Alright…

1 Like

Don’t spread FUD.

1 Like

Well these are facts, but lets hide them i guess.

Anyway TL:DR based on the political view of both projects if i had to choose to donate in one of them, Cwtch would be my choice easily.

I’m not sure why anyone would not consider a VC-funded project like SimpleX a non-starter, especially if worried about privacy and service reliability.

Their post bending over backwards to justify it, honestly, is entirely meaningless, and adds to the dodginess of it all. This is as big a red flag as one can have, or it should be for Privacy Guides.

Personally I wouldn’t touch SimpleX or anyone VC-funded even if claiming to be able to cure cancer with a ten foot pole, also maybe because I am old and remember the time when we paid for software with money, and there was some pretty fantastic software with quite responsive developers, even if they sold closed source programs. We used to call today’s “free” software spyware and malware. It’s a whole new world.

Being open source is not enough to put SimpleX on a podium. Being free with its current VC backing, again, should be a warning. A huge red sign saying “haven’t you seen this before? How did it end?”

Any technical advantages it may have (if it does) are meaningless given this.

Anyway, this will probably get flagged and hidden, but I’d like to think Privacy Guides is striving for higher standards.

3 Likes

Ok going to repost #18 that got flagged with editing out the personalized comments about the developer’s views.

" I just want to point out the political differences between these two projects that might be a reason there was a heat between them.

Cwtch is being funded by OpenPrivacy research society a known leftist society that also endorsing lgbtq communities while having a fully open and transparent plan for the project.

SimpleX on the other hand is the better app currently, on usability terms, but things are looking shady with articles like these:
Neo-Nazis Are Fleeing Telegram for Encrypted App SimpleX Chat
There are also some concerns about the unclear future monetization of the project."