Data objects are decrypted automatically and transparently when they are downloaded. In your view, what type of exploit does the encryption prevent? What type of scenario? Is it to protect against compromised physical security? Is it more for compliance with data security/privacy protocols?
This will prevent a compromise in physical security allowing access to your data. However I suspect due to the design of s3 that your data is shared across many many hard drives etc for performance reasons. You would need to have all of them to restore a complete data set. It would potentially also protect against an attack in the authentication to the access ie. A malicious actor may be able to get access to the data from the AWS side but without the keys to read it.
It protects against somebody going into an AWS data center, stealing a disk drive, and reading your data off of it. Assuming AWS has reasonable physical security at their data centers, this is not a very likely scenario. In effect, s3 encryption does nothing but allow you to check off a checkbox on a compliance report somewhere.
Now, if you use KMS keys and KMS key policies, then you get additional benefits that might be real for you. But few customers actually do that.
This. It’s a box ticking feature.
“Is your data encrypted at rest”. Yes. Yes it is. ✓
This is so true (well that and rogue aws staff)
It frustrates me that control functions focus on this and neglect proper security controls
To be honest having dogs with bigger teeth guarding the data-centre would help more than on disk encryption
Is this true for EFS, EBS etc?
The security of the data comes down to key management. With S3 default encryption, anyone with read access to the bucket can automatically use the key to decrypt. If key management is transparent, then yes, it’s true for whatever application you’re asking about.
One thing it can do (if you don’t use the default aws/s3 key which is very important to note) is if some users in the account have broad s3 read privs they would not be able to decrypt data in your kms encrypted bucket if they lack the kms iam priv.
KMS key encrypted objects in S3 that get made public (intentionally or not) are nonretrievable via anonymous access. So a nice extra layer of defense.
It also prevents “unintended consequences” like when AWS inadvertently added the s3:GetObject permission to the AWS Support role that they assume in your account when they are responding to a support ticket. AWS tells you their tooling does not permit them to access S3 objects, it’s a very tightly controlled set of activities, but we only have their word for that - with the aws/s3 key, rogue AWS support operators would have had access to your S3 objects. A KMS key with a narrowly defined set of principals would have prevented that.
S3 encryption mainly thwarts unauthorized access and interception.
What’s the real benefit of KMS though? Is it to keep one key across the application (DDB, S3, etc)?
This a thousand times this, I used to demo this in every training I delivered, I used to ask, “what do you think it’s going to happen if I make this object public?” Everyone said you will be able to retrieve it, wrong!!
My man you understand AWS (and encryption) if you know this
The objects are decrypted transparently if you have access to the key.
One use of KMS keys is, as you said, to keep one key across an app, but more importantly you can put a policy on the key to determine who has encryption and decryption permissions.
KMS key policy is one of the very few ways you can prevent an admin, even the root user, from reading data.
When you’re operating at the scale AWS does, unlikely scenarios happen all the time. Why leave anything to chance, especially when at-rest encryption is so easy to do?
It also guards against the potential for a hacker coming in through the back. Even if they get into the underlying infrastructure to read the disc, they will also need to hack the key store to read anything off it. It adds another layer.
Oh, there’s no real reason not to check the box. There’s also really no practical benefit to checking the box.
So yeah, check the box. Just understand that doing so doesn’t really do anything meaningful for you. (Unless you’re using KMS keys and managing the key policy. That has practical benefits.)
Which you also have their word for. And all of the frequently audited compliance reports and what not too.
Isn’t S3 encryption enabled per default since a few weeks? I think it isn’t even possible anymore to create unencrypted buckets
It protects you from compliance auditors.