News for hackers. Stuff that matters.
Re:Answers to your questions about Apple and security by zeveb on Monday February 22, 2016 @10:54AM (#11151620)
> This FAQ has more than 1000 words, but these are the words that matter:

> > The only way to guarantee that such a powerful tool isn’t abused and doesn’t fall into the wrong hands is to never create it.

And of course, that's also wrong. The only way to guarantee that such a powerful tool isn't abused it and doesn't fall into the wrong hands is to make it impossible for such a tool to exist, not to refuse to create it.

Right now, today, Apple has the ability to create such a tool. Some finite number of human beings at Apple have the ability to create such a tool on their own initiative, e.g. were they disgruntled.

It should be impossible for Apple, or disgruntled Apple employees, or any nation state, to create such a tool.

Otherwise, it will eventually be created, because if something is possible then is eventually probable.

Re:Answers to your questions about Apple and security by panarky on Monday February 22, 2016 @11:18AM (#11151856)
Naturally "can't create" is better than "won't create", but this case is about the precedent and not this particular iPhone.

If a court can force a company to create new technology that didn't exist before, what other tools might they be forced to build?

1) Stream keystrokes, audio, video, location to law enforcement prior to encryption

2) Replace actual search results with government-approved results

3) Force Apple to create target lists of suspects based on their location, apps installed, sites visited, keywords typed

Bad things happen when the government can force private companies and individuals to create new tools for law enforcement.

There is no technology that prevents Apple from subverting Apple's security. If Apple loses, the new precedent could open Pandora's box.

Re:Answers to your questions about Apple and security by dangirsh on Monday February 22, 2016 @11:44AM (#11152120)
"There is no technology that prevents Apple from subverting Apple's security."

That's just in this universe. If users truly owned their devices, with full knowledge of the hardware and control of the software + data, we would never have this discussion.

In this world, you have to jump through flaming hoops just to prevent Apple from automatically swapping out your OS!

Re:Answers to your questions about Apple and security by cmdkeen on Monday February 22, 2016 @11:56AM (#11152236)
For what values of "full knowledge" - you bootstrapped your compiler and verify every line of source code you've downloaded. But then if you're up against nation state actors they can probably force your source code source to be compromised for you and only you - so those "many eyes" are seeing different code. You are after all checking that other people have the same hashes for the download that you use...

Then we're getting into compromised hardware, you verified that the chips actually are the same as the circuit diagrams after all.

There is only so much tinfoil you can deploy. If an advanced nation state truly has you in its sights there isn't much you can do about it, and to be honest that's the way it should be. We sacrifice individual liberties for the advantages of being part of an organised society, and the limitation of coercive power to the state is a key part of that.

A well regulated state in which the right people get targeted, with an acceptably low false positive rate that scales based on the degree of privacy violation of the targeting seems to be a perfectly sensible state of affairs. Apple's argument that they are being asked to do something that isn't justified fits just fine into that.

Re:Answers to your questions about Apple and security by delroth on Monday February 22, 2016 @12:45PM (#11152671)
Just because you can never get full coverage doesn't mean it has to be easy. For example, here are some things that could be imlpemented to make firmware backdooring harder:

* Certificate Transparency-style public ledger for all firmwares that Apple has signed. Refuse an update if the firmware version has not been published to the ledger. This would make these backdooring attempts public, since we can assume people would watch the ledger and ask questions in case of an unknown version being published.

* For open source firmwares, reproducible builds are a great tool to make sure the distributed binaries actually match the publicly reviewable source code. Third parties could recompile the firmware and attest (through signing) that they get the same result.

I don't know any implementation of either of these two systems, at least publicly available (hint: Bazel does reproducible builds, and you can guess what is driving this requierment). Debian and Mozilla are experimenting with reproducible builds but I don't know that it ever reached any useful conclusion.

Re:Answers to your questions about Apple and security by koolba on Monday February 22, 2016 @01:03PM (#11152825)
> Certificate Transparency-style public ledger for all firmwares that Apple has signed. Refuse an update if the firmware version has not been published to the ledger. This would make these backdooring attempts public, since we can assume people would watch the ledger and ask questions in case of an unknown version being published.

That's seems like a fantastic idea but without open source firmware I don't see how it could be enforced.

Re:Answers to your questions about Apple and security by pdpi on Monday February 22, 2016 @02:03PM (#11153370)
E.g. Bitcoin has reproducible builds in the wild.

https://github.com/bitcoin/gitian.sigs

Re:Answers to your questions about Apple and security by nadaviv on Monday February 22, 2016 @05:16PM (#11154738)
Reproducible builds, and a release process that incorporates digital signatures from multiple members of the Bitcoin development community.
Re:Answers to your questions about Apple and security by EdHominem on Monday February 22, 2016 @02:05PM (#11153375)
That stuff (checking hashes, etc) is currently mostly theatre because, as you say, a nation-state can easily serve you different hashes to check.

But it's pretty easy to imagine a feature where, similar to cert-pinning, many clients report the hashes that they see on the website and if you see something different from what everyone else does, you know something is wrong. It wouldn't need to be a "techie" feature - it would simply show a package as broken and refuse to install if it wasn't verifying, etc.

And the goal isn't some impossible 100% security, the goal is enough security to end mass interception and make the government rely on warrants and targeted tactics again.

Re:Answers to your questions about Apple and security by darkr on Monday February 22, 2016 @05:58PM (#11155054)
> That stuff (checking hashes, etc) is currently mostly theatre because, as you say, a nation-state can easily serve you different hashes to check.

This is why as well as serving those hashes over HTTPS, you sign the hashes with a key, the public part of which is distributed/retrievable/verifiable via some other means.

Re:Answers to your questions about Apple and security by EdHominem on Monday February 22, 2016 @07:29PM (#11155498)
Right. But if I were attacking you and was in your site and knew that you signed your hashes I'd be targeting your build script to save your key and passphrase, or build a backdoored version at the same time. Something like Certificate Transparency for code-signing would be really solid though; tampering would stand out. https://www.certificate-transparency.org/log-proofs-work

I think there's value in the purely user-based solution though. If two people go to a site at the same time and aren't served the same binary they should be curious why, even if the company securely and auditably signed both images.

And, it helps in all the cases when companies don't implement great release-security.

Re:Answers to your questions about Apple and security by CaptSpify on Monday February 22, 2016 @12:22PM (#11152469)
tl;dr: "it's hard to verify code. therefore, we shouldn't even try!"
Re:Answers to your questions about Apple and security by freehunter on Monday February 22, 2016 @01:00PM (#11152789)
Not hard. Impossible. Have you seen obfuscated C? Is it possible for enough people to read it and understand it that it would make a difference? What about if you can read it but I can't? Do I trust you? How many people have to verify it before a non-expert can trust it? Theoretically, none. Everyone could be in on the conspiracy except me.

And how do I verify that the code I've just read is what shipped on my computer? If I install it myself, how do I verify the CD or ISO I have is what I read? If I compiled it myself, how do I verify the compiler didn't change anything? What about the system that compiled the code, do I trust that? How far back do I have to go before I have trusted everything?

And then what about hardware? Is there a chip that changes some of the code that's running? Can I verify every piece of hardware in my system, a 16-core CPU with 64GB of RAM and a high-end video card? How do I even do that? And what are the odds I am a world class C coder and a world-class hardware expert?

And then what about client code? Am I a world-class Javascript expert too, with full source access to the Django backend? And the system that is running that server code, do I have access to that hardware to make sure it's not going to compromise my security?

No. Fully trusting a computer is impossible. It doesn't mean we shouldn't try, we should at least make it as hard as possible for the bad guys to trick us. But what's better, IMO, is to create an environment where it's detrimental to companies to trick their users like that. Apple seems to have gotten a lot of great press for standing up in this situation. There's a market for it.

Can you trust Apple tech? Maybe not. But can you trust it more than Google or Microsoft or Samsung or Facebook or Amazon etc etc? It does seem that way. Without being a world-class expert in everything, eventually you have to trust someone.

Re:Answers to your questions about Apple and security by cyphar on Monday February 22, 2016 @05:49PM (#11154991)
Sure, you can't be 100% sure of anything. In the same vein, you can't even be sure that the world is real. The fact you can't have 100% assurances doesn't mean anything. What matters is how strong you make your assurances. A company having an existing system allowing for the installation of backdoored firmware is an example of something that shouldn't be possible. It should be possible to reasonably assure that someone cannot flash something onto a person's phone without either wiping the data or having the update signed by the user.
Re:Answers to your questions about Apple and security by CaptSpify on Monday February 22, 2016 @02:53PM (#11153721)
> No. Fully trusting a computer is impossible. It doesn't mean we shouldn't try, we should at least make it as hard as possible for the bad guys to trick us.

I completely agree. I liken it to something like world-peace: It's an ideal, and we'll probably never get there. Doesn't mean we shouldn't try to get there though.

Re:Answers to your questions about Apple and security by mentat on Monday February 22, 2016 @04:20PM (#11154385)
We still need to have a realistic idea of what's possible though and not make claims that are stronger than what's likely.
Re:Answers to your questions about Apple and security by Joeri on Monday February 22, 2016 @01:10PM (#11152892)
A modern software stack involves in excess of 500 million lines of code. One can properly audit no more than 5000 lines of code per day. The math dictates that trust will be a given.
Re:Answers to your questions about Apple and security by CaptSpify on Monday February 22, 2016 @02:54PM (#11153730)
I agree. It's an unfortunate inevitability. Doesn't mean we shouldn't try. We shoud be able to verify any subsection of it as well, whenever we need to.
Re:Answers to your questions about Apple and security by stcredzero on Monday February 22, 2016 @01:09PM (#11152884)
> If users truly owned their devices, with full knowledge of the hardware and control of the software + data, we would never have this discussion.

We should have a series of standardized trusted execution modules which are open source hardware and open source software. There should be a public process by which these are vetted. Watchdog groups could disassemble samples of the chips and place them under electron microscopes and otherwise examine them for tampering.

The effect of this would be to place individuals and grassroots organizations on an even playing field with corporations and governments with regards to such tools. It's a disaster for large organizations to have access to individual private information, yet it's a societal boon for such organizations to be open and for individuals to know what they are doing. The same asymmetry applies to trusted execution. It's a disaster when big organizations use it against individuals, but it would be a societal good if individuals could revoke access to their information from corporations when they break goodwill.

Re:Answers to your questions about Apple and security by derefr on Monday February 22, 2016 @03:53PM (#11154207)
They made it impossible for the new versions of the hardware, I think. (The Secure Enclave, in the phones that have it, would delete the decryption keys stored within it after receiving ten incorrect auth attempt requests from the CPU. The Secure Enclave cannot be updated—as far as we know—to be brute-force-able.)

It's just the old versions, before Apple started making privacy a political tentpole, that they could ever manage to backdoor in this particular way. That's still bad—but what Apple are mainly worrying about is that this precedent would force them to aid the FBI in other act-of-creation ways, not just in ways involving introducing backdoors.

The FBI might compel Apple to, for example, build a monitoring and clustering service into iTunes Genius/Apple Music to de-anonymize people through their music preferences; or they might request Apple build a facility to censor all messages travelling through APNS that mention the names of informants in active sting operations. Or they might compel Apple to build a secret CPU ring-0 elevation handshake into the A10 chip.

Even if the new generation of iOS devices was completely un-backdoor-able, and the usage of the old generation was effectively nil, that still wouldn't minimize the FBI's request. The FBI are likely much more concerned about all the orders they could give to, effectively, turn Apple's engineering talent into a domestic-surveillance consultancy.

Re:Answers to your questions about Apple and security by GCA10 on Monday February 22, 2016 @04:51PM (#11154558)
Apple -- or any other tech company -- could probably prevail in court against a lot of the more outlandish FBI scenarios that you describe. Most appellate courts take privacy quite seriously. So does the Supreme Court, with both right- and left-leaning judges getting there just fine on their own. The Fourth Amendment is pretty clear on this.

The problem for Apple, or any other tech company, is that once you say "okay" once, you can't swat away the next one by saying "Impossible" and being done with it. You have to lawyer up. That takes time and costs money.

So Apple's real issue is that they don't want to spend many millions of dollars (billions?) on lawyers to get the FBI and other alphabet agencies to behave properly. That's a very legitimate business position. It's just a little more nuanced than what we were told on day one.

Re:Answers to your questions about Apple and security by snowwrestler on Monday February 22, 2016 @11:25AM (#11151929)
It will never be impossible for Apple to weaken the security of Apple's sofware.

For example, the government could require Apple to build future iPhone software to permit backdoor access. The question today is whether the government can do so with a court-issued warrant, or whether it will require legislation, as it did with CALEA.

Re:Answers to your questions about Apple and security by mindslight on Monday February 22, 2016 @12:45PM (#11152672)
It could be impossible for Apple of the future to break the security of a device sold by Apple in the present.

Apple can hopefully win this case based on the forced creation aspect. But they'd likely lose the next iteration where the FBI subpoenas technical documentation about the key derivation function, and builds their own hardware to talk to the hardened chip. Of course the FBI has little interest in doing this, because the whole affair is a psyop.

If you want to fully protect your customers, don't design backdoors into your products in the first place!

Re:Answers to your questions about Apple and security by gherkin0 on Monday February 22, 2016 @02:30PM (#11153566)
> And of course, that's also wrong. The only way to guarantee that such a powerful tool isn't abused it and doesn't fall into the wrong hands is to make it impossible for such a tool to exist, not to refuse to create it.

And Apple has done that: the type of hack the FBI is asking for cannot work on newer iPhones.

Re:Answers to your questions about Apple and security by sbov on Monday February 22, 2016 @02:42PM (#11153648)
Source? Current discussions surrounding your statement point to it being false - that Apple can update the firmware of the secure enclave without it wiping out it's data.
Re:Answers to your questions about Apple and security by jtuchsen on Monday February 22, 2016 @03:21PM (#11153969)
I think the confusion stems from the iOS security guide that Apple published. Page 7 of the guide states that "The Secure Enclave is a coprocessor fabricated in the Apple A7 or later A-series processor. It utilizes its own secure boot and personalized software update separate from the application processor," which implies that somehow updating it is more secure, without saying exactly how much control Apple has over updating it, and whether or not the phone needs to be unlocked before it accepts new firmware. Given that they haven't come out and said that they can't override the firmware for locked phones, I'd say they can. Although, before Apple's recent statements I would have assumed that they couldn't, so the confusions understandable. The guides at https://www.apple.com/business/docs/iOS_Security_Guide.pdf
Re:Answers to your questions about Apple and security by gherkin0 on Monday February 22, 2016 @02:58PM (#11153765)
> Source? Current discussions surrounding your statement point to it being false - that Apple can update the firmware of the secure enclave without it wiping out it's data.

Do you have the source for that, too? I was still under the impression that the Secure Enclave would erase the keys if it's updated.

It's a pretty huge flaw if the firmware can be updated and the keys preserved without first validating with the passcode.

Re:Answers to your questions about Apple and security by smackfu on Monday February 22, 2016 @05:43PM (#11154947)
AFAIK, the only sources on this matter are the white papers that Apple has produced. You can't even attempt to update the firmware without having Apple's signing keys.
Re:Answers to your questions about Apple and security by ikeboy on Monday February 22, 2016 @07:42PM (#11155564)
Re:Answers to your questions about Apple and security by notatoad on Monday February 22, 2016 @12:38PM (#11152612)
Is that really true though? My understanding here is that the biggest blocker is the code signing process - the FBI or the NSA could probably build a backdoored OS, but they couldn't install it on the phone without apple's signing cert. Depending on Apple's internal security, it may very well be impossible for a single person to sign anything other than an official iOS release, making it impossible for an agressor nation or a disgruntled employee or anybody else other than apple as a whole to get a backdoor onto an iOS device.
Re:Answers to your questions about Apple and security by archgoon on Monday February 22, 2016 @12:44PM (#11152666)
I believe the parents point is that Apple having a signing key is no different in principle than them making an operating system and signing it. Apple possesses information that can compromise a phone, and if it's possible for an signed OS image to be compromised, then it's possible for the signing key to be compromised.
Re:Answers to your questions about Apple and security by noelsusman on Monday February 22, 2016 @10:49PM (#11156375)
This is what I've been saying all along. If Apple has the ability to do this then the security is already compromised. The fact that it hasn't been physically created yet is a minor detail.

I also don't understand why they couldn't provide the FBI with an OS that refuses to run on anything other than the specific device in question. Isn't that the whole point of code signing?

Re:Answers to your questions about Apple and security by mempko on Monday February 22, 2016 @03:10PM (#11153887)
Amen brother. Free software, in my opinion is the answer here. And of course actually working democracies.

Tim Cook today doesn't create it. Cook Tim tomorrow will.

Re:Answers to your questions about Apple and security by superuser2 on Monday February 22, 2016 @03:47PM (#11154171)
The democracy is actually working: the small minority of tech industry people who think security and privacy are important are correctly overruled by the majority who don't.

If you think (and it's not crazy) that sometimes small, elite populations know better than the public at large, great, but please don't call that democracy.

Re:Answers to your questions about Apple and security by rantanplan on Monday February 22, 2016 @05:33PM (#11154869)
You could argue that parliaments are a small elite population.

https://en.wikipedia.org/wiki/Representative_democracy

This is what we mean when we use the word "democracy" today, unless you live in ancient Greece or some small village.

So having experts on technology,security and privacy being overruled by an uneducated mob is madness, not democracy.

Re:Answers to your questions about Apple and security by hifier on Monday February 22, 2016 @07:50PM (#11155603)
And this is exactly what the constitution is for. Changing the constitution requires much more than a simple majority.
Re:Answers to your questions about Apple and security by Spooky23 on Monday February 22, 2016 @12:08PM (#11152341)
The real answer is to do a Putin -- buy a typewriter.

If you're doing something that will attract negative political attention, mail a letter.

Re:Answers to your questions about Apple and security by ryukafalz on Monday February 22, 2016 @12:52PM (#11152724)
>The real answer is to do a Putin -- buy a typewriter.

Even that might not help:

http://arstechnica.com/security/2015/10/how-soviets-used-ibm...

Re:Answers to your questions about Apple and security by cmurf on Monday February 22, 2016 @01:04PM (#11152845)
Re:Answers to your questions about Apple and security by Spooky23 on Monday February 22, 2016 @01:29PM (#11153065)
So what?

It's pretty trivial to obscure that metadata, and frankly the content of your correspondence is more important than the metadata.

Your mail has fairly robust legal protection, and you can spend more money (i.e. Registered mail) to provide a higher level of tamper evidence and accountability in transit.

Re:Answers to your questions about Apple and security by bonestamp2 on Monday February 22, 2016 @12:39PM (#11152623)
> Some finite number of human beings at Apple have the ability to create such a tool on their own initiative, e.g. were they disgruntled.

Is that true? I mean, wouldn't those employees need the root signing certificate... something I suspect is very tightly protected even within apple.

Re:Answers to your questions about Apple and security by zeveb on Monday February 22, 2016 @12:51PM (#11152716)
> something I suspect is very tightly protected even within apple.

By, say, breaking up its custodianship among a … finite group of human beings.

Re:Answers to your questions about Apple and security by rootusrootus on Monday February 22, 2016 @01:02PM (#11152815)
You just made an important distinction, however, between a singular employee, and a group.
Re:Answers to your questions about Apple and security by canes123456 on Monday February 22, 2016 @11:23AM (#11151915)
I could be impossible for apple to more easily brute force iOS if they prevent installing updates when the device is unlocked. However, being forced to make changes to iOS to grant access to FBI opens the door to many ways which security can be weakened or removed.
Re:Answers to your questions about Apple and security by newman314 on Monday February 22, 2016 @04:40PM (#11154494)
I'm all for Apple here but this is kind of silly. At some point someone has to design the product so someone has to do the creation in that sense. Unless you are proposing a jesusphone will somehow spring forth fully secure safe from even Apple's design team.

But that said I'm definitely for the stance that technology be designed in such a way to be unbreakable to Apple or anyone else once the device is sold.

Re:Answers to your questions about Apple and security by finishingmove on Monday February 22, 2016 @12:21PM (#11152461)
Correct, thank you for summing this up so nicely. I would just like to add that, when possible, such a thing often already exists. Food for thought.