News for hackers. Stuff that matters.
Re:Facebook to integrate the infrastructure for WhatsApp, In... by bouncing on Friday January 25, 2019 @10:22AM (#18998685)
> if you let someone else broker the key exchange, you trust them implicitly.

Sort of.

Yes, they could serve you a MITM key, but it would be easily discoverable when you compare security codes in the client. And since the client is widely distributed on major app stores, it would be very risky to ship a compromised client.

Ultimately key exchange is a hard problem to solve. Notice that Signal doesn't do anything that much different; Signal does the key exchange and unless you verify each user's key offline, you have to trust it. Both WhatsApp and Signal have an option to display a notice when keys change, but Signal's is on by default.

Overall it's still pretty damn good. WhatsApp is perhaps the only major form of consumer communication where, by default and with no opt-out, every single chat really is fully encrypted using a widely respected protocol (libsignal). That's not nothing.

Re:Facebook to integrate the infrastructure for WhatsApp, In... by feanaro on Friday January 25, 2019 @12:40PM (#19000284)
> Notice that Signal doesn't do anything that much different; Signal does the key exchange and unless you verify each user's key offline, you have to trust it.

Let's not forget Signal is FOSS and has reproducible builds (https://signal.org/blog/reproducible-android/). This makes it far easier to trust its verification code.

Re:Facebook to integrate the infrastructure for WhatsApp, In... by Leace on Friday January 25, 2019 @12:56PM (#19000460)
Unfortunately verification of reproducible builds is not baked in the OS (Android/iOS) so it's still possible to target someone with malicious update. When vast majority of people don't verify the build it's possible that the attack would go unnoticed.

Another interesting extension of reproducible builds: https://wiki.mozilla.org/Security/Binary_Transparency

Re:Facebook to integrate the infrastructure for WhatsApp, In... by est31 on Friday January 25, 2019 @07:55PM (#19003990)
> so it's still possible to target someone with malicious update

I'm no Android or iOs dev, so I might be wrong, but to my knowledge there is no feature to push an app update specifically to a narrow set of devices?

So at the very least, third parties (Apple/Google) would have to be involved in such an attack. This removes some entities from the list that could create an attack.

Also, Apple/Google have a big reason not to play such games. Their app stores are partially so popular because they, as companies, are trusted. Apple/Google would only do this if they'd be legally required to. IF they were involved, even against their will, this would mean tremendous risk to trust in these companies, meaning risk to the stock. And for a publicly traded company, there is no bigger motivator. Apple/Google would get out all the lobbying power they have, trying to fight off whatever coercion tool the US government uses against them to make them comply.

Even if there'd be no opposition from Apple or Google, people outside would notice sooner or later that they've got malicious updates. If they use it once or twice, they might go undetected, but if governments or other entities start using this as a vector repeatedly, it will get to the public.

This doesn't mean that I think that these issues aren't important. Reproducible builds, binary transparency, gossip protocols, all these things are very important areas to invest research in, but right now they aren't a vector that is being abused on observable scales.

Re:Facebook to integrate the infrastructure for WhatsApp, In... by Leace on Saturday January 26, 2019 @04:24PM (#19008586)
> I'm no Android or iOs dev, so I might be wrong, but to my knowledge there is no feature to push an app update specifically to a narrow set of devices?

Yes, it's possible to target "narrow set of devices" by using Device Catalog. An excerpt from the ToS:

> Google Play Console Device Catalog Terms of Service

> By using the device catalog and device exclusion tools in the Play Console (“Device Catalog”), You consent to be bound by these terms, in addition to the Google Play Developer Distribution Agreement (“DDA”). If there is a conflict between these terms and the DDA, these terms govern Your use of the Device Catalog. Capitalized terms used below, but not defined below, have the meaning ascribed to them under the DDA.

> 1. The Device Catalog allows You to review a catalog of the Devices supported by Your app and search the Devices by their hardware attributes. It also allows You to exclude specific Devices that are technically incompatible with Your app.

Re:Facebook to integrate the infrastructure for WhatsApp, In... by feanaro on Friday January 25, 2019 @01:18PM (#19000681)
I agree, targeted compromise remains feasible.

I wasn't aware of Binary Transparency, thanks! A cool idea, akin to Certificate Transparency.

Re:Facebook to integrate the infrastructure for WhatsApp, In... by Leace on Saturday January 26, 2019 @04:25PM (#19008590)
Yes, it's funny that you mention CT because BT actually uses CT under the hood :)
Re:Facebook to integrate the infrastructure for WhatsApp, In... by crankylinuxuser on Friday January 25, 2019 @12:44PM (#19000334)
Yes, signal is better than FB or sms.. But the whole requiring phone number puts a nail in it on my end.

So Signal can learn who talks with whom via requests going through their LDAP-like server. They can get an idea how long calls are, and if it was a vid or audio call. They know the times of communication.

You know, they can see the metadata. When's the last time we had problems with metadata? The POTS network? Yep.

And you're indeed right the client has reproducible builds. But the server side certainly doesn't. And we have no way to ascertain that.

Re:Facebook to integrate the infrastructure for WhatsApp, In... by feanaro on Friday January 25, 2019 @01:16PM (#19000633)
> You know, they can see the metadata. When's the last time we had problems with metadata? The POTS network? Yep.

Yes, metadata is a problem, particularly with calls. However, Signal recently added the sealed sender (https://signal.org/blog/sealed-sender/) feature which makes the server blind to who the sender of a message is.

> And you're indeed right the client has reproducible builds. But the server side certainly doesn't.

That's true, but the server side is much less important when it comes to cryptographic assurances.

Signal is definitely not a panacea, but by many counts it's better than anything else that currently exists and has any semblance to something a typical user can use.

Re:Facebook to integrate the infrastructure for WhatsApp, In... by Forbo on Friday January 25, 2019 @07:08PM (#19003812)
For what it's worth, they don't retain any of that metadata. This has been tested in court:

> We’ve designed the Signal service to minimize the data we retain about Signal users, so the only information we can produce in response to a request like this is the date and time a user registered with Signal and the last date of a user’s connectivity to the Signal service.

https://signal.org/bigbrother/eastern-virginia-grand-jury/

This was even before sealed sender, so if anything my confidence in the Signal Foundation has only increased.

Re:Facebook to integrate the infrastructure for WhatsApp, In... by bronco21016 on Friday January 25, 2019 @05:34PM (#19003253)
Everytime Signal is brought up someone just has to chime in saying ‘we must abandanon Signal at all costs because metadata’. The metadata limitation is well known and if metadata interception is a problem for your threat model there are steps to obscure your identity or you should use a different tool. For the 99% of other cases where I just don’t want anyone snooping on my conversation with friends and family but don’t care that people know I’m obviously conversing with my friends and family Signal is great. Let’s not throw Signal out just because the metadata is still there.
Re:Facebook to integrate the infrastructure for WhatsApp, In... by StudentStuff on Friday January 25, 2019 @07:48PM (#19003969)
Briar is good if metadata is a prime concern, but even Matrix, XMPP and email have very similar metadata problems to Signal, plus contact discovery problems as you can't casually gather that your friend or relative is on the platform (phone numbers mostly solve this).
Re:Facebook to integrate the infrastructure for WhatsApp, In... by e12e on Friday January 25, 2019 @07:56PM (#19003994)
If metadata is good enough to drone strike weddings, it's probably good enough to throw you in a concentration camp too. And since data never dies, it might be enough to throw your grand kids in concentration camps.

Now, protecting everyone's meta data is hard (probably impossible), and I don't mean to be defeatist - but "it's just metadata" doesn't sit well in a post Snowden world. We know all large intelligence agencies hoover up this stuff.

And we also know that agencies are made up of people, and some people abuse their access.

Re:Facebook to integrate the infrastructure for WhatsApp, In... by bronco21016 on Friday January 25, 2019 @09:04PM (#19004281)
I certainly don’t mean to discount the importance of metadata. I specifically mentioned ensuring Signal fits your threat model.

To suggest that metadata of communication over Signal between my spouse and I will be used against my grand kids one day is a bit absurd though. Of course there’s tons of metadata connecting my spouse and I. It would be more suspicious if there wasn’t.

Re:Facebook to integrate the infrastructure for WhatsApp, In... by e12e on Saturday January 26, 2019 @05:05AM (#19005676)
Spouse, "family" and friends are different goalposts. Mapping friends and family is AFAIK a key part of who gets bombed by the cia. Sure, if your spouse is found to be an "enemy of the state" under a new totalitarian government - your immediate family will have problems.

If a friend turns out to be union organizer, you might be banned from jobs, if the government decides to collude with employers (again).

Re:Facebook to integrate the infrastructure for WhatsApp, In... by jwr on Friday January 25, 2019 @06:06PM (#19003482)
You do realize that this "LDAP-like server" you're describing does not store the phone number, right?
Re:Facebook to integrate the infrastructure for WhatsApp, In... by ReptileMan on Friday January 25, 2019 @02:24PM (#19001479)
Threema is ok. No number. But paid.
Re:Facebook to integrate the infrastructure for WhatsApp, In... by firebird84 on Friday January 25, 2019 @10:28AM (#18998740)
Just clarifying something you alluded to: Signal claims that Whatsapp actually uses the same protocol, so naturally the key exchange is very similar.
Re:Facebook to integrate the infrastructure for WhatsApp, In... by wyldfire on Friday January 25, 2019 @11:30AM (#18999515)
> Yes, they could serve you a MITM key, but it would be easily discoverable

Like a lot of things it boils down to your threat model. If the broker or a state are your adversary, it wouldn't need to be a general design feature to behave this way but it could instead target you at the time of key exchange. Not an implausible scenario for reporters and their sources, e.g.

Those folks are especially vulnerable because they might be led to believe claims of "end to end encryption". Put that together with those default settings and interception and impersonation can happen right under your nose.

Re:Facebook to integrate the infrastructure for WhatsApp, In... by kovek on Friday January 25, 2019 @12:58PM (#19000471)
I'm confused what does the client have to do with this. My understanding of these end to end encryption models is with public/private keys. You (Facebook, Whatsapp, or the user) generate a private and a matching public key. You distribute the pair of keys to the user who'd like to do communication. The user should not share their private key, not even to Facebook or Whatsapp. The user publishes his public key so other can encrypt messages using the user's public key and send their messages to said user. The user then uses the private key to decrypt the encrypted message. If Facebook keeps a copy of the private key, then they could read the encdypted message.

Maybe the client itself is generating the keypair. In this case, the only issue I can see is the following: when the user wants to communicate with a friend, how can they be sure that the profile they are sending messages to (as displayed by their user interface and communicated by Facebook or Whatsapp or the friend's server) actually do belong to their friend?

I'm confused what you were talkimg about, with the client build possibly being a trojan

Re:Facebook to integrate the infrastructure for WhatsApp, In... by indigo945 on Friday January 25, 2019 @01:17PM (#19000651)
>Maybe the client itself is generating the keypair. In this case, the only issue I can see is the following: when the user wants to communicate with a friend, how can they be sure that the profile they are sending messages to (as displayed by their user interface and communicated by Facebook or Whatsapp or the friend's server) actually do belong to their friend?

That's exactly the point though, how can they be sure in the event that their client (on the author's side) is a trojan? If the "author" client is deliberately compromised, there is no longer any reasonable means of ensuring that the public key the author uses to encrypt the messages is actually equal to the public key the recipient published.

Of course, this point is very much riddled with paranoia: it is exceedingly unlikely that the WhatsApp client deliberately contains such a trojan, especially since there are much easier ways of gaining access to user's messages (such as compromising their firmware with some form of rootkit, possibly installed via the baseband, and then simply sending copies of the local message cache to the NSA).

Re:Facebook to integrate the infrastructure for WhatsApp, In... by nnd on Saturday January 26, 2019 @07:45AM (#19006058)
The only way to know for sure is to verify your friend's signature in offline.
Re:Facebook to integrate the infrastructure for WhatsApp, In... by speeq on Friday January 25, 2019 @02:29PM (#19001535)
How is WhatsApp using libsignal without being obligated to disclose their source code - as it's licensed under GPL?
Re:Facebook to integrate the infrastructure for WhatsApp, In... by groestl on Friday January 25, 2019 @02:57PM (#19001867)
If WhatsApp uses a version of libsignal whose copyright is solely in the hands of Open Whisper Systems, OWS can have a separate deal with WhatsApp which does not involve the GPL. AFAIK, this is already done to get Signal into the App Store (IANAL though).
Re:Facebook to integrate the infrastructure for WhatsApp, In... by StudentStuff on Friday January 25, 2019 @07:52PM (#19003979)
Moxie was brought on as a contractor at WhatsApp iirc, the code wasn't just purchased. While WhatsApp uses the same cryptographic architecture its likely they didn't just drop in libsignal (as libsignal is set up to tie into Signal's servers, rather than just be an encryption library like OMEMO or olm).

If your looking to build software that integrates with Signal, then libsignal is great (having built a few things with it).

Re:Facebook to integrate the infrastructure for WhatsApp, In... by madeofpalk on Friday January 25, 2019 @10:28AM (#18998737)
iMessage, though operating at a smaller scale than WhatsApp
Re:Facebook to integrate the infrastructure for WhatsApp, In... by bouncing on Friday January 25, 2019 @11:09AM (#18999187)
Indeed! iMessage should get an honorable mention. Having lived outside of the US for a few years, sometimes I forget it exists, because here even people who both have iPhones use WhatsApp. iMessage deserves an honorable mention, but with some caveats. As I recall and quickly Googled:

There have been some concerns with their security:

https://www.schneier.com/blog/archives/2016/03/imessage_encr...

https://www.pandasecurity.com/mediacenter/technology/need-kn...

https://www.tomshardware.com/news/imessage-weak-encryption-m...

Additionally, iMessage doesn't have any means of out-of-band key verification, so you actually have to trust Apple to faithfully exchange keys and there's no way to verify that it's done so.

iMessage also tells you after a message is sent (via the color of a bubble) whether the recipient received it using iMessage. That's not very good assurance if, say, you're messaging a journalist in an authoritarian country. Will it go out over SMS or iMessage? You can find out, but even a little bit of doubt about that can have significant consequences.

I'm glad iMessage does do encryption like it does, but it's no replacement for Signal and WhatsApp uses libsignal for its encryption.

Re:Facebook to integrate the infrastructure for WhatsApp, In... by nathankunicki on Friday January 25, 2019 @12:25PM (#19000131)
You can turn off the SMS fallback to ensure it gets delivered via iMessage.
Re:Facebook to integrate the infrastructure for WhatsApp, In... by tome on Friday January 25, 2019 @11:19AM (#18999356)
> you actually have to trust Facebook

Do you mean "you have to trust Apple"? I don't see what Facebook has to do with iMessage.

[EDIT: Now corrected above. Thanks!]

Re:Facebook to integrate the infrastructure for WhatsApp, In... by bouncing on Friday January 25, 2019 @12:08PM (#18999935)
Think-o.
Re:Facebook to integrate the infrastructure for WhatsApp, In... by deca6cda37d0 on Friday January 25, 2019 @11:32AM (#18999537)
The colour of the send button tells you if it’s an iMessage or a text message.
Re:Facebook to integrate the infrastructure for WhatsApp, In... by reaperducer on Friday January 25, 2019 @12:38PM (#19000269)
Yes, and no. If you send a message to someone you've most recently conversed with on iMessage, it will be blue. But if iMessage can't deliver the message, it will fall back to using text messages. I believe on the next attempt, the button will be green, but I don't have a way to test that right now.
Re:Facebook to integrate the infrastructure for WhatsApp, In... by briandear on Friday January 25, 2019 @02:23PM (#19001467)
No, it will ask you if you want to send as text. It doesn’t do it without you explicitly allowing it.
Re:Facebook to integrate the infrastructure for WhatsApp, In... by reaperducer on Friday January 25, 2019 @04:23PM (#19002606)
As recently as last weekend, I had it go through as green instead of blue without asking because the recipient was in a no-data area. Perhaps because I'd previously approved green messages for that person.
Re:Facebook to integrate the infrastructure for WhatsApp, In... by polskibus on Friday January 25, 2019 @01:22PM (#19000726)
Didn't China receive special access to iMessage from Apple?
Re:Facebook to integrate the infrastructure for WhatsApp, In... by briandear on Friday January 25, 2019 @02:22PM (#19001458)
If iCloud backups are enabled, then, yes, keys are in China. If you aren’t using iCloud backups, then no.
Re:Facebook to integrate the infrastructure for WhatsApp, In... by tpowell on Friday January 25, 2019 @08:33PM (#19004154)
They began letting another company handle iCloud data in China—one that complies with Chinese law[1]. Same-same, but very different.

[1]https://support.apple.com/en-us/HT208351

Re:Facebook to integrate the infrastructure for WhatsApp, In... by mtgx on Friday January 25, 2019 @12:48PM (#19000385)
> Yes, they could serve you a MITM key, but it would be easily discoverable when you compare security codes in the client.

Who does that for every conversation? Or even once per week/contact?

Re:Facebook to integrate the infrastructure for WhatsApp, In... by bronco21016 on Friday January 25, 2019 @06:14PM (#19003533)
Or use a client like Signal that tells you when the key has changed.
Re:Facebook to integrate the infrastructure for WhatsApp, In... by exacube on Friday January 25, 2019 @01:01PM (#19000492)
security researchers
Re:Facebook to integrate the infrastructure for WhatsApp, In... by vinay_ys on Friday January 25, 2019 @01:24PM (#19000744)
So put them in a cohort and treat them differently than the rest of the users? Personalised key exchange? Possibilites are endless. If you don't trust the closed source operator here, then that end to end encryption should mean nothing for you.