Independent Tor encyclopedia Guides

GUIDES

Privacy-Preserving Backups: Encryption, Storage, and Recovery

Encrypt a backup before it is stored, or use one the provider cannot read. Keep the key off that copy, and test that you can restore it.

Short answer: A backup is a separate copy you can restore. It stays private only if it was encrypted before it was stored, with a key the storage provider does not have, or if the provider’s own design never gives the provider that key. Keep the key somewhere other than the only copy of the backup. Then restore something from it, so you know the copy opens.

The path

A private backup Your data is encrypted with a key you hold. The encrypted copy sits in storage. A restore test checks that the copy opens. A note says a provider can read a backup that was not encrypted first. 1 Data The files you need 2 Key you hold Not in that copy 3 Encrypted copy In storage 4 Restore test Open a file If it was not encrypted first The provider can read it Storage is not the same thing as a key only you hold. A private backup Your data is encrypted with a key you hold. The encrypted copy sits in storage. A restore test checks that the copy opens. A note says a provider can read a backup that was not encrypted first. 1 Data The files you need 2 Key you hold Kept off that copy 3 Encrypted copy Stored 4 Restore test Open a file from it If it was not encrypted first The provider can read it
Data, a key you hold, an encrypted copy in storage, and a restore test. A provider can read a backup that was not encrypted before it was stored.

Encrypt before the copy is stored

A storage provider can read a backup that was not encrypted first. Encryption applied only with a key the provider also holds does not keep the provider out. The provider has the copy and the means to open it.

Apple’s iCloud Backup security guide is a concrete version of that line. By default, the iCloud Backup service key is stored in hardware security modules in Apple data centers. Apple puts that key in the category it calls available-after-authentication. It is not end-to-end encrypted. If you turn on Advanced Data Protection for iCloud, Apple says that same service key is end-to-end encrypted and available only on your trusted devices.

Apple’s guide to Advanced Data Protection describes the change. Service keys that had been uploaded to those modules are deleted from them and kept in the account’s iCloud Keychain protection domain. Apple says it can no longer read or access those keys. iCloud Backup is one of the categories that move under that protection. The Electronic Frontier Foundation’s account of the setting is the same fact in plainer words: data Apple could previously access, because Apple could undo the encryption, can instead be encrypted so that you hold the keys. Apple then cannot access the data, and Apple cannot help you get it back if recovery fails.

Either encrypt the copy on the device before it is stored, or use a backup whose provider never receives the key. Those are the two forms that match the diagram. A chat that is end-to-end encrypted on the phone is a different object from the file you store later. WhatsApp’s help page, covered in secure messaging, treats an end-to-end encrypted backup as its own setting, unlocked with a key only you can use.

Keep the key somewhere other than the only backup

Apple’s recovery key is a 28-character code you can use, with a trusted phone number and an Apple device, to get back into the account. If you use Advanced Data Protection, Apple says the key can also help you reach the end-to-end encrypted iCloud data. Apple does not keep a copy of the recovery key. If you lose it, Apple cannot hand it back.

Apple’s instruction on where to put it is the practical half. Print it or write it down. Consider more than one place. Do not store it in Apple Passwords, iCloud Photos, Notes, or iCloud Drive. If you lose the account, you cannot open those to read the key. A recovery contact is the other method Apple accepts: someone with an Apple device who can help you get a code, and who, as EFF notes, does not receive your data. Apple says that if the recovery methods fail, Apple cannot recover the end-to-end encrypted iCloud data.

The key has to be somewhere you can still reach when the backup is the thing you are trying to open. That place is not the only copy of the backup.

Test that you can restore

CISA describes a backup as a separate copy of the material you cannot afford to lose, and it tells you to protect that copy with encryption and with an offline copy. It also tells you to test the procedure, so you can restore data fully and in part. A file you have never opened is not yet a backup you know how to use.

The test is ordinary. Take a file you would actually miss, restore it from the encrypted copy, and confirm that it opens and that it is the file you meant. If the key is wrong, or the copy is incomplete, you find out while you still have the original. Apple’s warning is what happens if you skip that and the recovery methods then fail: Apple cannot reconstruct the end-to-end encrypted data for you. The guide to business continuity and recovery makes the same practical point about a second copy you have actually opened.

Sources