| name | cis-aws-compute-11.1 |
| description | Ensure customer-managed keys are used to encrypt AWS Fargate ephemeral storage data for Amazon ECS |
| category | cis-compute |
| version | 1.1.0 |
| author | cyberstrike-official |
| tags | ["cis","aws","compute","fargate","ecs","kms","encryption","ephemeral-storage"] |
| cis_id | 11.1 |
| cis_benchmark | CIS AWS Compute Services Benchmark v1.1.0 |
| tech_stack | ["aws"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
11.1 Ensure customer-managed keys are used to encrypt AWS Fargate ephemeral storage data for Amazon ECS (Automated)
Description
Use customer-managed AWS KMS keys to encrypt AWS Fargate ephemeral storage data for on Amazon ECS, ensuring that sensitive data remains protected during task execution.
Rationale
Customer-managed KMS keys offer enhanced control over encryption, including key rotation, access policies, and audit trails.
Impact
There are costs and configuration overhead associated with setting up and managing customer-managed keys.
Audit Procedure
Using AWS Console
- Login to the ECS console using https://console.aws.amazon.com/ecs/.
- In the left panel, click
Clusters.
- Click the name of a cluster.
- Ensure that
Fargate ephemeral storage is not set to -.
- Repeat steps 1-4 for each ECS cluster.
Using AWS CLI
Run the following command to list clusters:
aws ecs list-clusters
Run the following command to view the Fargate ephemeral storage KMS key ID configured for a cluster:
aws ecs describe-clusters --clusters <cluster-arn> --include CONFIGURATIONS --query 'clusters[*].configuration.managedStorageConfiguration.fargateEphemeralStorageKmsKeyId'
Ensure the command returns a customer-managed KMS key ARN.
Repeat for each cluster.
Expected Result
Each ECS cluster returns a valid customer-managed KMS key ARN for the Fargate ephemeral storage configuration, rather than - or empty.
Remediation
Using AWS Console
- Login to the ECS console using https://console.aws.amazon.com/ecs/.
- In the left panel, click
Clusters.
- Click the name of a cluster.
- Click
Update cluster.
- Expand the
Encryption section.
- Under
Fargate ephemeral storage, select a customer-managed KMS key.
Note: Ensure the KMS key has appropriate Fargate service permissions.
- Click
Update.
- Repeat steps 1-7 for each ECS cluster requiring remediation.
Using AWS CLI
N/A - Remediation is console-based for this control.