News for hackers. Stuff that matters.
Re:$300k for Cracking Telegram Encryption by tptacek on Tuesday November 04, 2014 @10:50AM (#8557101)
Obligatory:

https://www.schneier.com/crypto-gram-9812.html

$300,000 isn't a whole lot more than it would cost to get n entire novel cryptosystem for a complex application built out of idiosyncratic components assessed professionally. They should just retain Riscure or Rambus to do that for them instead of the PR stunt.

Previous thread about Telegram on HN, featuring Moxie Marlinspike:

https://news.ycombinator.com/item?id=6913456

Re:$300k for Cracking Telegram Encryption by asadlionpk on Tuesday November 04, 2014 @11:12AM (#8557259)
Re:$300k for Cracking Telegram Encryption by higherpurpose on Tuesday November 04, 2014 @11:17AM (#8557295)
Re:$300k for Cracking Telegram Encryption by electic on Tuesday November 04, 2014 @12:59PM (#8557963)
See the discussion below between Telegram and the author of the post. A lot of good information there.
Re:$300k for Cracking Telegram Encryption by kirushik on Tuesday November 04, 2014 @11:16AM (#8557293)
What's the mathematical expectation of "Let's pay $300K for the security analysis?"

–$300 000, and good publicity among security experts.

What's the mathematical expectation of "Let's start a contest with $300K for dealing with our crypto on our terms (assuming 5% of success)"?

–$15 000, and much larger PR effect. ($300K-resistant crypto, yay!)

Seems to be an easy choice, unfortunately.

Re:$300k for Cracking Telegram Encryption by hughes on Tuesday November 04, 2014 @11:56AM (#8557546)
They could probably even purchase insurance against their loss. They just need to convince a prize indemnity insurance company that their security is unlikely to be broken, which might itself necessitate a $300 000 security audit...
Re:$300k for Cracking Telegram Encryption by ig1 on Tuesday November 04, 2014 @12:05PM (#8557595)
Depends if your goal is security or publicity.
Re:$300k for Cracking Telegram Encryption by owenmarshall on Tuesday November 04, 2014 @01:06PM (#8558014)
See https://news.ycombinator.com/item?id=6931457 as well.

> They should just retain Riscure or Rambus to do that for them instead of the PR stunt.

I'd love to go back through either of the previous threads and count to see how many people were saying "well, if no one can successfully win the challenge, they can use the money for a security audit!" like they are right now.

Telegram is pretty clearly a bad player that should be avoided.

Re:$300k for Cracking Telegram Encryption by opendais on Tuesday November 04, 2014 @01:24PM (#8558123)
They use 128bits of a SHA-1 key in 2014. I'd say its pretty clear their security is a gimmick only.

https://konklone.com/post/why-google-is-hurrying-the-web-to-...

From the contest: "This can happen if a security check is failed, or in the case that the first 128 bits of the SHA-1 of the newly created encryption key don‘t match on both parties’ clients when this stage is completed (this corresponds to Paul and Nick comparing the key visualizations for the Secret Chat in their Telegram apps)."

Re:$300k for Cracking Telegram Encryption by opendais on Tuesday November 04, 2014 @12:28PM (#8557760)
Also relevant since the way the clients compare keys is sha-1:

https://www.schneier.com/blog/archives/2012/10/when_will_we_... "211 * 28.4 = 219.4 ~ $700K by 2015"

The cost of brute forcing the answer is greater than the prize for the contest.

"This can happen if a security check is failed, or in the case that the first 128 bits of the SHA-1 of the newly created encryption key don‘t match on both parties’ clients when this stage is completed (this corresponds to Paul and Nick comparing the key visualizations for the Secret Chat in their Telegram apps)."

Re:$300k for Cracking Telegram Encryption by drdaeman on Tuesday November 04, 2014 @01:17PM (#8558075)
So, given the contest would "succeed" (or "fail", depending on the viewpoint) with no one getting the prize, the only thing we could be more or less certain of, is that no one would likely consider cracking Telegram under given conditions for $300K in 2 months. Or maybe I'm missing something.
Re:$300k for Cracking Telegram Encryption by opendais on Tuesday November 04, 2014 @01:21PM (#8558104)
Yep. Unless there is a bug in the bot or their implementation isn't as described, no one will crack it so its a very safe bet for them.

This contest basically admits its crackable for more than $300k as well. They even reduced the number of bits for a collision. :/

Re:$300k for Cracking Telegram Encryption by raverbashing on Tuesday November 04, 2014 @12:06PM (#8557599)
" The best products/systems/protocols/algorithms available today have not been the subjects of any contests, and probably never will be."

No? Doesn't this fit the definition of a contest? http://en.wikipedia.org/wiki/Advanced_Encryption_Standard_pr...

Yes, the fairness of the contest plays an important part, and a fair context where only the algorithm is analysed goes a long way.

"Just because no one wins a contest doesn't mean the target is secure...it just means that no one won."

Of course. But the fact that it passed revision by experts means it is (probably) safe today (and for what it is known, it might be trivially breakable "behind closed doors")

"Our Twofish cryptanalysis contest offers a $10K prize for the best negative comments on Twofish that aren't written by the authors. "

Ah ok, so contests suck, except for the ones we throw. Nice.

"There are no arbitrary definitions of what a winning analysis is." No? So what is "best negative comment"? It's still subjective. And the 2nd best gets nothing? Who determines that?

Re:$300k for Cracking Telegram Encryption by tptacek on Tuesday November 04, 2014 @12:10PM (#8557625)
No, you're playing a semantic game with the word "contest" here. The AES competition was a tournament designed to select the best candidate from a collection of ciphers submitted by the world's best cryptographers.

The Twofish bounty was a bounty that guaranteed payment to the best technical critique of a very specific, well-defined cryptographic primitive.

Re:$300k for Cracking Telegram Encryption by raverbashing on Tuesday November 04, 2014 @12:30PM (#8557779)
> "The AES competition was a tournament designed to select the best candidate from a collection of ciphers submitted by the world's best cryptographers."

Fair enough. And the focus is exclusively on the algorithm (which is good).

> "The Twofish bounty was a bounty that guaranteed payment to the best technical critique of a very specific, well-defined cryptographic primitive"

"the best technical critique" is still subjective.

Re:$300k for Cracking Telegram Encryption by tptacek on Tuesday November 04, 2014 @12:37PM (#8557828)
It guaranteed payment. It didn't try to prove a negative. It started from the presumption that there would be solid critiques.
Re:$300k for Cracking Telegram Encryption by raverbashing on Tuesday November 04, 2014 @12:58PM (#8557959)
How many comments were received/payed?

There's an undated article https://www.schneier.com/twofish-contest.html pointing to a dead link

Re:$300k for Cracking Telegram Encryption by pbsd on Wednesday November 05, 2014 @02:01AM (#8560798)
In the context of a crypto competition that sort of bounty is a way to try to get more attention to your design, therefore making your candidate more likely to be selected. Many designs are rejected due to lack of analysis at the time of the selection process. It's better to pick a well-analyzed primitive than a not-so-well analyzed one that looks more solid but is more of a gamble.
Re:$300k for Cracking Telegram Encryption by qwerta on Tuesday November 04, 2014 @11:12AM (#8557258)
$300,000 is nothing to sneeze at. I imagine someone could hack chat clients, extract private keys and claim the price.
Re:$300k for Cracking Telegram Encryption by opendais on Tuesday November 04, 2014 @12:24PM (#8557732)
Under the rules of the challenge, that isn't possible since the "clients" aren't real and its just a bot they wrote. :P

All you are getting is the over-the-wire exchanges which makes it kinda a joke.

The part that is actually vulnerable to attack is the way the client functions and handles keys.

MitMing after a key exchange isn't helpful since its like getting the PGP text after its encrypted. You have to brute force the keys at that point.

Re:$300k for Cracking Telegram Encryption by remon on Tuesday November 04, 2014 @11:16AM (#8557288)
The big difference is that with one of the two options they don't actually have to spend the $300,000.
Re:$300k for Cracking Telegram Encryption by huhtenberg on Tuesday November 04, 2014 @01:38PM (#8558221)
It's fairly obvious that Telegram enjoys the challenge of designing their own crypto. The chances of them outsourcing the design are zero, because it will simply kill all the fun.

That's not too dissimilar to suggesting hiring an ISO-certified shop to redo your beautiful hand-optimized assembly code in an industry-standard Java. It's a simplification, but I'm pretty sure a large chunk of HN can relate to how much of a killjoy letting others do the interesting parts is.

In the end all these not-so-subtle backstabs and innuendos that they are just a bunch of annoying f#cking amateurs is counter-productive. They won't be using SSL and $300K is not enough to run their custom crypto through an audit that will be good for all the "experts". Besides, the main issue with the Telegram is not their crypto, is not the contests, it's the fact that they got off the wrong foot with the public applied crypto community. In theory, they should be fixing that, but in reality they don't seem to give a flying f#ck about it, which to me actually looks more like a show of a backbone rather than of an ignorance.

Ultimately they want the same thing as this Moxie person. They want less surveillance. Now pray tell why they should have their head repeatedly dunk in a toilet bowl every time their project gets a mention?

Re:$300k for Cracking Telegram Encryption by owenmarshall on Tuesday November 04, 2014 @02:03PM (#8558378)
> It's fairly obvious that Telegram enjoys the challenge of designing their own crypto. The chances of them outsourcing the design are zero, because it will simply kill all the fun.

Great! I like to scribble out sponge functions while eating lunch. I've made a few toy stream ciphers. Crypto is fun as all hell, and it's a great way to learn things!

But novelty isn't really a good thing when it comes to actually depending on crypto. You want something that's been well studied by lots of smart people. To paraphrase Schneier (I believe), anyone can design an encryption process that they can't break - the real challenge is keeping the people who are smarter than you from breaking it as well.

Novelty is an _extremely_ bad reason to design and deploy cryptography.

> They want less surveillance. Now pray tell why they should have their head repeatedly dunk in a toilet bowl every time their project gets a mention?

Because the applied crypto community points out issue after issue after issue with their product and is met with variations of "nuh uh, it's fine!"

Bad crypto is worse than no crypto because either way the NSA is watching you, but when you use no crypto you're at least forced to admit to yourself that your adversary has you in their crosshairs.

Re:$300k for Cracking Telegram Encryption by huhtenberg on Tuesday November 04, 2014 @02:15PM (#8558451)
> Because the applied crypto community points out issue after issue after issue with their product and is met with variations of "nuh uh, it's fine!"

Well, no. That's the thing. That's a Hollywood version of it. He said she said it's all horrible piece of shit, because of something someone else said earlier on an unrelated subject. What makes rounds is the regurgitated abstract hate towards Telegram, whereby the factual matter has been long forgotten.

Let me put it this way - name a couple of open design issues with the current Telegram protocol.

Re:$300k for Cracking Telegram Encryption by owenmarshall on Tuesday November 04, 2014 @03:47PM (#8558944)
> Let me put it this way - name a couple of open design issues with the current Telegram protocol.

https://core.telegram.org/img/mtproto_encryption1.png

The use of encrypt and MAC is the one that should jump out at even a crypto neophyte.

There are some nice proofs around this[1] that I've read before. The important one is that encrypt then MAC guarantees INT-CTXT: it's computationally infeasible to produce a ciphertext not before sent by the sender. INT-CTXT implies INT-PTXT which is the weaker claim but typically the one people associate with the function of a MAC: that you can't forge a plaintext the sender never sent.

While E&M isn't immediately bad it has been used as an avenue for attack[2]. If Telegram's aes_ige_decrypt() function accidentally overflows a buffer... and because they're doing E&M it must call aes_ige_decrypt() on whatever message I decide to send it.

Now, Telegram can claim that those attacks don't apply because of their use of IGE, and they may very well be correct! But then we move into IGE: there are known attacks that show chosen error introductions can cause the stream to resynchronize without error[3]. What does that mean in practice? Who knows: we know IGE is broken, but we don't know how badly because no one actually studies IGE, or knows how it is implemented in this system!

The real failings here: Telegram uses a MAC with less security guarantees AND a cipher mode that would be charitably described as anonymous, instead of using a provably secure MAC along with well-studied modes.

Now, I'm a big security dummy (seriously) but if there's one thing people far smarter than me have banged in my head, it's this: you follow the well-beaten path precisely because it is well-beaten. When you start venturing off the trail into the woods of funky block cipher modes and known-problematic MAC modes, your margins get a lot thinner.

[1]: http://cseweb.ucsd.edu/~mihir/papers/oem.pdf

[2]: http://www.thoughtcrime.org/blog/the-cryptographic-doom-prin...

[3]: https://groups.google.com/forum/#!topic/sci.crypt/4bkzm_n7UG...

Re:$300k for Cracking Telegram Encryption by tptacek on Tuesday November 04, 2014 @03:57PM (#8559000)
What actual MAC is that?
Re:$300k for Cracking Telegram Encryption by owenmarshall on Tuesday November 04, 2014 @04:40PM (#8559208)
What actual MAC is what?

Sorry, I'm a bit confused by the question :)

Re:$300k for Cracking Telegram Encryption by tptacek on Tuesday November 04, 2014 @04:50PM (#8559273)
It's been awhile since I looked at anything in Telegram and I forget what MAC they use. That diagram makes it look like instead of a MAC, they're using a simple digest of the message --- which is not a MAC.
Re:$300k for Cracking Telegram Encryption by owenmarshall on Tuesday November 04, 2014 @05:31PM (#8559462)
Heh. I just looked again and had misread their specs: I thought the shared secret went into their SHA-1. You are correct, they just take a digest.

So I can make any message look OK just by hashing the plaintext. Heh. Wonder what that KDF looks like...

Re:$300k for Cracking Telegram Encryption by praptak on Tuesday November 04, 2014 @02:36PM (#8558578)
"Let me put it this way - name a couple of open design issues with the current Telegram protocol."

Sorry, it doesn't work this way: 'When someone hands you a security system and says, "I believe this is secure," the first thing you have to ask is, "Who the hell are you?" Show me what you've broken to demonstrate that your assertion of the system's security means something.'

Re:$300k for Cracking Telegram Encryption by huhtenberg on Tuesday November 04, 2014 @02:56PM (#8558702)
Erm ... what "doesn't work this way"?

The GP said there were numerous issues identified with Telegram's design, all of which were brushed aside by Telegram devs. I asked to name a couple of them.

Re:$300k for Cracking Telegram Encryption by Nursie on Tuesday November 04, 2014 @11:35AM (#8557416)
OTOH it is enough money to get a few interested amateurs going at it I would think.

Not that it proves anything very much if it's not claimed.

Re:$300k for Cracking Telegram Encryption by xnyhps on Tuesday November 04, 2014 @12:08PM (#8557610)
It's even counter-productive:

If I find a few small flaws that are problematic, but not enough to claim the prize, I'll definitely keep them to myself until the contest ends. Instead of incentivizing people to share vulnerabilities with them, they incentivize hoarding bugs.

Re:$300k for Cracking Telegram Encryption by eksith on Tuesday November 04, 2014 @11:07AM (#8557225)
PR stunt has side benefits besides pure security even though the method has shortcomings. Namely, the PR part, which may play a significant role in its actual success.

We know for a fact that most people aim for better known than just better.

Re:$300k for Cracking Telegram Encryption by tptacek on Tuesday November 04, 2014 @11:09AM (#8557242)
There's the "well known" you get after holding a big contest, and the even better known you get after you're prominently featured in indictments, the way Hushmail and Lavabit were.

Not so many news stories about simple OTR.

Re:$300k for Cracking Telegram Encryption by eksith on Tuesday November 04, 2014 @11:16AM (#8557286)
They don't have nearly as many users to face that indictment at this point in time, which is why they can afford to pull this. Like I said, there are shortcomings in this, but if anything, that does attract more attention to OTR.
Re:$300k for Cracking Telegram Encryption by ilghiro on Tuesday November 04, 2014 @11:04AM (#8557206)
But without the PR stunt there wouldn't be PR?
Re:$300k for Cracking Telegram Encryption by eli on Tuesday November 04, 2014 @11:12AM (#8557256)
Depends who your audience is. Personally I'm much more interested in a service with a successful professional audit than a gimmicky prize.
Re:$300k for Cracking Telegram Encryption by gondo on Tuesday November 04, 2014 @11:26AM (#8557360)
well if no one will manage to break it, surely they can spend the money on proper audit.