8 of 50 in All Controls
aws

Mandate Encryption for Data at Rest (EBS & S3)

IDAWS-DATA-002
Severity
high
Automation
Auto
Category
data-protection
Enforcementmandatory
Complexity / Impact
low(low impact)
Risk Profile
medium likelihood(low residual)
Cloud Scopeaws:ou
Environments
productionnon-production
Target Resources
EBSS3KMS
Services
ebss3kmsorganizations
Tags
data-protectionencryptionebss3kmslanding-zonescp
Frameworks
NIST 800-53HIPAAPCI DSSISO 27001SOC 2CIS AWSAWS FSBP
Depends On
Governance
Cloud Security (quarterly)
Created
2026-05-03
Last Updated
2026-06-04

Specification & Description

Enforce encryption by default for EBS volumes and S3 buckets across the organization using AWS Organizations SCPs, EC2 account-level defaults, and S3 bucket-level default encryption settings.

Technical Specifications

Encrypting data at rest is a fundamental security requirement in any landing zone. AWS provides two complementary mechanisms that operate at different layers. At the account level, EC2 offers an "EBS encryption by default" setting that automatically encrypts all newly created EBS volumes and snapshots using a KMS key - either the AWS-managed default (aws/ebs) or a customer-managed key (CMK). At the organizational level, an SCP can deny any s3:PutObject request that lacks a valid server-side encryption header, preventing unencrypted object uploads regardless of bucket policy. Together with S3 bucket default encryption (SSE-S3 or SSE-KMS), these controls form a defense-in-depth approach that does not rely on individual developer or operator action in member accounts.

Security Rationale

Encryption at rest protects data from unauthorized access if physical storage media is compromised, decommissioned insecurely, or accessed by cloud provider staff. It is a baseline requirement in virtually every regulatory framework (PCI DSS, HIPAA, NIST, ISO 27001). Centralizing enforcement via SCP and account-level defaults removes the dependency on per-bucket or per-volume configuration, eliminating human error as a gap vector in landing zone accounts.

Business & Security Impact

Sensitive data stored on EBS volumes or in S3 buckets could be accessed by unauthorized parties if storage media is compromised, decommissioned without secure erasure, or subject to unauthorized infrastructure-level access. Without central enforcement, a single misconfigured bucket or volume in any member account creates regulatory exposure.

Policy Exceptions (2)

Accounts in the sandbox OU may be granted a time-limited exception for the S3 SCP to permit unencrypted uploads during proof-of-concept work, subject to security team approval and a maximum duration of e.g. 30 days.

Legacy EBS volumes created before this control was enforced are exempt from retroactive re-encryption if the data owner provides a risk acceptance.

Operational & Implementation Notes

BucketKeyEnabled should always be set to true on SSE-KMS configurations to reduce KMS API call volume and associated costs at scale. When selecting between SSE-S3 and SSE-KMS, prefer SSE-KMS in regulated workloads where independent key audit trails (CloudTrail KMS events) and key rotation policies are required. The DenyUnencryptedS3Uploads SCP uses StringNotLikeIfExists to avoid breaking bucket-to-bucket replication or pre-signed URL flows that do not pass the header explicitly - test in a non-production OU before promoting to root.

Compliance Framework Mappings (7)

Regulatory baselines and industry standards mapped to this control specification.

Beta
Framework / StandardMapped Requirements & ControlsControls
NIST 800-53 Rev 5NIST 800-53
SC-28
1
HIPAA Security RuleHIPAA
164.312(a)(2)(iv)
1
PCI DSS v4.0PCI DSS
3.5.1
1
ISO 27001:2022ISO 27001
A.8.24
1
SOC 2SOC 2
CC6.1
1
CIS AWS Foundations Benchmark v3.0CIS AWS
2.2.1
1
AWS Foundational Security Best PracticesAWS FSBP
EC2.7
1

* Compliance framework mappings are provided for informational architectural reference. Always verify control alignment against your organization's formal audit requirements.

Automated Detection & Rule Logic

Detection Engine: config-rule • Automated: Yes

Two AWS Config managed rules cover this control. The rule ec2-ebs-encryption-by-default flags any account-region combination where the EC2 EBS encryption-by-default setting is disabled. The rule s3-bucket-server-side-encryption-enabled flags any S3 bucket that does not have a default encryption configuration applied. Both rules should be deployed as organization-level Config rules from the management or delegated administrator account so coverage spans all member accounts.

List Non-Compliant Resources via Configbash
# EBS encryption by default
aws configservice get-compliance-details-by-config-rule \
  --config-rule-name ec2-ebs-encryption-by-default \
  --compliance-types NON_COMPLIANT

# S3 default encryption
aws configservice get-compliance-details-by-config-rule \
  --config-rule-name s3-bucket-server-side-encryption-enabled \
  --compliance-types NON_COMPLIANT
Organization-Level Config Ruleshcl
resource "aws_config_organization_managed_rule" "ebs_encryption_default" {
  name            = "ec2-ebs-encryption-by-default"
  rule_identifier = "EC2_EBS_ENCRYPTION_BY_DEFAULT"
}

resource "aws_config_organization_managed_rule" "s3_encryption" {
  name            = "s3-bucket-server-side-encryption-enabled"
  rule_identifier = "S3_BUCKET_SERVER_SIDE_ENCRYPTION_ENABLED"
}

Preventative Enforcement Policies

Deny S3 PutObjectjson
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "DenyUnencryptedS3Uploads",
      "Effect": "Deny",
      "Action": "s3:PutObject",
      "Resource": "*",
      "Condition": {
        "StringNotLikeIfExists": {
          "s3:x-amz-server-side-encryption": [
            "AES256",
            "aws:kms",
            "aws:kms:dsse"
          ]
        }
      }
    }
  ]
}
Deny Disabling EBS Encryptionjson
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "DenyDisableEBSEncryptionDefault",
      "Effect": "Deny",
      "Action": "ec2:DisableEbsEncryptionByDefault",
      "Resource": "*"
    }
  ]
}

Remediation Guide & Automation

Enable EC2 EBS encryption by default in every region for every member account. Configure S3 bucket default encryption (SSE-S3 or SSE-KMS) on all existing buckets. Apply the SCP at the OU or root level to prevent unencrypted uploads going forward. Use a customer-managed KMS key for EBS encryption where key rotation and audit trail are required.

Step-by-Step Instructions

  1. Enable 'EBS Encryption by Default' in EC2 settings for every region in every member account (automate via AWS Config remediation or a Lambda across all accounts/regions).
  2. Optionally set a customer-managed KMS key as the default EBS encryption key per region to retain key lifecycle control.
  3. For S3: apply a default encryption configuration (SSE-S3 or SSE-KMS) on every bucket, or enforce via S3 Block Public Access combined with the SCP.
  4. Apply the DenyUnencryptedS3Uploads SCP at the root or target OU in AWS Organizations.
  5. Apply the DenyDisableEBSEncryptionDefault SCP at the root to prevent member accounts from reverting the setting.
  6. Use AWS Config rules (ec2-ebs-encryption-by-default, s3-bucket-server-side-encryption-enabled) to detect remaining gaps and trigger auto-remediation.
Enable EBS Encryptionbash
# Run for each region and each member account
aws ec2 enable-ebs-encryption-by-default \
  --region eu-central-1

# Optionally set a customer-managed KMS key as the default
aws ec2 modify-ebs-default-kms-key-id \
  --kms-key-id alias/my-ebs-default-key \
  --region eu-central-1
Enable S3 Bucket Encryptionbash
aws s3api put-bucket-encryption \
  --bucket my-bucket \
  --server-side-encryption-configuration '{
    "Rules": [{
      "ApplyServerSideEncryptionByDefault": {
        "SSEAlgorithm": "aws:kms",
        "KMSMasterKeyID": "alias/my-s3-default-key"
      },
      "BucketKeyEnabled": true
    }]
  }'
EBS Encryption by Defaulthcl
# Apply in a landing zone account baseline module
resource "aws_ebs_encryption_by_default" "default" {
  enabled = true
}

resource "aws_ebs_default_kms_key" "default" {
  key_arn = aws_kms_key.ebs_default.arn
}

resource "aws_kms_key" "ebs_default" {
  description             = "Default EBS encryption key"
  deletion_window_in_days = 30
  enable_key_rotation     = true

  policy = jsonencode({
    Version = "2012-10-17"
    Statement = [
      {
        Sid       = "Enable IAM User Permissions"
        Effect    = "Allow"
        Principal = { AWS = "arn:aws:iam::${data.aws_caller_identity.current.account_id}:root" }
        Action    = "kms:*"
        Resource  = "*"
      }
    ]
  })
}
S3 Bucket Encryptionhcl
resource "aws_s3_bucket_server_side_encryption_configuration" "example" {
  bucket = aws_s3_bucket.example.id

  rule {
    apply_server_side_encryption_by_default {
      sse_algorithm     = "aws:kms"
      kms_master_key_id = aws_kms_key.s3_default.arn
    }
    bucket_key_enabled = true
  }
}

We value your privacy

We use analytics cookies to understand how visitors interact with our site and to improve the user experience. You can choose to accept or decline these cookies.