Cloud Application Security

A cloud application uses envelope encryption for records in object storage. Each record's data key is stored next to the record in wrapped (encrypted) form. Which design BEST ensures that an attacker who copies the entire storage bucket cannot decrypt the records?

Show the answer

Correct answerD. Keep the master key in a managed KMS or HSM, separate from storage, and allow only authorized application identities to request unwrap operations

AWhy not this: A master key stored beside the data is copied with it, so a bucket copy gives the attacker everything needed to decrypt.

BWhy not this: Obscuring file names is security through obscurity; the wrapped keys are still easy to find and gain no cryptographic protection.

CWhy not this: A key that protects keys but sits in the same place only moves the problem; copying the bucket still yields the whole chain.

DWhy this is right: The master key never leaves the KMS or HSM, and unwrap calls are access-controlled, so stolen records and wrapped keys cannot be decrypted.

The wrapped data keys are useless without the master key, so keeping that key in a KMS or HSM outside the bucket, with unwrap limited to authorized identities, means a copied bucket cannot be decrypted. Storing the master key beside the records is tempting for speed, but it is copied along with the data and gives the attacker the whole key chain.