News for hackers. Stuff that matters.
Re:WhatsApp announces key transparency being added to WhatsApp by snowboarder63 on Thursday April 13, 2023 @09:06AM (#35554816)
WhatsApp announced that they’re adding key transparency to enhance end-to-end encryption verification within their suite of apps. There’s a blog post going into details on the engineering blog including announcing that the core logic for managing an auditable key directory is being open-sourced on Github: https://github.com/facebook/akd
Re:WhatsApp announces key transparency being added to WhatsApp by rvnx on Thursday April 13, 2023 @10:40AM (#35556193)
The problem is not technical, FB could write anything, the security of the system is as weak as its weakest link and the problem is way behind the computer.

https://xkcd.com/538/

The weakest link here, is that Facebook is dependent on a US law.

So, if US law permits or requests in some way interception of communications, or that operators have to report certain activities, then you are done.

Of course, a random user won't have its dog food or gardening communications intercepted, but once you trigger certain patterns, welcome to the new "user trials / feature flags / beta".

And this is the case if the client is not already backdoored in the main deployment line.

(but think about it, how easy it would be to decrypt Mega.nz file, for example in a real-life scenario. One push of code, and done).

Not saying it specifically for WhatsApp, it's valid for any US-based app.

I'd be really surprised that Zuck takes responsibility and ends up in jail because he refuses to execute a legal request regarding imminent terrorism attack (risking penal risk and being charged as helping the criminals, well, there's a plus; that's more time to spend in the Metaverse).

The most likely scenario, is that the US-gov is sovereign in their country and that you have to respect the laws if you want you company to continue.

Same with China.

Re:WhatsApp announces key transparency being added to WhatsApp by russell_h on Thursday April 13, 2023 @11:02AM (#35556537)
You're describing exactly the problem that key transparency helps to solve.

With this rolled out, the WhatsApp app itself will be able to detect, by default without any manual verification, if FB attempts to MITM the connection.

While this doesn't make it technically impossible for Facebook to modify the app and servers, it does make it organizationally almost impossible to do so secretly. Such a move would require the involvement of numerous individuals across multiple teams and would be noticeable to security researchers through changes to the app.

This approach is taking off in a bunch of similar problem spaces (web PKI, code signing, etc), so very exciting to see it applied here.

Randomly, and somewhat weirdly, Facebook actually offered one of the first Certificate Transparency monitoring tools, which made it possible to monitor all certificates issued for your domain using a very similar approach: https://www.facebook.com/notes/3497286220327506/?paipv=0&eav...

Re:WhatsApp announces key transparency being added to WhatsApp by rvnx on Thursday April 13, 2023 @11:09AM (#35556663)
Not really ?

I don't see what prevents the app from pushing a decoded copy of the conversation ?

Even a variant of Skype was caught doing such (we only know about it because they left the server which had the raw logs completely open).

And still, Skype is very secure/encrypted/blablabla; which is true, but within the borders of local regulations.

https://web.archive.org/web/20090210230204/http://www.inform...

The end comment/advice from the US part is even a bit funny: "travelers should assume that all communications are monitored."

Re:WhatsApp announces key transparency being added to WhatsApp by russell_h on Thursday April 13, 2023 @11:21AM (#35556855)
You're making my point: some Chinese Skype variant did this, back in 2009, and got caught.

There's just no way, in real life, for Facebook to add what you're describing to one of the most prominent messaging apps in the world without somebody noticing.

I'm not here to tell you that your WhatsApp messages are perfectly secure. If the CIA wants to read your messages they'll probably just hit you with the wrench instead of some FB exec. But I do think that transparency logs are deeply under-appreciated for their ability to make undetected mass-surveillance dramatically more challenging.

Re:WhatsApp announces key transparency being added to WhatsApp by crote on Thursday April 13, 2023 @11:45AM (#35557221)
The trick is to push a modified version only to the few clients you want to attack. Use it sparingly and you won't get caught.
Re:WhatsApp announces key transparency being added to WhatsApp by rvnx on Thursday April 13, 2023 @11:48AM (#35557268)
and most of all, do not forget the logfiles on an open server (it was their mistake, otherwise it would have been fine I think)
Re:WhatsApp announces key transparency being added to WhatsApp by palata on Thursday April 13, 2023 @12:55PM (#35558425)
Or just hack the phone of those few clients with another attack vector. Doesn't mean that security is entirely useless. It depends on the threat model.
Re:WhatsApp announces key transparency being added to WhatsApp by buran77 on Thursday April 13, 2023 @11:53AM (#35557358)
> There's just no way, in real life, for Facebook to add what you're describing to one of the most prominent messaging apps in the world without somebody noticing

Your point moved from "key transparency is the defense" to "someone will notice". But if your defense is the hope of "someone noticing" you're in for a big surprise. Sometimes things go unnoticed. Look no further than OpenSSL, open source, used by billions, deployed by companies worth as much as small countries, and yet nobody noticed Heartbleed for years.

So I'll be very cynical that some development flag targeting a handful of people in an app like WhatsApp and then is removed will be so noticeable that it's a strong defense.

Re:WhatsApp announces key transparency being added to WhatsApp by palata on Thursday April 13, 2023 @12:54PM (#35558412)
I think you are trying to say "it's never 100% secure", and the parent agrees with you. The parent is just saying "this is making it more secure (but not 100% secure)".
Re:WhatsApp announces key transparency being added to WhatsApp by mschuster91 on Thursday April 13, 2023 @11:57AM (#35557427)
> There's just no way, in real life, for Facebook to add what you're describing to one of the most prominent messaging apps in the world without somebody noticing.

That assumes somebody is digging through each update and the thousands of classes. FFS the OG Facebook app was already blowing past the limits of Android in 2013 [1], and the current Whatsapp app isn't much better - just look at the current APK file:

    2023-04-12 11:38:58 .....      2578508      1171345  classes.dex
    2023-04-12 11:39:04 .....     13312588      6020223  classes2.dex
    2023-04-12 11:39:08 .....      7671448      3310145  classes3.dex
    2023-04-12 11:39:08 .....      2118352       945166  classes4.dex
25MB of already compressed Dalvik code, probably double that if you restore it to Java class files and triple to quadruple that in Java source files. It's impossible to audit that there is no routine pushing keys to, say, the usual analytics backend they use - and to make it worse, according to APKMirror, they push updates every few days [2].

Although my biggest question is... it's a fucking messenger app. Why does it produce a larger binary content than a full-blown Linux kernel?!

[1] https://engineering.fb.com/2013/03/04/android/under-the-hood...

[2] https://www.apkmirror.com/uploads/?appcategory=whatsapp

Re:WhatsApp announces key transparency being added to WhatsApp by qtzfz on Thursday April 13, 2023 @03:41PM (#35561082)
>Although my biggest question is... it's a fucking messenger app. Why does it produce a larger binary content than a full-blown Linux kernel?!

Because it does so much more than messaging. Also, UI code is generally very verbose.

Re:WhatsApp announces key transparency being added to WhatsApp by mschuster91 on Thursday April 13, 2023 @05:25PM (#35562266)
I know. But still, that amount of compiled code is insane.
Re:WhatsApp announces key transparency being added to WhatsApp by trifurcate on Thursday April 13, 2023 @05:47PM (#35562528)
Also, conversely, the kernel doesn't do that much. Most of the Linux kernel source consists of device drivers, which compile to modules rather than get bundled into vmlinuz. Many of these modules are also rarely built if ever. The kernel itself really is a pretty small fraction of the complete software bundle that makes a Linux system functional.
Re:WhatsApp announces key transparency being added to WhatsApp by dheera on Thursday April 13, 2023 @11:13AM (#35556719)
Exactly, without Zuck opening the protocol and sanctioning the use of open-source clients it is not meaningful.
Re:WhatsApp announces key transparency being added to WhatsApp by rvnx on Thursday April 13, 2023 @11:22AM (#35556866)
Somewhere I think this is still possible. The engineers behind WhatsApp seem to be very talented, and they may be able to convince Zuck that an open client would increase trust in Meta's brands, and increase usage (which can then be used to promote other Meta's products).

If they keep the server-side closed, it's totally fair I think.

Re:WhatsApp announces key transparency being added to WhatsApp by palata on Thursday April 13, 2023 @12:56PM (#35558451)
Or open source alternatives will pick up their work, and the WhatsApp engineers will probably be happy about it.
Re:WhatsApp announces key transparency being added to WhatsApp by btown on Thursday April 13, 2023 @11:46AM (#35557240)
There are also tons of ways to exfiltrate data through known channels in ways that are difficult for security researchers to distinguish from otherwise secure app analytics code.

A crash/exception logging system, say, might appear to researchers to anonymize data, but it would be very possible for code to be written that happens to raise a mundane exception when specific users or geofences see specific words on screen, in a way where that list of users/geofences/words could be controlled by non-technical teams. The log message itself doesn't even need to carry sensitive data; its existence alone, when the trigger conditions are known, can be used to carry out a highly targeted attack.

Even open-source systems can be vulnerable to this: see e.g. https://github.com/signalapp/Signal-iOS/blob/eaed4da06347a3a... and consider the ways it might be possible for a small group of people at Signal to cause a specific set of messages to be seen as corrupt without raising any flags to the community auditing the code.

Of course, lack of visibility into runtime errors can lead to vulnerabilities as well. I don't think the solution is for us as a community to advocate for removing all error analytics in distributed systems. But we can't ever forget that: all analytics surfaces are attack surfaces.

Re:WhatsApp announces key transparency being added to WhatsApp by kmac_ on Thursday April 13, 2023 @11:27AM (#35556934)
This solves a real issue. Key transparency for SSL certificates introduced years ago by Google surfaced a lot of misissued certificates and fixed large hole in the whole system. Of course, this is for WhatsApp and the impact is smaller, but still. Congrats to Meta team.
Re:WhatsApp announces key transparency being added to WhatsApp by EGreg on Thursday April 13, 2023 @11:35AM (#35557058)
Actually, this is exactly what Pavel Durov did when Russian authorities asked him to reveal who helped organize the Maidan protests in 2013/2014.

(Besides these guys I mean: https://www.ndi.org/eurasia/ukraine)

And he just posted the middle finger on his site.

Pretty soon he started receiving the standard “tax evader” treatment, his shareholders pushed him out and he fled the country started Telegram.

Pavel is a true libertarian who’s stood for his beliefs. Unlike Moxie who claims he is an “anarchist”, Pavel walked the walk.

When he started Telegram, he pissed off his US investor who got heat for Telegram being used by ISIS to communicate. The investors were pissed off that they never made a profit on Telegram and was mentally associated with helping ISIS. Although Pavel eventually did take action: https://www.wsj.com/articles/telegram-app-tackles-islamic-st...

Pavel also claims his team was approached by the CIA multiple times and they successfully resisted it. Telegram offices are nowhere to be found in Dubai: https://m.youtube.com/watch?v=Pg8mWJUM7x4

That is how you run a free speech absolutist social network that governments all want to control. Telegram is probably the most secure and trusted centralized social network (with Signal a distant second). But we don’t have to trust Pavel or Moxie to be our “last line of defense.”

This was my response to Moxie’s critique of Web3 and decentralization:

https://community.intercoin.app/t/web3-moxie-signal-telegram...

Re:WhatsApp announces key transparency being added to WhatsApp by sgjohnson on Thursday April 13, 2023 @11:48AM (#35557277)
So why the fuck Telegram is not e2e encrypted by default, and why are group chats not e2e encrypted?

Not to mention that even when chats are e2e encrypted, they are encrypted using their proprietary algorithm?

Re:WhatsApp announces key transparency being added to WhatsApp by EGreg on Thursday April 13, 2023 @12:10PM (#35557671)
That’s like Mehdi Hassan nitpicking small factual inaccuracies in the Twitter filea last week and ignoring the main discussion with Matt Taibbi about government censorship around the world.

Look, if people want to encrypt their chats on Telegram, they start a secret chat. That’s how it should be. Why should it be the default? Because you think people are idiots?

If I make a secret chat on Telegram, I trust it more than a default chat on Signal. Both are good, but one company is much harder to pressure than another.

And this is all a moot point - like arguing which homeless person is richer. If you want real privacy and control — simply communicate without using the infrastructure and software provided by centralized corporations!

Re:WhatsApp announces key transparency being added to WhatsApp by robryk on Thursday April 13, 2023 @02:42PM (#35560138)
> Look, if people want to encrypt their chats on Telegram, they start a secret chat. That’s how it should be. Why should it be the default? Because you think people are idiots?

Because everyone is an idiot once in a while (just after waking up, when drunk, when stressed, when sick, ...). Also, because the very presence of a secret chat is something that can be observed and can be enough to raise suspicion.

Re:WhatsApp announces key transparency being added to WhatsApp by EGreg on Thursday April 13, 2023 @02:54PM (#35560317)
I know this is a bit of a cop-out but even writing in a non-secret chat and having Telegram know, then totally deleting a message on Telegram with no visual trace to the counterpart, is less worrying for me than doing the same on the “e2e encrypted” WhatsApp which shows “Message deleted” and if I failed to do it, prevents me from deleting the message after a while. Telegram lets me delete everyone’s messages and even the entire chat anytime. That shows where their head is at.

That said, you are right that not-on-by-default-for-everyone makes the encrypted chats more suspicious.

I have to say that I have a nuanced view on encryption, which isn’t matching the orthodoxy on HN:

https://community.qbix.com/t/balancing-privacy-and-accountab...

Re:WhatsApp announces key transparency being added to WhatsApp by robryk on Friday April 14, 2023 @07:08AM (#35568064)
If I understand your proposed world correctly (I understand it as morally equivalent to the escrow of ~all keys with k-of-n split across some well-chosen entities/people), I expect a person holding that view to support encryption-by-default even more strongly, because in a world that looks that way (and that way actually works as described) there is no apparent downside to that. I'm curious whether you disagree with any part of this.

OT: Do you have anything more concrete written on the choice of holders of escrow shares (so that they can be trusted to actually follow the audit rules)?

Re:WhatsApp announces key transparency being added to WhatsApp by EGreg on Friday April 14, 2023 @08:43AM (#35568906)
Thanks for reading through what I wrote and grokking it! It means a lot to me. Now we can discuss it.

Yes, for all private interactions / conversations I support encryption, provided it can be decrypted in the way I said. Obviously there is room for innovation to make it harder and harder to do bulk decryption without a proper reason and audit trail. And make sure somehow that the cameras can prove they aren’t sending unencrypted video or that encryption keys are secure. It’s hard to prove a negative, but possible if verifiers can search the entire signal. Those innovations are part technological and part societal… but the underlying technology (like blockchain) has to exist first. Has anyone built it yet?

Now having said that, I don’t think encryption keys should be that hard to get for conversations within a corporation, and probably should be nonexistent for public servants on duty. Today we have the opposite … NATO promises to Gorbachev are secret, Normandy format talks were closed for years, Ukraine-Russia negotiations were behind closed doors, we don’t know why they all failed. And regular people have to go to war because of their failure. I think if the government wants to know where my $600 goes I should be able to know where trillions go.

Re:WhatsApp announces key transparency being added to WhatsApp by upofadown on Thursday April 13, 2023 @12:46PM (#35558289)
As mentioned in the linked article, E2EE group chats are more or less impractical due to the identity verification problem. This initiative is intended to help with that. I will also point out that large group chats are impractical due to the simple fact that not everyone will know everyone else. So someone can just leak the messages.

The Telegram method of dealing with this is obviously not the only way, but it is a legitimate way.

>Not to mention that even when chats are e2e encrypted, they are encrypted using their proprietary algorithm?

The algorithm is public. It is a straightforward application of well known primitives. It is hardly proprietary.

Re:WhatsApp announces key transparency being added to WhatsApp by robryk on Thursday April 13, 2023 @02:39PM (#35560081)
> The algorithm is public. It is a straightforward application of well known primitives. It is hardly proprietary.

Note that its predecessor, was very much not that (e.g. https://words.filippo.io/dispatches/telegram-ecdh/ was a vulnerability in it, and it stuck to some weird choices of crypto primitives/key sizes for a pretty long time). This colors my expectations about the current version slightly.

I personally know nothing about the current protocol used (mtproto 2.0) and a few minutes of googling surfaced https://eprint.iacr.org/2022/595.pdf, https://eprint.iacr.org/2023/469 and https://arxiv.org/abs/2012.03141, which I'd need to read in reasonable amount of detail to have an opinion on mtproto 2.0.

Re:WhatsApp announces key transparency being added to WhatsApp by hangonhn on Thursday April 13, 2023 @12:28PM (#35557998)
> So, if US law permits or requests in some way interception of communications, or that operators have to report certain activities, then your right to secrecy is done.

Yep. FISA Section 702 allows that but supposedly only if you're not in the US and not an US citizen. Will an American get caught up the in the net? Maybe? Oh and it doesn't require a warrant. It's set to expire the end of this year but they've been known to renew it. https://www.eff.org/702-spying

Re:WhatsApp announces key transparency being added to WhatsApp by 2Gkashmiri on Thursday April 13, 2023 @11:31PM (#35565219)
Because of my handle, I would appear to be biased but here is a popular Indian news article around WhatsApp.

https://scroll.in/article/1044425/how-a-cross-border-love-st...

The fact is, Indian govt has long been able to intercept WhatsApp and failing which they force group admins to get "registered"

https://thenextweb.com/news/kashmirs-police-want-people-to-r...

With local Intel suggesting malware being installed when admins to go the station for "registration". Remember, this was before all the state sponsored malware came into light a few years ago so we locally have known this for quite some time now.

Re:WhatsApp announces key transparency being added to WhatsApp by gouggoug on Thursday April 13, 2023 @12:00PM (#35557483)
I can’t really put my finger on why, but this comment looks like it came straight from chatGPT.

Did it?

Re:WhatsApp announces key transparency being added to WhatsApp by syrrim on Thursday April 13, 2023 @12:09PM (#35557667)
It's phrased as if it's an answer to a question, which it would be if it was the result of a prompt to chatgpt. Of course, a person could deliberately emulate that style as well, making this an unreliable way to determine whether a comment was written by a bot.
Re:WhatsApp announces key transparency being added to WhatsApp by imwillofficial on Thursday April 13, 2023 @12:07PM (#35557622)
Cut this crap out. This type of questioning all the time will not be good for HN.
Re:WhatsApp announces key transparency being added to WhatsApp by axus on Thursday April 13, 2023 @12:14PM (#35557769)
Using chatGPT to make a comment isn't necessarily a bad thing. I'd say the curiosity about how the comment was written is a good thing, as long as it's not a criticism.
Re:WhatsApp announces key transparency being added to WhatsApp by mardifoufs on Thursday April 13, 2023 @12:21PM (#35557889)
Sure, but it's still pretty rude because it's usually baseless. And as you said, it doesn't even really matter. If the comment is bad, just downvote it. If it's good enough, why even bring it up?
Re:WhatsApp announces key transparency being added to WhatsApp by InCityDreams on Thursday April 13, 2023 @12:33PM (#35558084)
"Don't ask rude questions", usually said by those with something to hide. Obviously there's a current novelty factor with cgpt answers, and i for one am happy people 'challenge' them. If the comment isn't what you like, ignore it?
Re:WhatsApp announces key transparency being added to WhatsApp by imwillofficial on Thursday April 13, 2023 @02:25PM (#35559877)
This is starting witch hunts for ai generated comments, attempting to discredit the comment by its format, not its content. This violates the goodwill we all share in conversation on HN.
Re:WhatsApp announces key transparency being added to WhatsApp by wkat4242 on Thursday April 13, 2023 @04:43PM (#35561789)
Why would someone even bother using a chatbot to write a comment? Just writing it would be a lot quicker.

There isn't really anything to gain here with that either.

Re:WhatsApp announces key transparency being added to WhatsApp by gouggoug on Friday April 14, 2023 @03:31AM (#35566565)
“Someone” wouldn’t. A bot would. Which was implied (albeit maybe not obvious) in my question.
Re:WhatsApp announces key transparency being added to WhatsApp by wkat4242 on Friday April 14, 2023 @10:45AM (#35570125)
But a current-gen bot doesn't go look around for forums to leave comments on by itself. There must be a human that set that up through the API.

My question is why, what's the point? If it even happens, in this case it was not so.

Re:WhatsApp announces key transparency being added to WhatsApp by JustSomeNobody on Thursday April 13, 2023 @12:08PM (#35557650)
Could be. I'm saw one on Reddit the other day, checked the users history and they all had that uncanny valley feel to them.
Re:WhatsApp announces key transparency being added to WhatsApp by snowboarder63 on Thursday April 13, 2023 @12:50PM (#35558344)
I did not use ChatGPT to write this - Me lol
Re:WhatsApp announces key transparency being added to WhatsApp by Lionga on Thursday April 13, 2023 @01:45PM (#35559244)
Sounds like something ChatGPT would say
Re:WhatsApp announces key transparency being added to WhatsApp by vorpalhex on Thursday April 13, 2023 @05:06PM (#35562068)
> Please don't post insinuations about astroturfing, shilling, bots, brigading, foreign agents and the like. It degrades discussion and is usually mistaken. If you're worried about abuse, email [email protected] and we'll look at the data.

https://news.ycombinator.com/newsguidelines.html

Re:WhatsApp announces key transparency being added to WhatsApp by Gunnerhead on Friday April 14, 2023 @02:33AM (#35566219)
Not to me, even after re-reading it. ChatGPT often sounds too formal but this isn’t.