✓ Human-authored analysis; AI used for formatting and proofreading.
Is encryption at rest a security theatre? The credential compromise decrypts transparently. The attacker who has API access reads the data as if it were plaintext. The encryption is "about as useful as an ashtray on a motorbike."
The other camp says it's essential defense in depth. A CMK with a scoped key policy means the attacker needs data access and key access. Without both, the backup they exfiltrated is ciphertext. The RDS snapshot they copied to their own account is unreadable.
They're describing two different configurations and calling them the same name.
The checkbox that isn't one
When a scanner reports "encryption at rest: enabled," it says nothing. That boolean collapses at least three independent properties into one, and the security posture swings from theatre to depth depending on which combination you have.
Property 1: Encryption exists. SSE-S3, SSE-KMS, or SSE-C is the default encryption setting on the bucket. This is the checkbox. Every scanner checks it. The theatre camp is right about this one in isolation. SSE-S3 with the AWS-managed key decrypts transparently for anyone with s3:GetObject permission. The encryption protects against one threat: physical theft of a drive from an AWS data center. For every other threat model, it's invisible.
Property 2: The key is yours. A customer-managed KMS key (CMK) means the key policy is a separate authorization boundary. An attacker with s3:GetObject also needs kms:Decrypt on the specific key. If the key policy is scoped to specific roles, the blast radius shrinks. The "defense in depth" camp is right here. But only if the key policy is scoped, not left at the default that grants the account root full access.
Property 3: The key is enforced. This is the property almost nobody checks, and it's the one that determines whether properties 1 and 2 hold.
Default encryption is a default. It applies when the caller doesn't specify encryption in the PutObject request. But any caller with s3:PutObject permission can include a different KMS key in the request headers including a key they control in their own account, if the bucket allows cross-account writes.
New objects get encrypted with the attacker's key. The legitimate key policy never fires. The defender's CMK with its carefully scoped policy is irrelevant for every object written after the substitution.
The fix is a bucket policy condition:
{
"Effect": "Deny",
"Principal": "*",
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::my-bucket/*",
"Condition": {
"StringNotEquals": {
"s3:x-amz-server-side-encryption-aws-kms-key-id":
"arn:aws:kms:us-east-1:111122223333:key/my-key-id"
}
}
}
Without that condition, your default encryption is a suggestion. The difference between suggestion and enforcement is one bucket policy statement. And the difference between theatre and defense in depth reduces to whether that statement exists.
Nextcloud CVE
In 2019, a researcher reported CVE-2020-8259 against Nextcloud: the public keys used for server-side encryption had no integrity protection. Anyone with access to the storage directory could replace a public key with one they generated. New files would silently encrypt to the attacker's key. Old files stayed on the legitimate key. No credentials were compromised. No vulnerability was exploited. The encryption was on. The key just wasn't pinned.
The AWS S3 configuration without key-pinning enforcement is the same attack shape moved to infrastructure. Default encryption is "on." A CMK is configured. The key policy is scoped. But the bucket policy doesn't enforce which key is used on writes, so an attacker with write access substitutes their own. The mechanism differs. HTTP request headers instead of file replacement. But the invariant violation is identical: encryption exists, but the choice of key is not controlled.
What a scanner should check
Instead of one boolean, you need a gradient:
Level 0 — No encryption. ServerSideEncryptionConfiguration is absent. Every scanner catches this.
Level 1 — Encryption enabled, AWS-managed key. SSE-S3 is the default. Protects against physical theft. Does not protect against credential compromise, API access, snapshot copy, or any threat that arrives through the AWS control plane. This is the configuration the theatre camp is correctly describing.
Level 2 — CMK configured. SSE-KMS with a customer-managed key. Adds a key-policy authorization boundary. Protects against the snapshot-copy attack (attacker copies the volume but can't decrypt without the key). Does not protect against key substitution on new writes. The "defense in depth" camp is correctly describing this level, but usually assuming properties it doesn't yet have.
Level 3 — CMK enforced. Bucket policy denies writes that don't use the designated key. Also denies writes without any encryption specified (the s3:x-amz-server-side-encryption condition). Key policy scopes kms:Encrypt and kms:GenerateDataKey to specific principals (not just kms:Decrypt). This is the configuration where encryption at rest is defense in depth. Two independent authorization boundaries (data access and key access) with no bypass path.
The debate lives in the gap between Level 2 and Level 3. And it's a gap that no scanner measures.
The compound finding
Each of these properties is individually defensible:
"The bucket uses SSE-KMS." Good.
"The key policy allows the account root." Standard practice.
"The bucket policy doesn't restrict which key is used on writes." Nobody does that.
"The key policy grants broad kms:Encrypt." It has to, for the service to work.
Each one, reported atomically, is low or medium severity. Each one, in isolation, has a reasonable justification. But the compound issues such as CMK configured without key-pinning, broad encrypt access, no deny-unencrypted policy means encryption at rest is a label. The data walks out encrypted under a key the attacker owns.
An atomic scanner reports four findings that get triaged and closed. A compound scanner reports one finding that names the attack path: key substitution is possible because the key isn't pinned, the encrypt permission is broad, and unencrypted uploads aren't denied.
The invariant
The specification that resolves the debate is three predicates and a chain:
∀ bucket where bucket.encryption.algorithm = "aws:kms":
bucket.policy DENY s3:PutObject
WHERE s3:x-amz-server-side-encryption-aws-kms-key-id
≠ bucket.encryption.kms_key_id
∀ bucket:
bucket.policy DENY s3:PutObject
WHERE s3:x-amz-server-side-encryption IS NULL
∀ kms_key:
kms_key.policy NOT GRANT kms:Encrypt, kms:GenerateDataKey
TO Principal = * | root WITHOUT Condition
CHAIN key_substitution_path:
¬key_pinned ∧ broad_encrypt_access → HIGH
These are machine-checkable. They run against a configuration snapshot. They don't require a SOC to triage. And they give a definitive answer to the question the forum can't settle: is this encryption at rest theatre, or is it defense in depth?
The answer is a configuration state.
What it depends on
It depends on three bucket policy conditions and one key policy scope. Four configuration properties, all observable, deterministic and checkable on every commit. The forum debate is a measurement failure. Two groups of practitioners looking at different configurations and calling them the same thing, because every tool they use reports the same single boolean for both.
The specification is the resolution. Write it down. Check it on every push. Stop arguing about whether encryption at rest matters, and start verifying whether yours does anything.
Top comments (0)