News for hackers. Stuff that matters.
Re:SS7 MITM Attack Against WhatsApp and Telegram by moxie on Tuesday May 10, 2016 @01:21PM (#11668857)
This article glosses over a few important details.

The reason that end to end encryption exists is precisely because man in the middle attacks are possible, and always will be. This kind of attack is devastating for Telegram, because by default they don't use end to end encryption, and instead store the entire plaintext history of every message you've ever sent or received, all of which an attacker instantly gets access to.

For WhatsApp, everything is end to end encrypted by default, so the attacker doesn't get any message history. All of the contacts for the MITM'd user also get a notice that their contact's security code changed, and a comparison will fail to match. This is exactly what E2E was built to protect against.

Re:SS7 MITM Attack Against WhatsApp and Telegram by ultramancool on Tuesday May 10, 2016 @01:34PM (#11668974)
Yeah, I don't see how this is devastating for WhatsApp - you simply verify the other party's key once and then good to go, if it ever changes you'll get a big scary warning (you'll get that anyways but you should still verify the key in case your initial session was compromised). Admittedly I've only worked with Signal, but I'm assuming WhatsApp offers similar as they hired the same devs.

Am I missing something here? I don't see how this attack would be useful against end-to-end encrypted messaging apps (well, properly implemented ones at least).

Re:SS7 MITM Attack Against WhatsApp and Telegram by williamscales on Tuesday May 10, 2016 @01:52PM (#11669131)
I think WhatsApp has the big scary warning when keys change disabled by default. You can enable it for yourself but it's buried in the settings.
Re:SS7 MITM Attack Against WhatsApp and Telegram by avar on Tuesday May 10, 2016 @02:41PM (#11669518)
For anyone looking for it: Settings -> Account -> Security -> "Show security notifications = on".
Re:SS7 MITM Attack Against WhatsApp and Telegram by mtgx on Tuesday May 10, 2016 @05:55PM (#11670986)
I hope Moxie can share with us why this feature is disabled by default. Does Whatsapp really think the notification would quickly become very annoying for regular users? How often would someone's closest friends really change their phones or uninstall Whatsapp? I imagine not that often for this to be a huge inconvenience, which is why I don't understand why the setting is off by default.

Maybe it's something else I'm missing, which is why it would be good for Moxie or Whatsapp to clear up this puzzling choice.

Also I hope both the Whatsapp and Signal teams think of ways to encourage security code authentication through better UI. Viber, for instance, has taken an interesting approach to encouraging easier authentication. It probably still doesn't go far enough to make it easy enough for just about anyone to want to authenticate their contacts, but I'd like to see more of this sort of UI experimentation:

https://support.viber.com/customer/portal/articles/2017401-v...

Re:SS7 MITM Attack Against WhatsApp and Telegram by AdmiralAsshat on Tuesday May 10, 2016 @09:43PM (#11672077)
I hope Moxie can share with us why this feature is disabled by default. Does Whatsapp really think the notification would quickly become very annoying for regular users? How often would someone's closest friends really change their phones or uninstall Whatsapp? I imagine not that often for this to be a huge inconvenience, which is why I don't understand why the setting is off by default.

Moxie did not make Whatsapp. He made the protcol originally designed for Signal/TextSecure that Whatsapp uses. It's a little extreme to blame him for what is basically a UX/GUI decision on an app that just uses his protocol.

Re:SS7 MITM Attack Against WhatsApp and Telegram by mtgx on Wednesday May 11, 2016 @10:10AM (#11675389)
I didn't blame him, though, but I thought he could share why the Whatsapp team decided to do that.
Re:SS7 MITM Attack Against WhatsApp and Telegram by sievebrain on Tuesday May 10, 2016 @06:51PM (#11671322)
He has said before that key changes in the wild are an extremely common event. I imagine even just the notification that chats are now encrypted caused a lot of confusion and upset given the enormous size of the userbase.

Spamming users with warnings that 99.9999% of the time will not be understandable let alone actionable is a quick way to get another SSL warning dialog scenario.

Re:SS7 MITM Attack Against WhatsApp and Telegram by nexxer on Wednesday May 11, 2016 @10:58AM (#11675896)
My mother stopped using Whatsapp completely when she saw the "your chats are now encrypted" message the first time, until she reached out and I explained it was OK.
Re:SS7 MITM Attack Against WhatsApp and Telegram by feld on Tuesday May 10, 2016 @10:37PM (#11672274)
Why would the key change? This makes no sense. You generate once and never again unless they replace their phone.

I really hope it's not a new set of keys every time Whatsapp updates...

Re:SS7 MITM Attack Against WhatsApp and Telegram by sievebrain on Wednesday May 11, 2016 @05:31AM (#11673819)
Because people do replace their phone, and also uninstall/reinstall the app or wipe app data etc.

You could argue (and I have done) that a key change event should be surfaced in the UI as "Your contact has switched to a new $MODEL_NAME phone" so if it occurs in the middle of a conversation or you happen to know they really haven't upgraded, it can lead people to tap it and learn more. An alert like "Contact key has changed" would be meaningless. But it's also the case that notifications that seem useless to people rapidly get phased out, and unfortunately any notification that boils down to "you MIGHT be being attacked by your own government but PROBABLY your friend just dropped their phone" is a non starter.

Re:SS7 MITM Attack Against WhatsApp and Telegram by dingaling on Tuesday May 10, 2016 @01:42PM (#11669037)
> you simply verify the other party's key once and then good to go

Against what, though? The key that Whatsapp asserts is valid for the other user?

As far as I am aware there's no way to access and visually eyeball-compare the raw keys in Whatsapp, just what the app presents as a signature or QR code. Open to correction.

Re:SS7 MITM Attack Against WhatsApp and Telegram by moxie on Tuesday May 10, 2016 @01:47PM (#11669086)
Check out the image at the top of the post: https://whispersystems.org/blog/whatsapp-complete/
Re:SS7 MITM Attack Against WhatsApp and Telegram by ultramancool on Tuesday May 10, 2016 @01:45PM (#11669068)
> Against what, though? The key that Whatsapp asserts is valid for the other user?

No, against the other person sitting at the table with you via QR code scanning.

Or their voice speaking the public key via another channel.

> just what the app presents as a signature or QR code. Open to correction.

What's wrong with the QR code? That QR code is a hash of the public key and exactly what you need for this identity verification purpose.

If the pubkey changes after you've scanned it, you know you've got to verify that person again before sharing anything private over that channel.

Re:SS7 MITM Attack Against WhatsApp and Telegram by geocar on Tuesday May 10, 2016 @02:28PM (#11669395)
> What's wrong with the QR code? That QR code is a hash of the public key

I have no way to verify that.

If WhatsApp is trustworthy and secure, then the QR code might be a hash of the public key, but to be completely frank, it could be anything.

* I don't have the source code.

* Nobody I know has the source code

* Nobody I know has bothered to jailbreak their device and/or decompile the binary. I just got an update recently, and my friends are busy.

If I had access to my own public and private key, I (or someone I know) could conceivably verify that I'm using it by decrypting my messages using another device (e.g. using wireshark).

I appreciate that you might have the source code, or know someone with the source code, or might have reverse engineered the most recent update and have more confidence than I do, but you cannot transmit that confidence to me by simply insisting that it is the hash of the public key.

Re:SS7 MITM Attack Against WhatsApp and Telegram by moxie on Tuesday May 10, 2016 @02:47PM (#11669559)
The source code is for generating the QR code is online here: https://github.com/WhisperSystems/libsignal-protocol-java/bl...
Re:SS7 MITM Attack Against WhatsApp and Telegram by geocar on Wednesday May 11, 2016 @03:36AM (#11673303)
How do I know that is what is on my device?
Re:SS7 MITM Attack Against WhatsApp and Telegram by yownie on Tuesday May 10, 2016 @03:12PM (#11669742)
thanks moxie.
Re:SS7 MITM Attack Against WhatsApp and Telegram by startling on Tuesday May 10, 2016 @04:20PM (#11670333)
> If WhatsApp is trustworthy and secure, then the QR code might be a hash of the public key, but to be completely frank, it could be anything.

The problem being solved here is validating that another Whatsapp user's key belongs to a flesh-and-blood person you know. We're taking it on faith at this point that Whatsapp's application is trustworthy. If it's not, validating keys is useless -- the app could upload all your chat transcripts in the background for all we know.

Re:SS7 MITM Attack Against WhatsApp and Telegram by geocar on Wednesday May 11, 2016 @03:43AM (#11673337)
> If [WhatsApp's application isn't trustworthy], validating keys is useless

No.

This is completely and totally wrong.

This isn't a court of law on US television: You aren't trustworthy until proven otherwise.

Re:SS7 MITM Attack Against WhatsApp and Telegram by startling on Wednesday May 11, 2016 @02:07PM (#11677704)
I'm all for validating software. But it's difficult and we're exceedingly bad at it, and imo this problem is orthogonal to validating other users on social networks.

If your argument is "let's not trust Whatsapp", then it helps not to confuse it with discussion about QR codes.

Re:SS7 MITM Attack Against WhatsApp and Telegram by geocar on Thursday May 12, 2016 @04:43AM (#11682150)
> it's difficult and we're exceedingly bad at it

We're bad at it, because we can't tell the difference between a "QR code is a hash of the public key", and a "QR code is something WhatsApp tells us represents this other person."

Why not just use pictures of puppies? Pick the puppy you've seen represent this person before, and be suspicious if the puppy's changed! Try talking to them in person about the puppy icon used for them and make sure they match! That is actually more secure than the QR code, even if it still doesn't protect you from WhatsApp.

The reason we're talking about QR codes is because they seem more secure than puppies; to make someone think that this QR code is actually security measure! While this attack may be "foiled" by E2E cryptosystems, it's important to note the big fucking trapdoor that means WhatsApp isn't actually providing E2E protection.

Conflating this simple fact with the overarching boogeyman of "validating software" does the discussion a disservice.

Re:SS7 MITM Attack Against WhatsApp and Telegram by startling on Thursday May 12, 2016 @02:03PM (#11685441)
What else would you validate? A number? Whatsapp can just show you the wrong number.
Re:SS7 MITM Attack Against WhatsApp and Telegram by geocar on Friday May 13, 2016 @01:34AM (#11688817)
> What else would you validate? A number? Whatsapp can just show you the wrong number.

Good. You appear to understand the problem now.

I already alluded to the solution here:

> If I had access to my own public and private key, I (or someone I know) could conceivably verify that I'm using it by decrypting my messages using another device (e.g. using wireshark).

and here:

> That's why providing the keys (or better: being able to supply my own) is essential.

See, if I have the keypair, then for WhatsApp to subvert my conversation it needs to send the private key to itself -- something it can only do when it's not looking.

This means it would need to let me download the keys before it does any networking. If it absolutely must network before letting me have the keys, then it can allow me to install my own (new) keys. Then, WhatsApp doesn't know when I'm not looking.

If WhatsApp made it possible to catch them being dishonest, then it only takes one person to catch them and their name becomes mud.

Of course, the mere possibility that moxie could be compromised or even make a mistake is clearly too big a leap for HN these days...

Re:SS7 MITM Attack Against WhatsApp and Telegram by ultramancool on Friday May 13, 2016 @09:57AM (#11690425)
> See, if I have the keypair, then for WhatsApp to subvert my conversation it needs to send the private key to itself -- something it can only do when it's not looking.

> This means it would need to let me download the keys before it does any networking. If it absolutely must network before letting me have the keys, then it can allow me to install my own (new) keys. Then, WhatsApp doesn't know when I'm not looking.

Look up signed Diffie-Hellman. Have fun trying to capture that with Wireshark. You'd need a custom MITM tool. That or you're suggesting the developer gives up forward secrecy and passive attack resistance.

Re:SS7 MITM Attack Against WhatsApp and Telegram by ultramancool on Tuesday May 10, 2016 @02:39PM (#11669503)
> If WhatsApp is trustworthy and secure, then the QR code might be a hash of the public key, but to be completely frank, it could be anything.

Sure, but we're talking about this specific attack's effect on WhatsApp, if you want to debate the relative merits of open source vs closed source End-To-End encryption tools, you may have a point, but it's not one that's relevant here as it has nothing to do with this attack. Unless the attack can be used to update the app or something with a modified malicious version.

Say it were Signal instead of WhatsApp if you must. Is there any effect made by this attack?

Re:SS7 MITM Attack Against WhatsApp and Telegram by geocar on Wednesday May 11, 2016 @03:51AM (#11673376)
> Say it were Signal instead of WhatsApp if you must. Is there any effect made by this attack?

This is what's known as a false dichotomy.

Both systems are as implemented not secure from this attack for the reason I just said.

Re:SS7 MITM Attack Against WhatsApp and Telegram by ashitlerferad on Tuesday May 10, 2016 @09:07PM (#11671952)
Source code is pretty useless when it is running on a proprietary platform on a device with a secondary chip running a buggy proprietary OS that has an always-on high-speed wireless network connection.

If you are using a mobile phone you have already lost in the security stakes.

Re:SS7 MITM Attack Against WhatsApp and Telegram by geocar on Wednesday May 11, 2016 @03:53AM (#11673389)
That's why providing the keys (or better: being able to supply my own) is essential.
Re:SS7 MITM Attack Against WhatsApp and Telegram by ultramancool on Friday May 13, 2016 @11:16AM (#11690850)
You can do that if you really want, it takes about 10s of reverse engineering work to read or swap the keys. Won't do you any good though unless you constantly MITM yourself.
Re:SS7 MITM Attack Against WhatsApp and Telegram by geocar on Friday May 13, 2016 @05:01PM (#11693214)
How exactly do I download my keys from WhatsApp?
Re:SS7 MITM Attack Against WhatsApp and Telegram by Fry-kun on Tuesday May 10, 2016 @07:40PM (#11671568)
So many people confuse encryption with authentication... Suppose you're a whistleblower trying to contact a reporter using WhatsApp. You've never met in person, so you send a message over WhatsApp, "Hello!" The reporter replies, "Hi!" You now have a big problem -- you don't KNOW that it was the reporter who replied to you, it might've been a nefarious 3rd party who already intercepted your original message and is now replying. WhatsApp's only mechanism for checking if that's the case is comparing some numbers out-of-band (e.g. in person, with QR codes). What's even more tragic is that WhatsApp doesn't track/show which contacts you may have already authenticated.. good luck remembering which of your 100 contacts are verified
Re:SS7 MITM Attack Against WhatsApp and Telegram by Royalaid on Tuesday May 10, 2016 @07:58PM (#11671668)
Just curious, how would you solve the authentication problem? I worked on a semester long project building decentralized chat and found this as well as bootstrapping to a node that you could trust be some of that hardest problems to solve because it always boiled down to just trust.
Re:SS7 MITM Attack Against WhatsApp and Telegram by baby on Tuesday May 10, 2016 @09:16PM (#11671980)
As he said, first you should encourage your users to authenticate one others by out-of-bands means. Then display who you truly authenticated. This can be gamified to encourage users doing it.

Now to authenticate a user out of band you can just have a shared secret that both users need to enter. You can share that secret via another channel in hope that it is not man-in-the-middled (or at least not by the same attacker). But then it is close to a trust on first use (TOFU) security: often "good enough", sometimes not (SMS).

Now if you're looking for cool ways to force the user to do it IRL, there are things like Bluetooth and NFC that would help.

There are also easier ways to do that, as ashitlerferad says, that we use for larger problems like mail and www: web of trust (WOT) and public key infrastructure (PKI).

Re:SS7 MITM Attack Against WhatsApp and Telegram by sigmar on Tuesday May 10, 2016 @08:14PM (#11671731)
I'd offer up keybase.io as a workable way to solve this authentication problem. On keybase I can authenticate my identify by leveraging social media and public identify proofs across multiple services.
Re:SS7 MITM Attack Against WhatsApp and Telegram by viraptor on Tuesday May 10, 2016 @09:56PM (#11672134)
Out of band, very public signatures. Of course this only works for fairly known people, but the reporter example could be easily covered by that solution. Publishing signatures with every article for example.

This fails for two anonymous people... but that's "by design" of being anonymous.

Re:SS7 MITM Attack Against WhatsApp and Telegram by userbinator on Tuesday May 10, 2016 @10:29PM (#11672249)
This fails for two anonymous people... but that's "by design" of being anonymous

It's almost like a tautology: by definition, someone who is anonymous has no identity to authenticate.

Re:SS7 MITM Attack Against WhatsApp and Telegram by ashitlerferad on Tuesday May 10, 2016 @09:03PM (#11671938)
There are several ways:

Central authorities: SSL, DNSSEC

TOFU: SSH, OTR etc

Web of trust: OpenPGP

Not sure, but I think Signal/WhatsApp a combination of central authority, TOFU and in-person 2 party verification, but no web of trust.

Re:SS7 MITM Attack Against WhatsApp and Telegram by ImACue on Tuesday May 10, 2016 @11:24PM (#11672457)
Is there a reason the Socialist Millionaire protocol isn't included in WhatsApp by default?

It can be handy to ask questions such as "Where did we go last Friday", perhaps even allowing for users to ask multiple questions for added confidence.

[1] https://en.wikipedia.org/wiki/Socialist_millionaires

Re:SS7 MITM Attack Against WhatsApp and Telegram by kpcyrd on Tuesday May 10, 2016 @08:46PM (#11671871)
For anybody interested in this, search for initial trust problem.
Re:SS7 MITM Attack Against WhatsApp and Telegram by dang on Tuesday May 10, 2016 @02:04PM (#11669226)
Ok, we changed the title in an attempt to make it less misleading. If anybody suggests a better (more accurate and neutral) title, we can change it again.
Re:SS7 MITM Attack Against WhatsApp and Telegram by maesho on Tuesday May 10, 2016 @02:39PM (#11669502)
And that is why Telgram offers two factor authentication. https://twitter.com/durov/status/726104566899609600
Re:SS7 MITM Attack Against WhatsApp and Telegram by wglb on Tuesday May 10, 2016 @09:51PM (#11672111)
How does two factor authentication address they don't use end to end encryption, and instead store the entire plaintext history of every message you've ever sent or received?
Re:SS7 MITM Attack Against WhatsApp and Telegram by snowpanda on Wednesday May 11, 2016 @04:23AM (#11673485)
>This kind of attack is devastating for Telegram

Security flaws are found with any software on a regular basis. To say that it will 'devastate' a project is completely blown out of proportion. The first TrueCrypt had a lot of flaws and it still were to become the most popular encryption software. The whole point of updates is that something can be improved when flaws are found.

>For WhatsApp, everything is end to end encrypted by default, so the attacker doesn't get any message history. All of the contacts for the MITM'd user also get a notice that their contact's security code changed, and a comparison will fail to match. This is exactly what E2E was built to protect against.

All of this 'safety' is rendered false hope when we can't conclude that WhatsApp isn't backdoored. Trusting a closed source project by Facebook is completely nonsensical imo.

Re:SS7 MITM Attack Against WhatsApp and Telegram by nebulous1 on Wednesday May 11, 2016 @01:35PM (#11677366)
Actually the changed identity notification in WhatsApp is turned off by default, so make sure you turn it on.