For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex CloudApplication Security

AWS S3 buckets do not have server side encryption misconfiguration detected in code

Rule Details

Cortex AppSec Rule ID

APPSEC_AWS_19

Category - Subcategory

Storage - Encryption

Provider

AWS

Severity

LOW

Framework

CloudFormation, Serverless, Terraform, Terraform Plan

Mapped CSPM/KSPM Rule

d0658e3d-4d59-4333-b80c-b90e2e28dbaa

Impact

SSE helps prevent unauthorized access to S3 buckets. Encrypting and decrypting data at the S3 bucket level is transparent to users when accessing data.

How to Fix

Resource: aws_s3_bucket, aws_s3_bucket_server_side_encryption_configuration

Ensure that the bucket is encrypted using either AES256 or a KMS key

CloudFormation

  • Resource: AWS::S3::Bucket

  • Arguments: Properites.BucketEncryption [source,go]


resource "aws_s3_bucket_server_side_encryption_configuration" "example" {

  • bucket = aws_s3_bucket.example.bucket

  • rule {

  • apply_server_side_encryption_by_default {

  • kms_master_key_id = aws_kms_key.mykey.arn

  • sse_algorithm = "AES256"

  • }

  • }

  • }


Type: AWS::S3::Bucket Properties: ...

  • BucketEncryption:

  • ServerSideEncryptionConfiguration:

    • ServerSideEncryptionByDefault:

  • SSEAlgorithm: AES256


Last updated

Was this helpful?