# AWS Server Side Encryption

**URL:** <https://awshq.com/t/aws-server-side-encryption/11469>\
**Category:** AWS Cloud Talk\
**Created:** [August 26, 2020, 8:57pm UTC](https://awshq.com/t/aws-server-side-encryption/11469 "2020-08-26T20:57:39Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![aurelieus](https://awshq.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@aurelieus](https://awshq.com/u/aurelieus)\
**Post date:** [August 26, 2020, 8:57pm UTC](https://awshq.com/t/aws-server-side-encryption/11469/1 "2020-08-26T20:57:39Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![intrepidated](https://awshq.com/letter_avatar_proxy/v4/letter/i/439d5e/32.png) [@intrepidated](https://awshq.com/u/intrepidated)\
**Post date:** [August 26, 2020, 10:12pm UTC](https://awshq.com/t/aws-server-side-encryption/11469/2 "2020-08-26T22:12:53Z")

</div>

You’ve about got it right.

Actually, you’ve got it exactly right.

---

<div class="post-metadata">

**Author:** ![aurelieus](https://awshq.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@aurelieus](https://awshq.com/u/aurelieus)\
**Post date:** [August 26, 2020, 10:42pm UTC](https://awshq.com/t/aws-server-side-encryption/11469/3 "2020-08-26T22:42:17Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![trnka](https://awshq.com/letter_avatar_proxy/v4/letter/t/e9c0ed/32.png) [@trnka](https://awshq.com/u/trnka)\
**Post date:** [August 26, 2020, 10:47pm UTC](https://awshq.com/t/aws-server-side-encryption/11469/4 "2020-08-26T22:47:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Gen4200](https://awshq.com/letter_avatar_proxy/v4/letter/g/71e660/32.png) [@Gen4200](https://awshq.com/u/Gen4200)\
**Post date:** [August 26, 2020, 10:52pm UTC](https://awshq.com/t/aws-server-side-encryption/11469/5 "2020-08-26T22:52:51Z")

</div>

> [@aurelieus](#):
>
> 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 …

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.

---

<div class="post-metadata">

**Author:** ![joelrwilliams1](https://awshq.com/letter_avatar_proxy/v4/letter/j/5fc32e/32.png) [@joelrwilliams1](https://awshq.com/u/joelrwilliams1)\
**Post date:** [August 26, 2020, 11:35pm UTC](https://awshq.com/t/aws-server-side-encryption/11469/6 "2020-08-26T23:35:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![aurelieus](https://awshq.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@aurelieus](https://awshq.com/u/aurelieus)\
**Post date:** [August 26, 2020, 11:37pm UTC](https://awshq.com/t/aws-server-side-encryption/11469/7 "2020-08-26T23:37:49Z")

</div>

> [@Gen4200](#):
>
> 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, …

No it doesn’t. Think carefully about this.

---

<div class="post-metadata">

**Author:** ![drdiage](https://awshq.com/letter_avatar_proxy/v4/letter/d/a9a28c/32.png) [@drdiage](https://awshq.com/u/drdiage)\
**Post date:** [August 27, 2020, 12:01am UTC](https://awshq.com/t/aws-server-side-encryption/11469/8 "2020-08-27T00:01:04Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Exnixon](https://awshq.com/letter_avatar_proxy/v4/letter/e/ba9def/32.png) [@Exnixon](https://awshq.com/u/Exnixon)\
**Post date:** [August 27, 2020, 12:09am UTC](https://awshq.com/t/aws-server-side-encryption/11469/9 "2020-08-27T00:09:18Z")

</div>

_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!

---

<div class="post-metadata">

**Author:** ![aurelieus](https://awshq.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@aurelieus](https://awshq.com/u/aurelieus)\
**Post date:** [August 27, 2020, 12:12am UTC](https://awshq.com/t/aws-server-side-encryption/11469/10 "2020-08-27T00:12:22Z")

</div>

> [@Exnixon](#):
>
> _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. …

This is hilarious!!!

Hed have to be very lucky though to have readable data sitting on that one disk in its entirety!

---

<div class="post-metadata">

**Author:** ![Exnixon](https://awshq.com/letter_avatar_proxy/v4/letter/e/ba9def/32.png) [@Exnixon](https://awshq.com/u/Exnixon)\
**Post date:** [August 27, 2020, 12:14am UTC](https://awshq.com/t/aws-server-side-encryption/11469/11 "2020-08-27T00:14:59Z")

</div>

> [@aurelieus](#):
>
> 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.

---

<div class="post-metadata">

**Author:** ![zeValkyrie](https://awshq.com/letter_avatar_proxy/v4/letter/z/7feea3/32.png) [@zeValkyrie](https://awshq.com/u/zeValkyrie)\
**Post date:** [August 27, 2020, 12:29am UTC](https://awshq.com/t/aws-server-side-encryption/11469/12 "2020-08-27T00:29:34Z")

</div>

> [@trnka](#):
>
> 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

> 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.

---

<div class="post-metadata">

**Author:** ![zeValkyrie](https://awshq.com/letter_avatar_proxy/v4/letter/z/7feea3/32.png) [@zeValkyrie](https://awshq.com/u/zeValkyrie)\
**Post date:** [August 27, 2020, 12:30am UTC](https://awshq.com/t/aws-server-side-encryption/11469/13 "2020-08-27T00:30:48Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![relishketchup](https://awshq.com/letter_avatar_proxy/v4/letter/r/a88e57/32.png) [@relishketchup](https://awshq.com/u/relishketchup)\
**Post date:** [August 27, 2020, 12:38am UTC](https://awshq.com/t/aws-server-side-encryption/11469/14 "2020-08-27T00:38:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![bdtwerk](https://awshq.com/letter_avatar_proxy/v4/letter/b/a88e57/32.png) [@bdtwerk](https://awshq.com/u/bdtwerk)\
**Post date:** [August 27, 2020, 12:43am UTC](https://awshq.com/t/aws-server-side-encryption/11469/15 "2020-08-27T00:43:20Z")

</div>

> [@aurelieus](#):
>
> No it doesn’t. Think carefully about this.

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.

---

<div class="post-metadata">

**Author:** ![ABetterNameEludesMe](https://awshq.com/letter_avatar_proxy/v4/letter/a/c89c15/32.png) [@ABetterNameEludesMe](https://awshq.com/u/ABetterNameEludesMe)\
**Post date:** [August 27, 2020, 12:49am UTC](https://awshq.com/t/aws-server-side-encryption/11469/16 "2020-08-27T00:49:43Z")

</div>

> 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.

---

<div class="post-metadata">

**Author:** ![im-a-smith](https://awshq.com/letter_avatar_proxy/v4/letter/i/e47774/32.png) [@im-a-smith](https://awshq.com/u/im-a-smith)\
**Post date:** [August 27, 2020, 12:50am UTC](https://awshq.com/t/aws-server-side-encryption/11469/17 "2020-08-27T00:50:33Z")

</div>

Encrypt everything all the time. You don’t want to be the edge case. It costs virtually nothing to do it, so do it.

---

<div class="post-metadata">

**Author:** ![aurelieus](https://awshq.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@aurelieus](https://awshq.com/u/aurelieus)\
**Post date:** [August 27, 2020, 1:18am UTC](https://awshq.com/t/aws-server-side-encryption/11469/18 "2020-08-27T01:18:10Z")

</div>

> [@bdtwerk](#):
>
> 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, …

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.

---

<div class="post-metadata">

**Author:** ![acdha](https://awshq.com/letter_avatar_proxy/v4/letter/a/46a35a/32.png) [@acdha](https://awshq.com/u/acdha)\
**Post date:** [August 27, 2020, 1:19am UTC](https://awshq.com/t/aws-server-side-encryption/11469/19 "2020-08-27T01:19:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![aurelieus](https://awshq.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@aurelieus](https://awshq.com/u/aurelieus)\
**Post date:** [August 27, 2020, 1:36am UTC](https://awshq.com/t/aws-server-side-encryption/11469/20 "2020-08-27T01:36:43Z")

</div>

> [@acdha](#):
>
> 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 …

Can you please expand on the scenario you mention in the first paragraph? By basic, do you mean sse-s3?

[Next page](https://awshq.com/t/aws-server-side-encryption/11469.md?page=2)
