Study guide

13.1 S3 Encryption Modes & S3 Bucket Keys

AWS Certified Security – Specialty SCS-C03

Track your progress as you read

Finished sections get a check mark.

1 Chapter 0: Getting Started with the SCS-C03 Exam

0.1 SCS-C03 Exam Format, Domains & Study Strategy

2 Chapter 1: Security Monitoring, Alerting & Threat Detection Services

1.1 Workload Monitoring & Health Check Strategies 1.2 Amazon GuardDuty Architecture & Finding Types 1.3 AWS Security Hub & Automated Conformance Assessment 1.4 Amazon Macie & Automated Data Classification

3 Chapter 2: Enterprise Logging Architecture & Analysis

2.1 Multi-Account CloudTrail & Organization Trails 2.2 Amazon Security Lake & OCSF Log Normalization 2.3 Network Telemetry: VPC Flow Logs & Route 53 Resolver Logs 2.4 Troubleshooting Security Telemetry & Log Ingestion 2.5 Analyzing, Normalizing & Correlating Security Logs

4 Chapter 3: Incident Readiness, Response Planning & Automated Runbooks

3.1 Incident Response Planning & Blast Radius Mitigation 3.2 Testing & Validating Incident Response Plans 3.3 Automated Incident Remediation with EventBridge & Step Functions 3.4 Systems Manager OpsCenter & Incident Manager Runbooks

5 Chapter 4: Digital Forensics, Evidence Preservation & Root Cause Analysis

4.1 Forensic Artifact Capture & Chain of Custody 4.2 Threat Containment & Network Quarantine Techniques 4.3 Correlating Events & Root Cause Analysis with Amazon Detective

6 Chapter 5: Edge Protection, WAF & DDoS Mitigation

5.1 CloudFront Security Headers & Origin Access Control 5.2 AWS WAF Architecture & Advanced Rule Sets 5.3 AWS Shield Advanced & DDoS Defense Architectures 5.4 Edge Integrations: Managed Rule Groups, OCSF Ingestion, IoT Policies & CORS

7 Chapter 6: Compute Workload Hardening, Vulnerability Management & GenAI Security

6.1 Golden AMIs & Container Image Hardening Pipelines 6.2 Amazon Inspector Vulnerability Management & Patch Automation 6.3 Generative AI Security: Amazon Bedrock Guardrails & Model Protection 6.4 Instance Profiles, Service Roles & Execution Roles for Compute 6.5 Secure Administrative Access: Session Manager & EC2 Instance Connect

8 Chapter 7: Network Security, Segmentation, Private Connectivity & Encryption in Transit

7.1 Layered Traffic Filtering: SGs, NACLs & AWS Network Firewall 7.2 Hybrid Connectivity Security: VPN, Direct Connect & MACsec 7.3 Zero-Trust Access & Network Access Analysis 7.4 Enforcing Encryption in Transit: ELB Security Policies, TLS & HTTPS-Only Access 7.5 Private Access: VPC Endpoints, PrivateLink, Client VPN & Verified Access 7.6 Inter-Resource Encryption in Transit: Nitro, EMR, EKS & SageMaker AI

9 Chapter 8: Enterprise Authentication, Federation & Directory Services

8.1 AWS IAM Identity Center & Enterprise IdP Integration 8.2 Amazon Cognito User Pools & Identity Pools 8.3 AWS Security Token Service (STS) & Temporary Credential Workflows 8.4 Troubleshooting Identity & Authentication Failures

10 Chapter 9: Advanced Authorization Architecture & Policy Evaluation

9.1 Complete AWS Policy Evaluation Logic & Decision Flow 9.2 Permission Boundaries & Safe Admin Delegation 9.3 Attribute-Based Access Control (ABAC) with IAM Tags

11 Chapter 10: Least Privilege, Policy Validation & External Access Auditing

10.1 IAM Roles Anywhere & Amazon Verified Permissions 10.2 Auditing External & Unused Access with IAM Access Analyzer 10.3 Analyzing Authorization Failures & Policy Simulation

12 Chapter 11: Cryptographic Services: KMS Architecture & Key Governance

11.1 AWS KMS Architecture, Key Policies & Key Types 11.2 KMS Grants, Encryption Context & Multi-Region Keys 11.3 Imported Key Material (BYOK) & CloudHSM Key Stores

13 Chapter 12: Secrets Management, Sensitive Data Masking & PKI

12.1 AWS Secrets Manager & Systems Manager Parameter Store 12.2 Sensitive Data Masking in Telemetry & Messaging 12.3 AWS Certificate Manager (ACM) & Private CA Architecture

14 Chapter 13: Storage Encryption, Integrity, Lifecycle & Backup Protection

13.1 S3 Encryption Modes & S3 Bucket Keys 13.2 Data Integrity Protection: Object Lock, Vault Lock & Code Signing 13.3 Secure Data Lifecycle, Cross-Account Replication & Backup Vault Lock 13.4 Lifecycle, Backup & Secure Replication Beyond S3: EFS, FSx, DLM, DataSync & Air-Gapped Vaults

15 Chapter 14: Multi-Account Architecture, Organizations & Control Tower Governance

14.1 AWS Organizations Structure, Hierarchy & Resource Control 14.2 AWS Control Tower Landing Zone & Guardrail Framework 14.3 Delegated Administrator Architecture & Root User Governance 14.4 Centralized Resource Sharing with RAM & Service Catalog

16 Chapter 15: Compliance Automation, Infrastructure as Code Security & Auditing

15.1 Infrastructure as Code Security & Multi-Account Deployment 15.2 AWS Config, Conformance Packs & Automated Remediation 15.3 Audit Evidence Collection & Well-Architected Security Reviews

13.1 S3 Encryption Modes & S3 Bucket Keys

Key Takeaways Explain This Topic AI

Amazon S3 provides four server-side encryption options: SSE-S3 (AES-256 managed keys), SSE-KMS (AWS managed or customer managed keys), SSE-C (customer-provided keys, disabled by default for new buckets since April 2026), and DSSE-KMS (two layers of encryption with AWS KMS).

S3 Bucket Keys reduce AWS KMS request costs and throttling by up to 99% by generating time-limited intermediate data keys within S3, drastically minimizing kms:GenerateDataKey and kms:Decrypt API calls.

Cross-account access to SSE-KMS encrypted objects strictly requires a Customer Managed Key (CMK) with a key policy explicitly granting kms:Decrypt and kms:GenerateDataKey to external principals; the default AWS-managed key aws/s3 cannot be shared across accounts.

S3 bucket policies enforce encryption in transit using the aws:SecureTransport condition and mandate specific SSE algorithms or KMS CMK ARNs using s3:x-amz-server-side-encryption and s3:x-amz-server-side-encryption-aws-kms-key-id condition keys.

SSE-C requires HTTPS for all operations and places total cryptographic custody on the client; if the customer loses the 256-bit AES key, the object is permanently unrecoverable, as AWS never stores or logs customer keys.

Last updated: September 2026

13.1 S3 Encryption Modes & S3 Bucket Keys

Amazon Simple Storage Service (Amazon S3) serves as the primary object storage backbone for modern cloud architectures, hosting critical corporate assets ranging from financial transaction archives and healthcare records to container images and application backups. Protecting this data against unauthorized interception, exfiltration, and cryptographic compromise mandates a thorough understanding of AWS storage encryption mechanics, key management lifecycles, and policy-driven enforcement guardrails.

While Amazon S3 applies 256-bit Advanced Encryption Standard (AES-256) server-side encryption (SSE-S3) by default to all new objects uploaded to any S3 bucket, enterprise security teams and regulated workloads frequently demand granular key custody, independent audit trails, dual-layer cryptographic boundaries, and cost-effective scaling under high-throughput request loads. AWS satisfies these requirements through four distinct Server-Side Encryption (SSE) modes, S3 Bucket Keys , and deterministic S3 bucket policy condition keys .

Overview of S3 Server-Side Encryption Modes

When evaluating server-side encryption in Amazon S3, the fundamental architectural distinction centers on key ownership, key custody, and cryptographic processing location . In server-side encryption, Amazon S3 performs the encryption before saving the raw bits to persistent storage and decrypts the bytes upon retrieval. However, who generates, manages, audits, and stores the encryption keys varies dramatically across the available modes.

Loading diagram...

1. SSE-S3: Server-Side Encryption with Amazon S3-Managed Keys

In SSE-S3 , Amazon S3 encrypts each object with a unique 256-bit AES data key. Furthermore, S3 protects that data key using an internal master key that rotates automatically on a regular schedule.

Header : Uploads requesting SSE-S3 carry the header x-amz-server-side-encryption: AES256 .

Operational Simplicity : Fully transparent to applications. There are no KMS key policies to configure, no additional KMS API charges, and zero risk of KMS request throttling.

Limitations : SSE-S3 does not provide an independent CloudTrail audit trail of individual key decryption events. You cannot restrict access to an object based on cryptographic key permissions; anyone with s3:GetObject IAM permissions can read the decrypted object. It is impossible to enforce cryptographic separation of duties between S3 storage administrators and security officers.

2. SSE-KMS: Server-Side Encryption with AWS Key Management Service

SSE-KMS leverages AWS KMS to generate, store, and manage data encryption keys using envelope encryption. When saving an object, S3 calls kms:GenerateDataKey against the designated KMS key. KMS returns a plaintext data key (used by S3 in memory to encrypt the object payload) and a ciphertext data key (stored alongside the object metadata). Upon download, S3 passes the ciphertext data key to KMS via kms:Decrypt , receives the plaintext key, decrypts the object, and streams the plaintext payload to the authorized caller.

Header : Uploads specify x-amz-server-side-encryption: aws:kms . Optionally, callers specify the KMS key ID, ARN, or alias via x-amz-server-side-encryption-aws-kms-key-id .

Key Types :

AWS-Managed Key ( aws/s3 ) : Created automatically in your account when you first upload an SSE-KMS object without specifying a key. Key rotation is automated (every year). Key policies are managed by AWS and cannot be modified .

Customer Managed Key (CMK) : Created and controlled by your organization. Supports custom key policies, automatic annual rotation or on-demand rotation, cryptographic deletion scheduling (7 to 30 days), and cross-account access delegation.

Core Security Benefits :

Separation of Duties : An IAM principal requires two independent authorization checkpoints to access an object: s3:GetObject on the bucket/object AND kms:Decrypt on the KMS key. A compromised S3 admin without KMS access cannot decrypt data.

Full Auditability : Every call to kms:GenerateDataKey and kms:Decrypt emits an auditable AWS CloudTrail event recording the caller's identity, timestamp, IP address, and encryption context.

Architectural Bottlenecks :

KMS API Quotas : High-throughput workloads (e.g., thousands of reads/writes per second from Amazon EMR, Athena, or distributed microservices) can exhaust KMS regional Request Per Second (RPS) limits, returning ThrottlingException .

Cost Overhead : Standard KMS API calls cost $0.03 per 10,000 requests, which escalates rapidly for multi-terabyte data lakes processing hundreds of millions of objects.

3. SSE-C: Server-Side Encryption with Customer-Provided Keys

In SSE-C , the customer retains absolute custody of the encryption keys on-premises or within a self-managed key management system, but delegates the CPU-intensive encryption and decryption processing to Amazon S3.

Request Headers : When storing or retrieving an object, the client must transmit three specific HTTP headers over an HTTPS connection:

x-amz-server-side-encryption-customer-algorithm : Specifies the encryption algorithm (must be AES256 ).

x-amz-server-side-encryption-customer-key : The base64-encoded 256-bit AES encryption key.

x-amz-server-side-encryption-customer-key-MD5 : The base64-encoded 128-bit MD5 digest of the encryption key to verify key integrity.

Ephemeral Processing : S3 uses the provided key to encrypt or decrypt the object in volatile memory and immediately purges the key from memory. Amazon S3 never persists, caches, or logs customer-provided keys .

HTTPS Mandatory : Amazon S3 rejects any SSE-C request made over plain HTTP, to prevent the key from crossing the network in clear text.

Disabled by Default Since April 2026 : SSE-C is blocked for all new general purpose buckets (and for existing buckets in accounts with no SSE-C objects). To use it, set BlockedEncryptionTypes to NONE in the bucket's default encryption configuration; while blocked, SSE-C uploads, copies, and replication requests fail with HTTP 403.

The Critical Trap : If an organization loses the specific customer-provided key used to encrypt an object, the object is permanently and irrecoverably lost . AWS Support cannot decrypt or recover the data under any circumstances. Furthermore, AWS management console browsing does not support SSE-C object downloads because the console cannot supply customer-provided keys.

4. DSSE-KMS: Dual-Layer Server-Side Encryption with AWS KMS

Built for regulations that require multilayer encryption (for example, US National Security Systems guidance such as CNSSP 15 and the NSA Data-at-Rest Capability Package, which call for two independent layers of CNSA-approved encryption), Dual-Layer Server-Side Encryption (DSSE-KMS) applies two independent layers of AES-256 encryption to every stored object.

Header : Uploads specify x-amz-server-side-encryption: aws:kms:dsse .

Cryptographic Mechanics : S3 generates two independent data keys derived from an AWS KMS key. It executes two sequential, distinct cryptographic operations: the first layer encrypts the object payload, and the second layer encrypts the resulting ciphertext before committing to the underlying hardware storage.

Threat Model : Defense-in-depth against theoretical algorithmic compromise or implementation flaws within a single cryptographic implementation. If one layer of encryption were hypothetically bypassed, the second independent cryptographic layer maintains total confidentiality.

Auditability : Fully integrated with AWS KMS key policies and CloudTrail event telemetry.

No S3 Bucket Keys : DSSE-KMS can't use S3 Bucket Keys, so every object operation calls AWS KMS; plan for KMS request quotas and cost.

Detailed Architectural Comparison Table

Capability / Feature SSE-S3 SSE-KMS DSSE-KMS SSE-C Client-Side Encryption (CSE)

Key Custodian Amazon S3 AWS KMS (AWS or Customer) AWS KMS (Customer Managed) Customer (On-Prem / External) Customer (Client Application)

Encryption Performed By Amazon S3 Amazon S3 Amazon S3 (2 Layers) Amazon S3 Client Application SDK

Key Management Overhead None (Automated) Low (Key policies, rotation) Low (Key policies, rotation) High (Customer stores/tracks keys) High (Client cryptographic logic)

Independent Access Control No (S3 IAM only) Yes (S3 IAM + KMS Key Policy) Yes (S3 IAM + KMS Key Policy) Yes (Possession of key required) Yes (Client decryption key)

CloudTrail Decryption Auditing No Yes (kms:Decrypt logged) Yes (kms:Decrypt logged) No (S3 logs only, no key trace) No (Client-side, invisible to AWS)

Cross-Account Support Yes (Native S3 policy) Yes (Customer CMK only) Yes (Customer CMK only) Not applicable Yes (External key distribution)

S3 Bucket Key Support N/A (No KMS calls) Yes (Reduces KMS cost by up to 99%) No (every request calls KMS) No Not applicable

Console Object Download Yes Yes Yes No (CLI/SDK with headers only) Download raw ciphertext only

Additional Service Charges None $0.03 per 10,000 KMS requests KMS requests plus a per-GB DSSE-KMS charge None None (Client compute)

S3 Bucket Keys: Architecture & Cost Optimization

When using SSE-KMS in high-throughput architectures, every PutObject , GetObject , or multipart upload part generates an individual cryptographic request to AWS KMS ( GenerateDataKey or Decrypt ). For an analytics workload ingesting 100 million objects daily, standard KMS API charges would exceed $300 daily (over $9,000 monthly) purely in KMS request overhead, while simultaneously threatening to trigger KMS rate limit throttles.

S3 Bucket Keys resolve this bottleneck by introducing an intermediate cryptographic caching layer directly within Amazon S3.

Loading diagram...

How S3 Bucket Keys Function

Intermediate Key Derivation : When S3 Bucket Keys are enabled on an S3 bucket (or requested per-object), S3 calls AWS KMS once to generate an intermediate, time-limited S3 Bucket Key derived from the target KMS Customer Managed Key.

Local Object Key Derivation : S3 uses this intermediate bucket key to derive unique 256-bit data encryption keys for all subsequent objects written to or read from the bucket within that operational time window.

Request Reduction : By caching and reusing the intermediate bucket key within S3's secure service boundary, S3 decreases calls to AWS KMS by up to 99% .

CloudTrail Impact : CloudTrail logs a GenerateDataKey or Decrypt event only when Amazon S3 creates or refreshes the intermediate S3 Bucket Key. Individual object transactions no longer generate individual CloudTrail KMS events, dramatically reducing CloudTrail log volume.

Cross-Account Mechanics : For cross-account access to a bucket using S3 Bucket Keys, the caller's IAM role must possess kms:Decrypt permissions on the source KMS key, and the KMS key policy in the target account must explicitly trust the external account principal.

Enforcing S3 Encryption Standards via Bucket Policies

While Amazon S3 applies default encryption to all buckets, relying on default settings is insufficient for strict compliance. A client could explicitly supply headers requesting an unapproved encryption algorithm, or transmit data over cleartext HTTP. Security engineers enforce mandatory security baselines using S3 Bucket Policies containing explicit Deny statements.

1. Enforcing In-Transit Encryption ( aws:SecureTransport )

Default bucket encryption encrypts data at rest , but does not encrypt data in transit . To guarantee that all communications traverse TLS 1.2+ encrypted channels and block unencrypted HTTP requests, attach a policy with a Deny condition evaluating aws:SecureTransport : {

  • "Version": "2012-10-17",
  • "Statement": [
  • {
  • "Sid": "EnforceTLSRequestsOnly",
  • "Effect": "Deny",
  • "Principal": "*",
  • "Action": "s3:*",
  • "Resource": [
  • "arn:aws:s3:::corp-secure-data-repository",
  • "arn:aws:s3:::corp-secure-data-repository/*"
  • ],
  • "Condition": {
  • "Bool": {
  • "aws:SecureTransport": "false"
  • }
  • }
  • }
  • ]
  • }
  • 2. Mandating SSE-KMS with an Approved Customer Managed Key (CMK)

To prevent users from uploading objects using SSE-S3 ( AES256 ) or an unauthorized KMS key, implement a two-statement bucket policy. Statement 1 rejects uploads that do not use SSE-KMS. Statement 2 rejects uploads that attempt to use any KMS key other than the designated organizational CMK: {

  • "Version": "2012-10-17",
  • "Statement": [
  • {
  • "Sid": "DenyNonSSEKMSUploads",
  • "Effect": "Deny",
  • "Principal": "*",
  • "Action": "s3:PutObject",
  • "Resource": "arn:aws:s3:::corp-secure-data-repository/*",
  • "Condition": {
  • "StringNotEquals": {
  • "s3:x-amz-server-side-encryption": "aws:kms"
  • }
  • }
  • },
  • {
  • "Sid": "DenyUnapprovedKMSKeyUploads",
  • "Effect": "Deny",
  • "Principal": "*",
  • "Action": "s3:PutObject",
  • "Resource": "arn:aws:s3:::corp-secure-data-repository/*",
  • "Condition": {
  • "StringNotEquals": {

"s3:x-amz-server-side-encryption-aws-kms-key-id": "arn:aws:kms:us-east-1:123456789012:key/a1b2c3d4-e5f6-7a8b-9c0d-1e2f3a4b5c6d"

  • }
  • }
  • }
  • ]
  • }
  • 3. Mandating Dual-Layer Server-Side Encryption (DSSE-KMS)

For high-security government and defense architectures requiring dual-layer encryption, the bucket policy denies any PutObject request that fails to present the aws:kms:dsse algorithm header: {

  • "Version": "2012-10-17",
  • "Statement": [
  • {
  • "Sid": "EnforceDSSEKMSOnly",
  • "Effect": "Deny",
  • "Principal": "*",
  • "Action": "s3:PutObject",
  • "Resource": "arn:aws:s3:::defense-classified-data-store/*",
  • "Condition": {
  • "StringNotEquals": {
  • "s3:x-amz-server-side-encryption": "aws:kms:dsse"
  • }
  • }
  • }
  • ]
  • }
  • Specialty Exam Pitfalls & Architectural Traps

The AWS-Managed aws/s3 Cross-Account Trap : Attempting to share an SSE-KMS encrypted bucket across AWS accounts while using the default AWS-managed KMS key ( aws/s3 ). The external account principal will consistently receive AccessDenied on kms:Decrypt . The key policy of an AWS-managed key cannot be modified to add external AWS account IDs. Cross-account S3 sharing requires a Customer Managed Key (CMK) .

The SSE-C Lost Key Disaster : Assuming AWS Support or root credentials can recover data encrypted under SSE-C when a client loses the key. S3 never stores SSE-C keys; data recovery is mathematically impossible without the exact 256-bit key.

Default Bucket Encryption False Sense of Security : Assuming that configuring default SSE-KMS bucket encryption automatically encrypts data in transit. Default encryption applies strictly at rest. If unencrypted HTTP traffic is not explicitly denied via "aws:SecureTransport": "false" , objects and headers traverse the network in cleartext.

KMS Throttling on High-Throughput Buckets : Failing to enable S3 Bucket Keys on buckets subject to large-scale parallel processing (e.g., AWS Glue ETL, Amazon EMR clusters, high-concurrency Lambda fan-outs). Without Bucket Keys, thousands of concurrent object downloads exhaust regional KMS Request-Per-Second (RPS) quotas, causing catastrophic ThrottlingException pipeline failures.

Loading diagram... Amazon S3 Encryption Modes and S3 Bucket Keys Cryptographic Flow