News for hackers. Stuff that matters.
Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by mjg59 on Saturday March 11, 2017 @02:42AM (#13844676)
It's not hard to demonstrate that apps are performing end-to-end encryption even if you don't have access to the source code. Reverse engineering this stuff is really pretty straightforward.
Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by dingaling on Saturday March 11, 2017 @02:49AM (#13844695)
It's not just that they're performing encryption, but also assurance that (1) they're using the keys they declare and (2) they aren't sending other data over unannounced side-channels.

You can't just insert yourself in the message stream since the client and server use pinned, mutual certificate authentication. So you have to start from first-principles and step through decompiled code.

Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by mjg59 on Saturday March 11, 2017 @03:17AM (#13844767)
> they're using the keys they declare

I'm not sure what you mean here. It's easy to identify where the key comes from and whether the ciphertext is what you'd expect it to be in that case.

> they aren't sending other data over unannounced side-channels.

It's not straightforward to determine that even if you do have the source - you could imagine an implementation that deliberately leaks information through timing details without that being obvious from the code. At some point you have to trust that authors aren't doing something awful.

> So you have to start from first-principles and step through decompiled code.

Well no, because the first thing you can do there is just disable certificate pinning. But really, the difficulty of stepping through decompiled code is vastly overrated.

Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by fidget on Saturday March 11, 2017 @03:17AM (#13844768)
Unannounced side channels seems like by far the easiest thing to deal with there; send a 2mb file, observe network patterns, raise an eyebrow if 2mb gets sent over a channel that you didn't expect.

As for using the correct key, dismantle the signal message envelope until you get your blob of encrypted message. Then see if the same blob appears on the target device. Multiple keys? I imagine either correlating message size and network traffic (encrypting stuff twice could well show up), or going at it with a debugger.

Which is really the answer to all of these questions instead of any network shenanigans. You root your phone and attach a debugger, then step through what signal is doing.

Not a security researcher, never reverse engineered anything for security reasons in my life.

Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by snovv_crash on Saturday March 11, 2017 @03:32AM (#13844792)
What if it only does it at a much later point in time, or slowly via adding data to other comms channels? What if it only does it for small payloads by padding packet sizes to 1k? There are so many ways to get around this, unless we have open source and reproducible builds.
Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by fidget on Saturday March 11, 2017 @03:39AM (#13844802)
Right, which is why I said those blackbox methods were pretty rubbish. You step through it with a debugger.
Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by ThrustVectoring on Saturday March 11, 2017 @04:10AM (#13844867)
The point isn't to nab every thought-to-be-encrypted conversation on Signal. The point is to evade detection while compromising high-value message streams. Stepping through with a debugger is never going to execute the feature-flagged "pwned" mode.
Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by jimmies on Saturday March 11, 2017 @04:11AM (#13844870)
>Unannounced side channels seems like by far the easiest thing to deal with there; send a 2mb file, observe network patterns, raise an eyebrow if 2mb gets sent over a channel that you didn't expect.

Facebook distributes your 2MB pic to many people, does it technically require more than 2MB of your upload bandwidth? No. You only need to upload it once to their server.

Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by 7952 on Saturday March 11, 2017 @03:42AM (#13844810)
This is actually an area where web apps have some advantage. You can inspect the network traffic using developer tools. You have cross domain rules that restrict traffic. And the encryption is performed by the browser rather than in the apps black box.
Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by ynezz on Saturday March 11, 2017 @05:04AM (#13844972)
You can do whatever you want with your system, if you've complete control. So even pinned certificates are not a big deal. You can read the messages unencrypted or you can remove the certificate checking in the code for example.
Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by imaginenore on Saturday March 11, 2017 @06:51AM (#13845161)
It's much harder to demonstrate the app doesn't have a backdoor, or doesn't leak your data in some obscure way, or doesn't weaken the entropy when creating the keys.
Re:What the CIA WikiLeaks Dump Tells Us: Encryption Works by whycombo1 on Sunday March 12, 2017 @01:27PM (#13851795)
While you can verify that the software is in fact encrypting the data and not sending anything it should not send, you can never know who has access to the encryption keys. They are created by WhatsApp, who knows how and where they store them and who can access them.