Police decrypt messages after breaking pricey IronChat crypto app
arstechnica.com
arstechnica.com
Police seized and operated a server of a company called Blackbox Security which offered 'crypto phones'. Basically phones pre-installed with some software sometimes with all ability to communicate disabled aside from that application. The price for these phones was 1500 EUR including a 6 month plan, afterwards 750 EUR per 6 months for usage.
While the Dutch DA and Police have not given any details as to how the security was broken there are some clues (this is speculative as fuck):
* A users guide that used to be published on the Blackbox Security website hints towards their chat application being XMPP+OTR.
* Real-time access but no historical access hints towards an MITM to change the previously exchanged OTR keys (a common way to 'break' into a conversation).
* The application seemed to not enforce and/or check the key signatures for changes.
This is not the first time the Dutch DA and Police have taken action against a 'crypto phone' provider. Ennetcom, another provider was taken down a year or so ago: https://www.zdnet.com/article/police-hack-pgp-server-with-3-... leading to arrests as well.The reason given by the DA for the publication of this news is that threats of violence and reprisal were being made on the taken down chat messages by owners of these devices after police action was taken against them. They wrongfully blamed the people they were communicating with of leaking the information. As tensions increased retribution hits were likely and the risk to the public would be there. Hence: release the information.
To re-iterate, there is so far no reason to believe the actual cryptographic protocols in use got broken but that yes; taking over the server allowed them to MITM the OTR key exchanges and/or pretend to be another client. I could get more technical but since this is all speculation I don't see much value to it.
Xabber clone? If so, this, again, demonstrates that automatic key renegotiaton is a glaring security vulnerability open for real world exploitation.
Throw that into Moxie Marlinspike's garden.
Edit, seems their app store is still up. Checkout it out yourself http://www.appstoreprivacy.com
Not enforcing signatures when exchanging keys? Is this crypto-kindergarten?
With a well designed payment system it is expected that the attackers have access to basically all of infrastructure -- servers, databases holding keys, network, disassemble terminals, bribe employees, etc. and still have no chance injecting their own keys, read pins or get any cryptographic material of value.
Why can't you just guys who pretend to build secure system spend some times reading real requirements from PCI or Visa or Mastercard to get at least some idea how real secure systems are built in at least one area?
For end-to-end encryption for messaging applications, there may not be any such entity that everyone can trust. In that case, there needs to be a solution for key exchange to allow new parties and devices to join the system. In payments you could presumably say "the banks/banking association/cryptographic contractor of the banking association is the authority that certifies new entities that join the system". In messaging you probably can't do that if you're concerned that law enforcement will force that entity to add false certifications!
In other words, I think you're referring to a cryptographic problem with a somewhat different threat model.
PCI requires that organizations control cryptographic material using rules of dual control and split knowledge. No individual should have access to entire cryptographic key and any processes and devices should require at least two people to operate.
For example, HSM-s are ALWAYS operated by at least two security officers. Cryptographic keys are generated by HSM in the form of multiple components onto multiple smartcards. Each smartcard is stored in a separate safe where only the security officer/s assigned to that component have access. The HSM to be injected with keys must be operated by multiple security officers with their components. The HSM is regularly inspected -- each security officer brings his key from his safe, two keys are required to open the enclosure where the HSM is located. When the payment terminal is injected with keys there are two operators present monitoring each other to prevent tampering with the process. Etc.
With good understanding of the concepts it is possible to build secure system. It's not that hard.
If this company had had a dual control mechanism where multiple security officers had to be involved in order to issue signatures, presumably the company's executives would have told those security officers "we have to issue this signature because the government requires us to", and presumably the security officers would then have done it. It wasn't a rogue action from the organizational point of view, only from the customer's point of view.
Also, in a messaging application new public keys have to be certified extremely frequently because new users and devices are constantly joining the system with new keys. Presumably this happens in an automated online fashion (otherwise, the security officers aren't going to get much sleep). That makes it even more challenging to subdivide the responsibility for certification, for many reasons.
I don't mean to disparage the precautions that financial organizations have implemented, and I agree that some parts of the software world sometimes seem extremely cavalier in comparison. But I still think that in this particular case the threat models are extremely different.
1. They are choosing and then providing devices. This is very important because it means they have physical contact with the device, initially, so they have means to bootstrap cryptographic system by way of injecting keys, etc.
2. They are middlemen transferring messages between multiple parties that use their devices without having to understand the secret part of the message and only routing the messages.
3. They are paid well enough for the service that they should be able to cover expensive devices and processes like manual key injection or expensive hardware security modules.
4. The core of the business is security, if it is not provided nothing else will change the fact they have not provided what they were paid for.
The only real difference from payment industry is that the threat is from governments, too.
There is a basic bootstrapping problem with all these systems, where either you have a TSM facility of some sort, or you accept the ostensibly very low likelihood that your key provisioning protocol gets compromised.
Trouble is, if you are a target of any intelligence interest, any linux remote zero day means your provisioning server is probably going to get owned out of the gate as soon as someone seizes one of your devices.
Not checking a signature seems like an unforced error, but really, there are so many plausible ways this could have happened.
The security of well designed system will not be impacted by any number of zero-days or attackers having free access to your network, devices, databases, etc. This is because well designed system will not base security of the data it protects on components and mechanisms that cannot be trusted to be secure.
Reformatted:
* A users guide that used to be published on the Blackbox Security website hints towards their chat application being XMPP+OTR.
* Real-time access but no historical access hints towards an MITM to change the previously exchanged OTR keys (a common way to 'break' into a conversation).
* The application seemed to not enforce and/or check the key signatures for changes.
About unencrypted support: "supportUnencrypted() { return false; }" is in the config, so probably not [4]. There is a theory (I kind of started [5]) that it might be MitM because of bad UX. This is because they used OTR without TOFU which was only added in Conversations 1.15, after the fork [6].
[1] https://ironphonestore.com/IronChat-3.40-release.apk
[2] https://github.com/siacs/Conversations/tree/6371d2b7a9a2b5d7...
[3] https://paranoiaworks.mobi/sse/
[4] https://twitter.com/BWBroersma/status/1060136620383453195
[5] https://twitter.com/BWBroersma/status/1059851925234036739 / https://twitter.com/Schellevis/status/1059852605801852929 (= the author of the article quoted by ars: https://nos.nl/l/2258309 )
[6] https://twitter.com/BWBroersma/status/1060278116315262976
This strikes me as... very inauthentic. I think anyone with even a basic understanding of crypto would do things the other way around.
Can you explain your reasoning? PGP lacks forward secrecy, a key feature that you'd want and which OTR provides.
The person I was responding to claimed that PGP was the superior choice to OTR, and I wanted to understand why.
[0] https://en.wikipedia.org/wiki/Off-the-Record_Messaging#Nativ...
I feel like this discussion is getting away from the original premise:
> anyone with even a basic understanding of crypto would do things the other way around.
i.e. use PGP instead of OTR. Nobody has yet even attempted explain their reasoning as to why? Bringing up one specific vendor is a deflection, rather than an answer.
> anyone with even a basic understanding of crypto would do things the other way around.
Not least of all because they made no reference to which implementation of PGP they were even calling superior, only the protocol itself.
It's not about the technical features that are theoretically available, it's more about how much you can believe they actually hold in reality.
OTR uses AES-128 w/the Diffie–Hellman key exchange, and SHA-1 hashes to confirm integrity. So in terms of technology it is a pretty well travelled road. And the advantages of OTR over PGP make it worth seriously considering for secure messaging.
As to specific implementations I cannot say, but that's true with both OTR and PGP.
That's exactly the root of the problem. When you say you use pgp, there's a very high chance you're using gnupg from the command line, ie the one that has been reviewed by every security expert who has wanted any bit of recognition. When you say you're using OTR, everything depends on the specific implementation, so there are infinitely more ways your setup can be compromised.
I do agree that from a purely technical point of view OTR is better than PGP (except maybe the need for both parties to be online at the same time, but that's a minor inconvenience when comparing to the additional security OTR provides). But in this case the technical merits are not really important, what is really important is the complete system, and in that view the old, crufty, hard-to-use PGP wins.
Sure, it's true. But that reasoning kinda obviates everything. Some things are easier to use safely than others. Your second paragraph is basically the essence of criticisms against PGP.
The law said "most of your customers are criminals, helping them evade detection is criminal in itself, you're under arrest".
Pretty sad, considering the authors of PGP could be imprisoned on the same reasoning.
At that point the server steps in and hands the new key to all the old users contacts. That's most likely where the flaw was in this system.
I would hope this is the case. While details may be omitted it seems, to know how discovery took place is important in one's ability to challenge it.
While it might not be mentioned in this article, it's mentioned directly in an article of the Dutch DA here: https://www.om.nl/actueel/nieuwsberichten/@104414/doorbraak/
"Let criminals kill criminals. Not our problem".
Cellphones -all of them- use binary closed blobs to manage device drivers, and to date there is not a single cellphone in the known universe which is free of proprietary closed code. That includes also the Librem5, which is a wonderful step in the right direction, still not completely free of closed blobs, hence not secure.
So what's the problem with (closed) device drivers? Well, they run all the time, they run at maximum privileges (higher than root) and they cannot be audited to spot any malicious code, which makes them the most effective place to hide spyware code. If any government tells a hardware manufacturer to "put our spyware into your driver or your business ends tomorrow" they comply, nobody can spot the code and there's no anti malware software that will detect it.
But why one should care if all text is end-to-end encrypted? Well, on a bugged phone there's no such thing as safe encryption. Let me be more clear: if you tap the text on the virtual keyboard or any device connected to say the USB port or through bluetooth, the text is read by the relevant drivers (higher priority, closed, not auditable) before it reaches the encryption code (lower priority user app) then it can be stored, transmitted (network drivers are closed too) etc. Closed device drivers can be used on most platforms (including PCs) to build a covert channel where information (text, sound, images etc.) travels completely unbeknownst to the user, so a platform can't be considered as secure until every single bit of software and firmware contained can be checked.
So, how did the police decrypt that traffic? I can only speculate that they confiscated one of these devices, then built a bugged driver for some vital devices within it, then got to the manufacturer and forced them to inject that tampered driver as an online update for that given model of phone, possibly installing only if some conditions were verified to be sure it was one of the targets.
If that scenario is half true, then there is not a single piece of computer hardware in the world one can safely assume to be secure. An Arduino-like board, maybe, until the day they'll build faster ones around bigger chips carrying closed blobs inside.
Today there are very few of them in the US, and fewer still of them (if any at all) that actually matter.
But it's not hard to find other nations where the story is very different.
To address specific points:
> Cellphones -all of them- use binary closed blobs to manage device drivers ... not completely free of closed blobs, hence not secure.
Closed source software can be secure. Whether there are binary blobs or not is not really relevant.
> So what's the problem with (closed) device drivers? Well, they run all the time, they run at maximum privileges (higher than root) and they cannot be audited ...
Modern phones have baseband/AP separation; closed source components are often running more like a peripheral on good phones.
For any of those components to exfiltrate the data it would have to somehow get access to the network, persistently store it, or use some other side-channel... Yeah, I'm sure those tiny bluetooth chips can do all that over the limited peripheral interface they use to communicate with the kernel.
> So, how did the police decrypt that traffic? I can only speculate that they confiscated one of these devices, then built a bugged driver for some vital devices within it, then got to the manufacturer and forced them to inject that tampered driver as an online update for that given model of phone, possibly installing only if some conditions were verified to be sure it was one of the targets.
Absolutely ridiculous. Why would you spend the work to create a malicious driver when you could just update the app code itself if you can push updates to the phones?
There's no reason anyone would use malicious drivers when they could use malicious application code; the latter is a darn sight easier to manage.
The most likely scenario, however, is that there was a bug in the cryptography that assumed the servers to be trusted or assumed some specific key had authority to mint new keys (e.g. a trusted CA that the police got the private key to).
Your post is a rant against closed-source driver blobs, when the reality is they're a difficult to exploit vector, at best.
I would like to direct you to tptacek's comment on the Librem5 [0] where he indicates that he, a security professional, believes the iPhone to be the most secure because of the level of auditing and security work they've put into it.
> ... there is not a single piece of computer hardware in the world one can safely assume to be secure ...
Thanks are not either 'secure or not'. They are secure against something.
Security is a continuum. An iPhone (with secure enclave, good disk encryption) is more secure than my laptop, which in turn is probably more secure than the average wordpress server.
I fully believe that my iPhone will withstand even motivated attackers with physical access. I don't think my laptop will. I don't know how it would fare against a nation-state specifically targetting me, but I don't really have to worry about that.
...