News for hackers. Stuff that matters.
Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by karlshea on Wednesday January 24, 2018 @09:46PM (#16228362)
They don't have the SEP key (that is generated in and never leaves the Secure Enclave) which it's presumably encrypted with.
Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by bluejekyll on Wednesday January 24, 2018 @09:56PM (#16228393)
When the data is in transit between devices, what encryption is being used? I mean I could speculate a manner in which it’s possible to restrict this between two devices and their respective secure enclaves, but is Apple doing that?

This would mean that when backed up in Apple’s servers l, they’d have to backup per device... maybe they do?

Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by abalone on Thursday January 25, 2018 @12:36AM (#16229012)
The white paper goes into some detail on the encryption and key exchange mechanisms. Basically devices exchange public keys so their private keys never have to (and physically can’t) leave the SEP.

Backups are different. Those are not encrypted with device keys because obviously you want to recover from loss of device and restore to a brand new one. But if you’re not comfortable with that, you can do local encrypted backups with your own password via iTunes. And as noted the most sensitive data like HealthKit is only included in encrypted backups. White paper also discusses a special escrow service for backing up your keychain, incidentally.

Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by karlshea on Thursday January 25, 2018 @01:17AM (#16229166)
> White paper also discusses a special escrow service for backing up your keychain, incidentally.

My foggy understanding is that iCloud backups are encrypted with a key stored in iCloud Keychain, which is encrypted within the hardware security module escrow service they run, so after iOS 10 they can't actually decrypt your backup.

Edit: oh, I replied to you below as well. That video has the details but it's been awhile since I watched it.

Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by comstock on Thursday January 25, 2018 @01:39AM (#16229233)
This contradicts statements made by Apple, most information in iCloud backups is not encrypted end-to-end.

https://support.apple.com/en-us/HT202303

Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by karlshea on Thursday January 25, 2018 @01:50AM (#16229269)
See the iOS Security Guide page 55: https://www.apple.com/business/docs/iOS_Security_Guide.pdf

It sounds like (although I'm not an expert) that it would still be impossible for them to encrypt files in higher data protection classes, since the iCloud backup keys are stored within iCloud Keychain, which is end-to-end encrypted.

Edit: and honestly if I'm misinterpreting that and it's an issue for a specific person, they should just use iTunes encrypted backups and not rely on iCloud.

Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by comstock on Thursday January 25, 2018 @02:10AM (#16229326)
The statements only refer to:

“When files are created in Data Protection classes that aren’t accessible when the device is locked”

So not photos, most data.

Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by karlshea on Thursday January 25, 2018 @12:17AM (#16228942)
They do all sorts of device key exchange, if you haven't watched the talk at Black Hat I'd highly recommend it: https://youtu.be/BLGFriOKz6U?t=6m55s (link goes to beginning of Secure Enclave content, and later on in the talk he discusses iCloud which uses the SEP keys)
Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by bluejekyll on Thursday January 25, 2018 @10:53AM (#16231675)
Excellent. I’ll take a look at that, thanks for the post.
Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by comstock on Wednesday January 24, 2018 @11:09PM (#16228680)
iCloud backups can be decrypted by Apple, because they have the key the data is encrypted with serverside. Are you saying this data is different?
Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by karlshea on Thursday January 25, 2018 @12:20AM (#16228955)
iCloud backups cannot be decrypted by Apple. They use hardware security modules to encrypt that data and the keys are generated on-device and can't be read.
Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by comstock on Thursday January 25, 2018 @01:35AM (#16229219)
You’re just wrong, and spreading misinformation, please read the statements by Apple here:

https://support.apple.com/en-us/HT202303

In particular a limited subset of data uses end-to-end encryption, none of which is super interesting:

These features and their data are transmitted and stored in iCloud using end-to-end encryption: iCloud Keychain (Includes all of your saved accounts and passwords) Payment information Wi-Fi network information Home data Siri information

Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by comstock on Thursday January 25, 2018 @02:11AM (#16229329)
If I’m going to be downvotes, could someone at least link to a document that shows how these statements are incorrect?
Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by sbuk on Thursday January 25, 2018 @03:10AM (#16229516)
Downvotes are likely for “You’re just wrong, and spreading misinformation...”
Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by comstock on Thursday January 25, 2018 @04:02AM (#16229689)
I probably could have been more tactful. However the substance of my comment is correct, and while I believe Apple do great things in security and promoting privacy rights, they don’t provide end-to-end backups for most data via iCloud.

They don’t claim to, but the same misinformation gets spread every time this topic comes up on HN. If you want end-to-end encrypted cloud based backups of photos and other data on iOS you presently need to use a third party app.

Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by abalone on Thursday January 25, 2018 @01:00AM (#16229089)
Could you point to more detail on that? I know they use HSM for keychain escrow security. But the security white paper just says backup set and key are stored in the iCloud “account”, not keychain.

I know they said they could have accessed that San Bernardino terrorist’s iCloud backup if only they had one. Not sure if they’ve change the security architecture since then.

Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by karlshea on Thursday January 25, 2018 @01:14AM (#16229154)
The Black Hat talk was really great: https://youtu.be/BLGFriOKz6U?t=6m55s (link is to SEP and on-device encryption, 22:30 is iCloud stuff)

> I know they said they could have accessed that San Bernardino terrorist’s iCloud backup if only they had one. Not sure if they’ve change the security architecture since then.

I actually think they have, the shooting was in 2015 and iOS 10 was released in 2016 and was first to have some of the features he talks about in the video.

Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by comstock on Thursday January 25, 2018 @01:37AM (#16229228)
Apple, very clearly states that only the following data is end-to-end encrypted:

iCloud Keychain Payment information Wi-Fi network information Home data Siri information

So everything else, pictures, notes etc. etc. part of the iCloud backup, are not. Please not spread misinformation about this.

https://support.apple.com/en-us/HT202303

Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by abalone on Thursday January 25, 2018 @02:04AM (#16229311)
Chill. You’re extrapolating incorrectly from that brief support document. It doesn’t say that Apple can read the other encrypted stuff. The security whitepaper notes that things like iCloud backups are encrypted with keys that are stuffed into the keychain, which is then transmitted end to end encrypted.
Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by comstock on Thursday January 25, 2018 @02:15AM (#16229343)
Would you care to link to the section of the security white paper that says that? There’s a small subset of data that is encrypted end-to-end. Your photos, notes, most and most other information is not include in that.

It’s pretty obvious really, they need to know the key for encrypted at rest data in order to be able to reset your password if you desire. They absolutely do don’t currently offset end-to-end encryption on the majority of data in iCloud backups.

Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by abalone on Thursday January 25, 2018 @02:56PM (#16234028)
Not obvious. p55: “changing the iCloud password won’t invalidate existing backups.“

But you’re right, the paper doesn’t say they do encrypted iCloud backups yet. The infrastructure is there to store encrypted backup keys in the keychain and escrow them so they’re recoverable yet Apple never has access. It’s probably the same foundation for iMessages in iCloud which they are just rolling out. That lets them store your very sensitive messages in the cloud and restore them to new devices and reset your password, all without them ever having access to your keys.

See the section on keychain escrow and recovery for more detail. It’s a game changer and makes storing data in adversarial clouds feasible.

Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by comstock on Thursday January 25, 2018 @09:39PM (#16236634)
Yes, they obviously have the infrastructure to do it. However, they don’t even optionally.

Part of the reason is that people sometimes forget their passwords and that would lock them out of their backups. So they want to allow email/other methods of resetting the password and giving access to data.

But it would be nice to have it as an option. It’s worrying though that even technical people seem to believe it is end-to-end encrypted. When it very obviously isn’t.

Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by abalone on Thursday January 25, 2018 @11:28PM (#16237034)
No, Apple doesn’t need to know your backup key to reset your password and retain backups. I explained why in my previous comment. If they’re not stuffing it in iCloud Keychain (yet) it’s not because the infrastructure can’t support it in principle. See: iCloud Keychain recovery. It’s probably just a matter of maturity; they still haven’t rolled out iMessages in iCloud which is a similar case.
Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by comstock on Friday January 26, 2018 @02:11AM (#16237516)
I think they want to support the scenario of lost device, lost password, but still allow restoring data to a new device.
Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by garmaine on Thursday January 25, 2018 @05:27PM (#16235313)
If that were the case you wouldn’t be able to restore from an iCloud backup to a fresh new device. But you can.
Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by abalone on Thursday January 25, 2018 @11:33PM (#16237046)
In a simpler system yes. But they’ve developed a sophisticated system for syncing secrets called iCloud Keychain. Apple never knows your keychain. Once a new device joins your keychain circle it would in theory be able to sync backup keys and then restore, all without Apple ever knowing. They’re about to roll this out for iMessages which are also not readable by Apple. Backups are probably in the pipeline if they’re not doing it already.
Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by comstock on Friday January 26, 2018 @09:26PM (#16244493)
Only if you have multiple devices... it would be nice if they supported this optionally (it would be nice if they supported any kind of end-to-end backup optionally).
Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by karmelapple on Wednesday January 24, 2018 @11:17PM (#16228719)
Yes. The Secure Enclave stores the data like a fingerprint, and that data - to the best of my knowledge - is not backed up to the cloud.
Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by StevenRayOrr on Wednesday January 24, 2018 @11:34PM (#16228789)
"Health data can be stored in iCloud. When configured for iCloud storage, Health data is synced between devices and secured by encryption that protects the data both in transit and at rest. Health data is only included in encrypted iTunes Backups. It is not included in either unencrypted iTunes backups or iCloud Backup."

https://www.apple.com/business/docs/iOS_Security_Guide.pdf -- pg. 29 under the Health Data subsection.

Edit: @bobwaycott points out the significance of this quote in the below child comment.

Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by bobwaycott on Wednesday January 24, 2018 @11:45PM (#16228831)
> Health data is only included in encrypted iTunes Backups. It is not included in either unencrypted iTunes backups or iCloud Backup.

Unless I’m misunderstanding you, your quote disagrees with your assertion. Health data is only included in encrypted iTunes backups. It is not included in unencrypted iTunes backups or in iCloud backups.

Of course, that’s just backups. It does say it can be configured to be stored and synced between devices via iCloud, where it is encrypted in transit and at rest. That appears to indicate it is stored pre-encrypted, and does not indicate there is any way to access it outside ones devices.

Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by StevenRayOrr on Wednesday January 24, 2018 @11:48PM (#16228843)
Not your misunderstanding. My misphrasing. That's what I was trying to say.
Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by bobwaycott on Wednesday January 24, 2018 @11:50PM (#16228848)
Oh okay. My bad. :)
Re:Apple, in Sign of Health Ambitions, Adds Medical Records ... by comstock on Wednesday January 24, 2018 @11:22PM (#16228745)
Right, but we’re talking about medical data. Which in lieu of further information I assume would be backed up in the same way as iCloud data. Unless there are statements to the contrary?