News for hackers. Stuff that matters.
Re:Apple tells U.S. judge 'impossible' to unlock new iPhones by 0x0 on Tuesday October 20, 2015 @07:38PM (#10422619)
Depending on the settings, the phone could:

  * Wipe after 10 unsuccesful PIN attempts
  * Be configured with a 6 digit numeric PIN code
  * Be configured with an unlimited alphanumeric password
  * Exponentially increase delay between PIN attempts after
    unsuccessful entry - for example 3 attempts in 3 seconds,
    next attempt after 10 seconds, next attempt after 60 
    seconds, next attempt after 4 hours, next attempt after 
    24 hours, next attempt after a week, next attempt in a 
    year (making up numbers to prove a point)
Re:Apple tells U.S. judge 'impossible' to unlock new iPhones by wingerlang on Tuesday October 20, 2015 @09:52PM (#10423109)
Maybe fixed now, but there was someone who got around the 10 unsuccessful (an perhaps the last one as well) by shutting the device off after an attempt was failed (like 0.001ms, not manually)
Re:Apple tells U.S. judge 'impossible' to unlock new iPhones by eridius on Tuesday October 20, 2015 @11:58PM (#10423621)
By "shutting it off" you mean they inserted themselves in between the battery and device and instantly cut power at the right time. Not something that you can easily do to an arbitrary device (especially if you have to give the device back).

And I don't know for sure, but I feel like that one was fixed at some point.

Edit: Yep, superuser2 links to the CVE: https://news.ycombinator.com/item?id=10423257, https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-4451

Re:Apple tells U.S. judge 'impossible' to unlock new iPhones by beeboop on Tuesday October 20, 2015 @08:13PM (#10422766)
These are mostly moot points. They don't have robots trying millions of passwords on phones. They make an image of the phone's memory and brute force it elsewhere. Even a 6 digit code would be cracked in seconds, at most.
Re:Apple tells U.S. judge 'impossible' to unlock new iPhones by superuser2 on Tuesday October 20, 2015 @08:26PM (#10422821)
False. The PIN is an input to the onboard HSM, which holds the actual key. The HSM itself enforces rate limiting and, if you have the right setting enabled, wipes its contents after N bad PINs.
Re:Apple tells U.S. judge 'impossible' to unlock new iPhones by BCM43 on Tuesday October 20, 2015 @09:00PM (#10422930)
Is it possible to image the HSM somehow?
Re:Apple tells U.S. judge 'impossible' to unlock new iPhones by diafygi on Tuesday October 20, 2015 @09:26PM (#10423002)
Very very unlikely. Hardware security modules are designed with the explicit purpose to protect secrets, including from physical tampering.
Re:Apple tells U.S. judge 'impossible' to unlock new iPhones by vox_mollis on Tuesday October 20, 2015 @09:50PM (#10423096)
And due to their black-box nature, they are very likely invisibly compromised by the five eyes. Every CEO of a major technology company, including those that manufacture HSMs, is well aware of the lessons taught by Joe Nacchio.
Re:Apple tells U.S. judge 'impossible' to unlock new iPhones by beeboop on Tuesday October 20, 2015 @09:33PM (#10423024)
Why is it unlikely? It's perfectly plausible to emulate any sort of hardware. What sort of magic sauce does Apple have to make a piece of hardware that can't be replicated and modified?
Re:Apple tells U.S. judge 'impossible' to unlock new iPhones by superuser2 on Tuesday October 20, 2015 @10:18PM (#10423248)
A replicated HSM doesn't contain the key that the data is encrypted with. You'd need to modify the HSM that has the right key in it. The point of an HSM is to fight you very, very hard on that front by dumping the key if it detects anything shady.
Re:Apple tells U.S. judge 'impossible' to unlock new iPhones by ramchip on Tuesday October 20, 2015 @10:01PM (#10423153)
Here's an overview of several techniques used to defeat this: https://www.cl.cam.ac.uk/~rja14/Papers/SEv2-c16.pdf
Re:Apple tells U.S. judge 'impossible' to unlock new iPhones by chris_va on Tuesday October 20, 2015 @08:58PM (#10422925)
Physically interfering with the delay/wipe mechanism should be possible. You only have to build the solution once. I can see that this makes it much harder up front, but eventually this too will get cracked.
Re:Apple tells U.S. judge 'impossible' to unlock new iPhones by superuser2 on Tuesday October 20, 2015 @10:20PM (#10423257)
Indeed this has been done: someone programmed an RPi/Arduino to cut power to the phone after PIN verification and before the PIN attempt was persisted. This effectively defeated rate limiting and the 10 attempt limit. However I believe that was the 5S, and that seems like a fixable bug (record the PIN attempt before verifying the PIN).

Yep, it was patched: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-4451

Re:Apple tells U.S. judge 'impossible' to unlock new iPhones by kevinchen on Tuesday October 20, 2015 @09:58PM (#10423141)
Since each HSM has a unique key, wouldn't you have to decap one chip for each phone to recover the keys? I think that is sufficient protection to make decrypting phones unfeasibly expensive for most cases.
Re:Apple tells U.S. judge 'impossible' to unlock new iPhones by ars on Tuesday October 20, 2015 @09:18PM (#10422980)
So impossible really means impractical.

That HSM is still just a physical machine, and it can be, with difficulty, modified or copied.

To be impossible it would have to be mathematically impossible (or at least not within human time scales).

Re:Apple tells U.S. judge 'impossible' to unlock new iPhones by zyx321 on Wednesday October 21, 2015 @05:36AM (#10424439)
Yes. Really, REALLY impractical.

"Disassemble phone, desolder security module, dissolve the outer layers in hydrochloric acid, cut the silicon into 16nm slices, scan each layer with an electron microscope" impractical.

Re:Apple tells U.S. judge 'impossible' to unlock new iPhones by marvin on Wednesday October 21, 2015 @10:07AM (#10425476)
"In a vaccuum while avoiding all the traps that the HSM maker designed, each of which will physically destroy the key if triggered".
Re:Apple tells U.S. judge 'impossible' to unlock new iPhones by beeboop on Tuesday October 20, 2015 @09:31PM (#10423012)
Or emulated, which I am sure is not difficult for NSA.
Re:Apple tells U.S. judge 'impossible' to unlock new iPhones by ars on Tuesday October 20, 2015 @10:01PM (#10423155)
To emulate you need to copy first.
Re:Apple tells U.S. judge 'impossible' to unlock new iPhones by beeboop on Tuesday October 20, 2015 @09:30PM (#10423009)
You're missing the point. They don't need to input a pin. There's no phone involved in the process at all. They image the memory and put it on some server for processing. If there's an intermediary step, like an HSM, it is not difficult for something like the NSA to emulate.
Re:Apple tells U.S. judge 'impossible' to unlock new iPhones by superuser2 on Tuesday October 20, 2015 @10:16PM (#10423236)
You claim the contents of memory are encrypted with a 4-digit PIN; I'm telling you this is false, they're encrypted with a 256-bit key held inside the HSM [0]. It matters because a 4-digit AES key is indeed trivial to crack but a 256-bit key is not.

I'm not sure you understand what an HSM is. It doesn't help to "emulate" one. An HSM performs cryptographic operations under certain conditions (such as correct PIN entry) using internally stored keys. The whole point is that you can't get the keys out, only use them. If you had another HSM, or a logical model of one, it wouldn't contain the right keys.

Certainly as engineered systems, it's possible for HSMs to contain vulnerabilities, but getting the key out of an HSM is a much more sophisticated task than cracking a keyspace of just 10,000 possibilities. Possible, maybe.

[0]http://www.apple.com/business/docs/iOS_Security_Guide.pdf

Re:Apple tells U.S. judge 'impossible' to unlock new iPhones by Laforet on Tuesday October 20, 2015 @10:04PM (#10423168)
You can't. Crypto is done on a separate piece of silicon and dumping memory or NAND will get you nothing but scrambled bits.

From a cold boot user data is not loaded into memory until a correct pin has been entered once, and since A5 nobody has managed to compromise their bootchain it is not really viable to exploit either.

http://blog.cryptographyengineering.com/2014/10/why-cant-app...

To break such a system is not impossible, but would require some heroic effort, even nation states would probably resort to some side channel or the proverbial five dollar wrench.

Re:Apple tells U.S. judge 'impossible' to unlock new iPhones by achivetta on Tuesday October 20, 2015 @09:52PM (#10423115)
You give the HSM the pin, it returns the key used to encrypt the data, applying the rules to that interaction with you. Emulating the HSM doesn't help since it is that phone's specific HSM with the key it knows that you need to access.
Re:Apple tells U.S. judge 'impossible' to unlock new iPhones by 2bitencryption on Tuesday October 20, 2015 @08:56PM (#10422920)
Not true -- on newer iPhones this is actually done on dedicated hardware that enforces these limits.

It's actually really impressive.

Re:Apple tells U.S. judge 'impossible' to unlock new iPhones by comex on Tuesday October 20, 2015 @10:15PM (#10423226)
Well, given that the Secure Enclave is a processor, I suspect the relevant statement in the whitepaper just means that it's done by software on the SEP rather than the main processor, not that it's done purely by hardware. I could be wrong. But if I'm right, note that the SEP will take firmware upgrades signed with Apple's key, same as the main processor.