Git Product home page Git Product logo

Comments (6)

gabriel-cx avatar gabriel-cx commented on June 22, 2024 1

hi @joshsizer @Tohar-orca ,

Our AppSec team agrees on removing the mentioned queries. We have a PR to deal with it.
Thank you!

from kics.

joshsizer avatar joshsizer commented on June 22, 2024

I agree, this is a message that I'll always dismiss as a false-positive

from kics.

gabriel-cx avatar gabriel-cx commented on June 22, 2024

Hi @Tohar-orca @joshsizer ,

Thanks for your feedback! Our AppSec team is analyzing it. We will give you our feedback as soon as we get the info from AppSec team.

from kics.

gabriel-cx avatar gabriel-cx commented on June 22, 2024

Hi @Tohar-orca @joshsizer ,

Our internal AppSec team provided the following feedback:

This change will indeed bring default encryption for Amazon S3 new objects. Anyway, if we look at the shared documentation, existing unencrypted buckets and objects will not be changed.

Is default encryption enabled on my existing buckets that don't have default encryption configured?

Yes. Amazon S3 now configures default encryption on all existing unencrypted buckets to apply server-side encryption with S3 managed keys (SSE-S3) as the base level of encryption for new objects uploaded to these buckets. Objects that are already in an existing unencrypted bucket won't be automatically encrypted.

Will Amazon S3 encrypt my existing objects that are unencrypted?

No. Beginning on January 5, 2023, Amazon S3 only automatically encrypts new object uploads. To encrypt existing objects, you can use S3 Batch Operations to create encrypted copies of your objects.

With this in mind, I recommend that we make some changes in our query (if feasible) to simply identify the S3 and objects that are configured without SSE.

Since our AppSec team recommends to "make some changes in our query", means their perspective is to not deprecate the following queries for now:

  • assets/queries/ansible/aws/s3_bucket_sse_disabled
  • assets/queries/cloudFormation/aws/s3_bucket_sse_disabled
  • assets/queries/terraform/aws/s3_bucket_sse_disabled

What is your perspective on this?

from kics.

joshsizer avatar joshsizer commented on June 22, 2024

Thanks for the response, @gabriel-cx

The way I read the AWS response on S3 default encryption, it would appear that static analysis of S3 buckets cannot indicate if an S3 bucket has unencrypted objects in it.

All buckets, created before or after January 5, 2023, will have SSE enabled. Therefore, the SSE Bucket SSE Disabled finding will never be true.

From AWS documentation:

Can I disable encryption for the new objects being written to my bucket?

No. SSE-S3 is the new base level of encryption that's applied to all the new objects being uploaded to your bucket. You can no longer disable encryption for new object uploads.

Based on this information, I don't believe there is a case in configuration where S3 buckets will not have encryption enabled, and therefore the warning SSE Bucket SSE Disabled will always be a false positive.

As an example using Terraform, currently to resolve this finding, one must add aws_s3_bucket_server_side_encryption_configuration. In regards to security, this block is uneeded, since S3 buckets have an implicit S3-SSE encryption enabled by default for all current and new buckets. As a user of kics, I find it cumbersome to have to either add this configuration block (which doesn't materially improve data security), or dismiss the finding manually.

from kics.

gabriel-cx avatar gabriel-cx commented on June 22, 2024

@joshsizer thank you for your feedback again on this!

I opened a ticket so our AppSec team can give us feedback regarding your perspective. I will update you as soon as i get the information.

(APPSEC-2341)

from kics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.