Live data from Hacker News

Is Telegram really an encrypted messaging app?

blog.cryptographyengineering.com

571–580 of 609 posts

Re: Is Telegram really an encrypted messaging app?

#571
post #568

Earlier quoted context omitted.

That you don't like the design is well known. But this is not the reason to lie. You understand the design quite well, from our past conversations, you simply don't like the fact that we don't recognise user IP address as a permanent user identifier on the protocol level. It is indeed a transport identifier, not a protocol-level identifier that all other messaging networks have for the users (in addition to transport…

>you simply don't like the fact that we don't recognise user IP address as a permanent user identifier on the protocol level So how exactly are all those DMCA letters finding themselves to the correct household if IP address doesn't deanonymize you? >Message routing protocol has anonymous pairwise identifiers for the connections between users I'm so tired of you avoiding the obvious question. What does this identifie…

As per

https://github.com/simplex-chat/simplexmq/blob/stable/protoc...

"""

SMP is initialized with an in-person or out-of-band introduction message, where Alice provides Bob with details of a server

* IP address / host name [alice-land.net or similar]

* port

* and hash of the long-lived offline certificate*

* a queue ID

* Alice's E2EE public key.

"""

The queue ID is of interest here. The text also says

"""

When setting up a queue, the server will create separate sender and recipient queue IDs (provided to Alice during set-up and Bob during initial connection)."

"""

---

So the queue is basically a pair of port numbers generated by the server. The server gives Alice queue number pair (a11cea11ce, b0bb0bb0b0b).

Alice's introduction message tells Bob that if Bob puts messages to server's port number a11cea11ce, they are sent to her. And upon first connection to Alice, Bob receives from server queue number b0bb0bb0b0b, and he knows, that when he puts messages to that port, they go to Alice. Since these are used to deliver packets, they can not be used by other SimpleX users. So Simplex has created the functional equivalent of emails user46453451@simplex.com and user2646453@simplex.com for the two users, and the users can use these emails to converse.

The server knows that port a11cea11ce is read by 414.414.414.414 (Alice) and if it's suddenly 414.414.414.224, or tor.tor.tor.tor exit node, it's still the same user, and it now knows that user is trying to become anonymous. If OTOH Alice registered via Tor, if she ever fails at connecting to port a11cea11ce without Tor, she must assume her queue number is permanently deanonymized.

But there is queue rotation. https://github.com/simplex-chat/simplexmq/blob/56986f82c89b0...?

The problem is, if Alice requests a new queue number, she is still connected via the same session and user that was already associated with the deanonymized IP-addrees. The service can just add the new queue-pair as the newest queues associated with Alice's account. Alice can not re-anonymize her account again, the server always knows it's the same user, unless Alice creates a completely new account from behind Tor and starts using new queues. This is why SimpleX should force connections through Tor, but it leaves configuration of proxies to the user. Yet it claims it's supposedly more private than the competition, like Cwtch.

"But the server doesn't know who the people behind the IP-addresses are"

Neither does Signal know who the people behind phone numbers or IP-addresses. But that's not the problem.

The server can accumulate data, and Alice's friendly fascist government can come around asking for these logs. Suppose Bob was apprehended and his device was confiscated and the local FSB wants to know who is behind queue ID a11cea11ce. A malicious server will have accumulated Alice's accidental connection to the service without Tor, so the queue ID a11cea11ce can be correlated with Alice's IP address, and the ISP can tell which subscriber was using the IP-address at the time. Again, defaulting to Tor in clients would have prevented the temptation to aggregate user data on server-side.

So reading your documentation, it's not exactly unclear why my reasoning was wrong. Please do tell me how a malicious server can't correlate IP-addresses with queues when your threat model states https://github.com/simplex-chat/simplexmq/blob/stable/protoc...

"""

The server can

* perform the correlation of the queue used to receive messages (matching multiple queues to a single user) via either a re-used transport connection, user's IP Address, or connection timing regularities.

* learn a recipient's IP address, track them through other IP addresses they use to access the same queue, and infer information (e.g. employer) based on the IP addresses, as long as Tor is not used.

"""

Your service doesn't seem to be adding anything ground breaking to the mix with queues. It's not using usernames, or registered accounts. Or phone numbers. It's generating queue numbers that are just random identifiers, that can be used to cross-correlate how may ciphertexts each user sent to one another, and it can bind all IP-addresses to those users. It can't be the case both the IP-address and the queue number changes at the same time, yet the service knows to which user it should deliver an incoming ciphertext.

The bottom line is this. The server that always knows where to relay ciphertexts, can always eventually deanonymize the user, unless the system defaults to Tor.

What is being said on the front page:

>Other apps have user IDs: Signal, Matrix, Session, Briar, Jami, Cwtch, etc. SimpleX does not, not even random numbers.

doesn't match the fine-print under threat model.

So explain to me, why isn't a list of tuples a malicious server secretly builds over time

[

(queue-number1, Tor-IP-address1),

(queue-number1, Tor-IP-address2),

(queue-number2, Tor-IP-address2),

(queue-number3, Tor-IP-address2),

(queue-number3, Deanonymized IPv4 address),

(queue-number3, Tor-IP-address3),

(queue-number4, Tor-IP-address3),

(queue-number4, Tor-IP-address3),

(queue-number4, Tor-IP-address4),

(queue-number4, Tor-IP-address5),

]

not a valid user ID that can be used to deanonymize Alice based on queue-number4 on Bob's confiscated device?

Why is this better than Cwtch where it's just a long term onion address that was never deanonymized? Cwtch didn't require 20 page manual to setup either.

Re: Is Telegram really an encrypted messaging app?

#572
post #391

Earlier quoted context omitted.

Well you hating on a feature you don't have to use doesn't affect my opinion about the well thought out security design around the rest of the application. I have zero sympathy for the distributed Ponzi scheme that is cryptocurrency, but nothing in Signal has gotten worse with the feature.

How would you feel if they add ai, Blockchain and nft features?

Why would they?

Re: Is Telegram really an encrypted messaging app?

#573
post #570
post #567

Earlier quoted context omitted.

Beta version: # 1. Install our official public software signing key wget -O- https://updates.signal.org/desktop/apt/keys.asc | gpg --dearmor > signal-desktop-keyring.gpg cat signal-desktop-keyring.gpg | sudo tee -a /usr/share/keyrings/signal-desktop-keyring.gpg > /dev/null # 2. Add our repository to your list of repositories echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updat…

Do you not see any difference with this and "it's included in the distribution and vetted by a distribution developer"?

No. The way I see it, I'm downloading an open-source, *always* end-to-end encrypted desktop-application Signal from official repository, instead of downloading an open-source *never* end-to-end encrypted desktop-application Telegram from official repository. Having to add the ppa is 10 seconds of additional trouble. I'll live. Without end-to-end encryption, a lot of dissidents however, might not.

Re: Is Telegram really an encrypted messaging app?

#574
post #446
post #363

Earlier quoted context omitted.

So they take theatrics over logical evaluation of the situation. Cool. Tell them Durov could have locked himself out of their data and spared himself the trip to behind bars.

Why is he in jail anyway? Certainly he's not a pedo drug dealing terrorist… So there is another reason. As to what that is, we can only speculate. My speculation is that he set a too high price to share the private data with france or USA.

If that's the case, sounds like he should have never collected the data in the first place :) Data is a toxic asset, as Schneier explained in 2016 https://www.schneier.com/blog/archives/2016/03/data_is_a_tox...

Re: Is Telegram really an encrypted messaging app?

#575
post #231

Earlier quoted context omitted.

That's the dangerous part. It's a messaging app that took in the function of a social media platform. It did so without robust security features like end-to-end encryption yet it advertised itself as heavily encrypted. Like Green stated in his blog post, users expect that to mean only recipient can read what you say, i.e. end-to-end encryption. Telegram would be fine if it advertised itself as a public square of the…

> It did so without robust security features like end-to-end encryption yet it advertised itself as heavily encrypted. Telegram has E2E encryption, but only in Secret Chats: https://telegram.org/faq#secret-chats

Telegram has secret chats, but only for mobile 1:1 chats.

You want secret chat for groups? Sorry, can't do. (Signal can.)

You want secret chats for desktop messages? Sorry, can't do. (Signal can.)

You want everything end-to-end encrypted by default? Sorry, can't do. (Signal. Can.)

Re: Is Telegram really an encrypted messaging app?

#576
post #29

If telegrams encryption is so bad why is Pavel Durov under arrest? The arrest cites that he was not cooperating with authorities to crack down on various drug illegal activities on telegram. None of the other social networks have their ceos arrested. Is it simply that telegram is the only one without backdoors for five eyes? It seems to me the secret chat feature actually works too well?

Telegram is the comms system for the Russian military.

https://www.politico.eu/article/telegram-ceo-arrest-pavel-du...

“They practically detained the head of communication of the Russian army,”

Re: Is Telegram really an encrypted messaging app?

#577
post #196

Earlier quoted context omitted.

You have to trust the provider with signal; they are fiercely anti-third party clients, control the network and have released version of the code that are not tracked by sources- in extreme cases we’re aware of years old code being in there (mobile coin for example). Signal evangelicalism needs to halt, you mean the Whisper protocol.

I don't completely agree. I am perfectly fine with there being multiple options for various use cases. Signal has its place. So does Telegram for that matter. Even Whatsapp.. That said, what I would love to see ( and likely won't at this point ) is the world where pidgin could exist again, because everyone is using some form of sensible standards that could be used.. right now it is mostly proprietary secret mess of…

Like someone once said, "Pidgin is a flock of zero-days flying in formation". It had serious issues with leaking messages to other applications via dbus, I know this because I used that feature to stab in the earliest version of my work TFC.

You always forgot to enable OTR even if it was right there in front of you. You couldn't use it cross-device, and its 1536-bit DH got outdated without fixes. There's stuff like lurch that offer OMEMO but still, I really prefer that I don't have to think about key management anymore. With Signal things just work, and it's magical.

Re: Is Telegram really an encrypted messaging app?

#578
post #573
post #570

Earlier quoted context omitted.

Do you not see any difference with this and "it's included in the distribution and vetted by a distribution developer"?

No. The way I see it, I'm downloading an open-source, *always* end-to-end encrypted desktop-application Signal from official repository, instead of downloading an open-source *never* end-to-end encrypted desktop-application Telegram from official repository. Having to add the ppa is 10 seconds of additional trouble. I'll live. Without end-to-end encryption, a lot of dissidents however, might not.

10 seconds of additional trouble, a lifetime of root access to a 3rd party :)

Re: Is Telegram really an encrypted messaging app?

#579
post #543

Earlier quoted context omitted.

Either sync private keys or the messages itself. Why would it be a security nightmare? In contrast to not even supporting e2ee in the first place?

How would you securely sync priv keys? How would you securely sync plaintext messages? Telegram supports e2ee but it is device centric for this reason

> How would you securely sync plaintext messages?

Same as with private keys: Verified e2ee

> Telegram supports e2ee but it is device centric for this reason

At least this is what they told you

Re: Is Telegram really an encrypted messaging app?

#580
post #579

Earlier quoted context omitted.

How would you securely sync priv keys? How would you securely sync plaintext messages? Telegram supports e2ee but it is device centric for this reason

> How would you securely sync plaintext messages? Same as with private keys: Verified e2ee > Telegram supports e2ee but it is device centric for this reason At least this is what they told you

[deleted]
Post reply on HN