Why this matters
Backups contain full datasets; encryption and access controls prevent bulk disclosure.
Write ePHI backups to storage with server-side encryption (SSE-KMS) and least-privilege access; disallow public ACLs and cross-account access without a BAA. Record the KMS key id in metadata.
Backups contain full datasets; encryption and access controls prevent bulk disclosure.
Side-by-side examples engineers can pattern-match during review.
s3.put_object().bucket("phi-backups").body(data).send().await?; // no encryptions3.put_object().bucket("phi-backups").server_side_encryption("aws:kms").ssekms_key_id(kid).metadata("kms-kid", kid).body(data).send().await?;put_object(bucket,"phi-backups", data) // defaultput_object_kms(bucket,"phi-backups", kid, data)From the same buckets as this rule.
Before persisting ePHI, encrypt using a data key protected by a Key Management Service (KMS). Use authenticated encryption (AES-256-GCM or equivalent), rotate keys, and store the key id and algorithm with the record.