News for hackers. Stuff that matters.
Re:Telegram has launched a pretty intense campaign to malign... by imjonse on Monday May 13, 2024 @07:46AM (#40342162)
Telegram were claiming they were more secure even when they had their own home-rolled crypto. Security is not Telegram's strong point and it never was.
Re:Telegram has launched a pretty intense campaign to malign... by treprinum on Monday May 13, 2024 @07:50AM (#40342199)
Why is home-rolled crypto inherently insecure?
Re:Telegram has launched a pretty intense campaign to malign... by danpalmer on Monday May 13, 2024 @08:07AM (#40342366)
It's inherently risky – cryptography is hard and building secure software is hard, so starting it from scratch rather than re-using well-vetted code increases the risk unnecessarily.

It's not inherently broken, but it's sufficiently risky that it may be fair to assume it is broken. History has proven that software that's not known to be secure is typically insecure when it gets to the really hard crypto implementation. I think it's fair therefore to approximate it as "inherently insecure".

Re:Telegram has launched a pretty intense campaign to malign... by kaba0 on Monday May 13, 2024 @09:26AM (#40343102)
It’s insecure if done by your average full stack developer, that barely passed high school math. That’s why the usual mantra. It’s waaay different when done by math experts specialized in this topic, as is the case with telegram.
Re:Telegram has launched a pretty intense campaign to malign... by MatejKafka on Monday May 13, 2024 @07:39PM (#40349878)
Math experts are not necessarily good cryptographers, and authors of MTProto were not renowned cryptographers (unlike with Signal).

Most people in the cryptographic community agree that the Signal protocol is well-designed, is widely believed to be secure, and the authors react openly and swiftly to potential issues. Meanwhile, a lot of the MTProto crypto is just weird (that is, it does not follow standard practices of the field, without strong reasons to do so), and many cryptographers treat it with suspicion.

Re:Telegram has launched a pretty intense campaign to malign... by ale42 on Monday May 13, 2024 @07:58AM (#40342275)
Because doing proper crypto is VERY hard. You might think you've gotten the ultimate security and one year later someone will defeat it (or cryptanalize within a practical limit, which boils down to the same), because you forgot a detail. Even just implementing a crypto algorithm properly in a way that doesn't leak information is very complex, reason for which most applications tend to use well-established crypto libraries.
Re:Telegram has launched a pretty intense campaign to malign... by richardw on Monday May 13, 2024 @08:05AM (#40342354)
Good answers here:

https://security.stackexchange.com/questions/18197/why-shoul...

I’d do a disservice to try copy and paste here so rather look at the top answer

Re:Telegram has launched a pretty intense campaign to malign... by OSI-Auflauf on Monday May 13, 2024 @07:53AM (#40342238)
Because theirs was particularly bad. They xored a server provided nonce in their modified DH scheme making their side able to mitm the key exchanges.
Re:Telegram has launched a pretty intense campaign to malign... by hcks on Monday May 13, 2024 @07:55AM (#40342252)
It’s not been audited by CIA approved programmers
Re:Telegram has launched a pretty intense campaign to malign... by supriyo-biswas on Monday May 13, 2024 @09:02AM (#40342863)
In the case of Telegram, MTProto’s implementation leaves a lot to be desired[1][2].

Additionally, home rolled crypto does not usually get the kind of security review from the cryptography community which makes it very likely that bugs of all kinds exist.

[1] https://words.filippo.io/dispatches/telegram-ecdh/ [2] http://unhandledexpression.com/2013/12/17/telegram-stand-bac...

Re:Telegram has launched a pretty intense campaign to malign... by martinralbrecht on Monday May 13, 2024 @10:46AM (#40343955)
Telegram's symmetric cryptography has been reviewed by cryptographers: https://mtpsym.github.io/
Re:Telegram has launched a pretty intense campaign to malign... by GuB-42 on Monday May 13, 2024 @09:31AM (#40343161)
To add to the idea that crypto is hard, it is not just hard in the same way that, say, making a physics engine is hard. It is hard because there is no telltale sign you did it wrong.

All crypto algorithms, even weak ones output what looks like random numbers that can be deciphered back into the original plaintext. Just by looking at it, there is no way to differentiate between secure and insecure crypto. Contrast to a physics engine, it is hard to get right, but at least, if you did it wrong, it tends to be obvious.

Also, like everything security-related, it is adverserial. You may have some of the smartest and most resourceful guys on the planet working to break your thing. It is worse than even critical systems. Aircraft engine control is critical, people may die if it goes wrong, so robustness and correctness are crucial, but at least, pilots won't go out of their way to break it.

Re:Telegram has launched a pretty intense campaign to malign... by martinralbrecht on Monday May 13, 2024 @10:45AM (#40343947)
We explain this under the heading "A Somewhat Opinionated Discussion" here: https://mtpsym.github.io/ which is our security analysis of MTProto's symmetric cryptography.
Re:Telegram has launched a pretty intense campaign to malign... by bozey07 on Monday May 13, 2024 @09:19AM (#40343031)
Why is MTProto considered "home-rolled" but the Signal Protocol isn't? Both are boutique and written from scratch to fit their respective systems.
Re:Telegram has launched a pretty intense campaign to malign... by lynndotpy on Monday May 13, 2024 @09:54AM (#40343425)
Of course. But the history of the Signal protocol and implementation traces back 20 years. It's good enough that Facebook, WhatsApp, and Skype use it for E2EE messages. Telegram's traces back 10 years, the first version was very bad, and both versions have had a lot of scrutiny for weird design decisions.

Crypto schemes which get broken usually follow a pattern of "something smells wrong", "we have weakened it a little bit", "we have weakened it a little bit more", "this is now completely broken", "my god why are you still using MD5, it's 2017".

We're in the "something smells wrong" or "we have weakened it a little bit" phase for MTProto2, depending on how you view it.

Re:Telegram has launched a pretty intense campaign to malign... by palata on Monday May 13, 2024 @10:12AM (#40343623)
> But the history of the Signal protocol and implementation traces back 20 years

Are you sure about that? TextSecure was created more 10 years ago than 20. 20 years ago, we did not have smartphones.

As I remember, TextSecure started with SMS (but that was not the Signal protocol) and added "internet" messages right after WhatsApp got bought (which was about when Telegram was started).

I love the Signal protocol, but I would say it's more 10 years old (like Telegram). Or am I missing something?

Re:Telegram has launched a pretty intense campaign to malign... by lynndotpy on Monday May 13, 2024 @10:58AM (#40344084)
Signal/TextSecure (/DRA/Axolotl) has a pretty strong throughline from the "off-the-record" protocol (OTR) from 2004/2005. Signal themselves describes TextSecure as a derivative of OTR (https://signal.org/blog/simplifying-otr-deniability/).

It's close enough that if, say, a novel attack against OTR were discovered today, the first thing I'd want to know is if there are any implications against Signal.

Re:Telegram has launched a pretty intense campaign to malign... by palata on Monday May 13, 2024 @11:51AM (#40344685)
Oh right. It does come from OTR which is 20 years old. Thanks for the clarification!
Re:Telegram has launched a pretty intense campaign to malign... by reportgunner on Monday May 13, 2024 @11:15AM (#40344287)
> It's good enough that Facebook, WhatsApp, and Skype use it for E2EE messages.

Wait if it's the same why don't we just use Facebook, WhatsApp and Skype instead of Signal?

Re:Telegram has launched a pretty intense campaign to malign... by palata on Monday May 13, 2024 @11:59AM (#40344762)
Don't forget that Signal is the name of the app, and "Signal Protocol" is the name of the E2EE protocol. The parent was talking about the Signal Protocol.

The fact that Facebook, WhatsApp, etc. use the Signal Protocol kind of shows that it is an accepted standard. But of course there are many reasons to use Signal (the App) instead of those apps, for instance:

- The Signal App is open source. You can check the protocol implementation before you use it. For Facebook, WhatsApp and Skype, you have to trust them (or some audits).

- E2EE is only one part: it ensures that nobody except the recipient can read the content of your messages. But there is a whole story around the metadata. The metadata say who writes to whom, and when. It essentially helps build a social graph. Facebook is very interested in this social graph. It would appear that the Signal Foundation is not. And even if it is not perfect, Signal does a lot to try to minimize the amount of metadata it has access to (and quite obviously Facebook has a huge incentive not to do that).

This said, IMHO it is still a lot better to use WhatsApp than to use Telegram, because at least you benefit from a good E2EE.

Re:Telegram has launched a pretty intense campaign to malign... by lynndotpy on Monday May 13, 2024 @11:25AM (#40344392)
It's only the protocol for their E2EE chats. There are two big caveats:

- Facebook and Skype E2EE messages are optional, and people rarely use that option, and - Those apps collect a huge amount of data outside the contents of the messages.

Re:Telegram has launched a pretty intense campaign to malign... by reportgunner on Monday May 13, 2024 @11:29AM (#40344446)
Still I think mentioning the greatest data collection projects in human history in the same sentence as Signal which is supposed to fight that is not very good.
Re:Telegram has launched a pretty intense campaign to malign... by lynndotpy on Monday May 13, 2024 @11:50AM (#40344672)
Only that the protocol is an accepted standard. Very, very, very little of what's shared over Facebook is E2EE.
Re:Telegram has launched a pretty intense campaign to malign... by noman-land on Monday May 13, 2024 @11:27AM (#40344418)
Why don't you go to the local casino to chat with friends? They serve the same beer.
Re:Telegram has launched a pretty intense campaign to malign... by reportgunner on Tuesday May 14, 2024 @10:05AM (#40355356)
Fair point, I've never been to a local casino but I figure the same beer will be more expensive there.
Re:Telegram has launched a pretty intense campaign to malign... by fastball on Monday May 13, 2024 @10:07AM (#40343557)
Technically Signal is using their own home-rolled crypto, too – right?
Re:Telegram has launched a pretty intense campaign to malign... by imjonse on Monday May 13, 2024 @10:49AM (#40343991)
Telegram had some weird primitives which they said we should trust because they were made by their top team of mathematicians. Signal builds on widely used crypto primitives even if their protocol is their own (vetted by actual cryptographers though)
Re:Telegram has launched a pretty intense campaign to malign... by api on Monday May 13, 2024 @10:58AM (#40344083)
Sort of, but it's heavily peer reviewed and generally regarded as very good.

I really dislike the "hand rolled is bad" meme. Someone rolled all crypto. The questions are "who is doing the rolling," "do they know what they are doing," and "was it peer reviewed or directly and faithfully built from a peer reviewed design?"

Re:Telegram has launched a pretty intense campaign to malign... by Sebb767 on Monday May 13, 2024 @12:00PM (#40344774)
> I really dislike the "hand rolled is bad" meme.

Crypto is notoriously easy to get wrong, even if you know a lot about it - and most people do not. Secondly, proving something secure is pretty hard as well. If the crypto isn't a bog-standard algorithm in a well-known and reviewed implementation, assuming it to be insecure is a pretty good rule of thumb.

Re:Telegram has launched a pretty intense campaign to malign... by api on Monday May 13, 2024 @12:22PM (#40345002)
My take on "don't roll your own" is:

The people who take this advice are people who have respect for the difficulty of things like crypto and should be the ones implementing it, or at least on-ramped into learning how to do so.

The sorts of people who ship bad crypto because they don't bother to learn anything about the field are going to ignore this advice.

So I think as a strategy for fighting bad crypto it's neutral or maybe even net-negative by discouraging the right people from learning crypto and having no effect on overconfident fools.

Re:Telegram has launched a pretty intense campaign to malign... by deepsun on Monday May 13, 2024 @12:54PM (#40345386)
> should be the ones implementing it

Someone (Bruce Schneier?) said that the best way to get into actually inventing/implementing crypto is to first get handy inventing attacks / hacking into other algorithms and tools.