Other than compliance, what real risk are we mitigating by using server side encryption? AWS employees removing a hard drive with your data on it? It seems so extremely unlikely to even be worth considering. Thoughts?
You’ve about got it right.
Actually, you’ve got it exactly right.
Encryption is transparent to the attacker if they get access to our data through the web. So that’s not the threat that server side encryption addresses. It addresses if, for example, an aws employee happens to get the data without the key eg getting a storage device that may contain your data. This seems like an extremely unlikely event. Like extremely unlikely.
I wonder that too. Maybe if there’s a bug in their virtualization that would allow one user to read the whole physical disk? Or maybe they don’t have good policies for destroying old drives or failing drives
What if I get access to your data through an misconfigured S3 bucket? SSE mitigates this.
As for the Web App you mentioned, that depends entirely on how the app is configured. If you aren’t storing the keys locally, then they have to get access to the server and process that retrieves the keys or the memory with an active key, both of which can be mitigated.
I think you nailed it. Encryption is in case someone gets their hands on a hard drive. The likelyhood of that happening is really slim. So, essentially it’s a compliance “check-a-box” thing.
On the plus side, it doesn’t cost anything more and doesn’t cause any latency, so you might as well enable it.
No it doesn’t. Think carefully about this.
In data management I use customer managed encryption keys as a second level of control to give people access to the infrastructure where data is used without necessarily giving them access to read the data. This is helpful especially if you use the same key through the entire pipeline for data, so use it in streams, queues, etc. You can then feel at least a little better that you have a singular lever to fall back on for securing that data.
Midnight. An unmarked black van slowly pulls up to a sprawling, windowless building in northern Virginia.
Without making a sound, a team of six black-clad TERRORISTS creeps out of the van and across the parking lot. All are wearing ski masks and carrying AK-47s. Using a laser, the HEAD TERRORIST blinds the surveillance cameras. One of the terrorists pulls a blowtorch out of his pack to break open the locked doors.
A dark corridor inside a data center, illuminated only by the blinking lights of networks switches and the terrorists’ gun-mounted flashlights. We hear the sound of cool air whooshing through the server racks.
Suddenly, the head terrorist raises a fist. The terrorists freeze. Carefully, he reaches into the server rack and pulls out a single hard drive, snapping it free of its cables. He tears off his mask. A grin spreads across his face.
HEAD TERRORIST At last, ve have found it! A storage device containing unencrypted PII! Vith zis violation of GDPR, ve vill rule zee world!
This is hilarious!!!
Hed have to be very lucky though to have readable data sitting on that one disk in its entirety!
It’s Hollywood, they always screw up the technical details somehow.
maybe they don’t have good policies for destroying old drives or failing drives
AWS is pretty good about basic compliance stuff like this. That’s why we pay them the big bucks.
Why is SSE even optional for S3 at this point? Maybe there are valid reasons they don’t but it seems reasonable for them to just encrypt everything before it’s persisted to disk (or tape or SSD or whatever S3 actually persists on).
With CMKs, you have the added benefit of privilege separation for who has access to the data, and who has access to the key to encrypt/decrypt the data.
The encryption also proves the data was initially encrypted by someone with access to the key. This can be important for verifying the source/provenance of the data for legal or forensic reasons.
You’re both right. There are three types of Server Side Encryption for AWS S3. SSE-S3, SSE-KMS, and SSE-C.
Using SSE-C, the server does not store your encryption key and thus, in the case of a misconfigured S3 bucket, an attacker would also need access or knowledge of what your encryption key is before they would get any useful data from your S3.
Using SSE-KMS, AWS stores your encryption key but there is another layer of IAM permissions required to use it. So a misconfigured S3 bucket alone may not necessarily expose the data to an attacker, as they would also need the KMS permissions to be misconfigured and give the attacker access to that as well.
For SSE-S3, you’re right, there’s basically no protection against something like a misconfigured S3 bucket policy. SSE-S3 is, like others have mentioned, almost entirely about protecting against attackers who somehow get access to the raw hard drives on AWS, either through theft of the physical drives or perhaps some unknown 0-day that allows raw access to block-level drive data over the network. These are very very unlikely, but as someone else mentioned, even though the perceived benefits may be minimal, there is practically no downside at all to using SSE-S3, so you might as well use it. In other cloud providers, SSE-S3 (or its equivalent) are enabled by default because there is no reason not to have it. AFAIK the reason it isn’t enabled by default on AWS is for legacy reasons, but I honestly don’t know of any use cases where you would not use it.
Other than compliance, what real risk are we mitigating by using server side encryption?
I suspect that the reasons for those compliance polices to exist are actually the answers to your question.
Encrypt everything all the time. You don’t want to be the edge case. It costs virtually nothing to do it, so do it.
I see what my error was. I didnt specify i was particularly referring SSE-S3. The reason i asked the question is because i just got off the phone with an auditor that made it sound like they had a smoking gun, on the fact that we dont have default encryption enabled.
Basic SSE protects against cross-account mistakes: if you screw up your S3 policies (common) someone outside the account can’t get data they’d otherwise have access to.
CMKs allow you to tightly restrict access by operation and even protect against a compromised admin. This requires work to setup but you could do things like have microservices which can encrypt but not decrypt the data, only allow certain operations based on tags or other constraints (“any server can deposit things into our archive but access to historical data has to come from our office IP range”, etc.). Starting with no access means you can create keys which even compromised admin credentials can’t access, and you can harden other things to make it hard and very noisy to try to take over a role which does have access.
These can be useful if you have high requirements and can architect your apps carefully - if you have a does-everything monolith process it’s probably not useful. Given how many people write policies full of stars, a CMK can give you some protection against common misconfiguration where someone who gets access to a side server (remember the Capitol One WAF?) doesn’t immediately have access to everything.
Can you please expand on the scenario you mention in the first paragraph? By basic, do you mean sse-s3?