| name | cis-aws-foundations-4.6 |
| description | Ensure rotation for customer-created symmetric CMKs is enabled |
| category | cis-logging |
| version | 7.0.0 |
| author | cyberstrike-official |
| tags | ["cis","aws","logging","kms","key-rotation","cmk","encryption"] |
| cis_id | 4.6 |
| cis_benchmark | CIS AWS Foundations Benchmark v7.0.0 |
| tech_stack | ["aws"] |
| cwe_ids | [] |
| chains_with | ["cis-aws-foundations-4.5"] |
| prerequisites | [] |
| severity_boost | {} |
Ensure rotation for customer-created symmetric CMKs is enabled
Description
AWS Key Management Service (KMS) allows customers to rotate the backing key, which is key material stored within the KMS that is tied to the key ID of the customer-created customer master key (CMK). The backing key is used to perform cryptographic operations such as encryption and decryption. Automated key rotation currently retains all prior backing keys so that decryption of encrypted data can occur transparently. It is recommended that CMK key rotation be enabled for symmetric keys. Key rotation cannot be enabled for any asymmetric CMK.
Rationale
Rotating encryption keys helps reduce the potential impact of a compromised key, as data encrypted with a new key cannot be accessed with a previous key that may have been exposed. Keys should be rotated every year or upon an event that could result in the compromise of that key.
Impact
Creation, management, and storage of CMKs may require additional time from an administrator.
Audit Procedure
Using AWS Console
- Sign in to the AWS Management Console and open the KMS console at: https://console.aws.amazon.com/kms.
- In the left navigation pane, click
Customer-managed keys.
- Select a customer-managed CMK where
Key spec = SYMMETRIC_DEFAULT.
- Select the
Key rotation tab.
- Ensure the
Automatically rotate this KMS key every year box is checked.
- Repeat steps 3-5 for all customer-managed CMKs where
Key spec = SYMMETRIC_DEFAULT.
Using AWS CLI
- Run the following command to get a list of all keys and their associated
KeyIds:
aws kms list-keys
- For each key, note the KeyId and run the following command:
aws kms describe-key --key-id <key-id>
- If the response contains
"KeySpec = SYMMETRIC_DEFAULT", run the following command:
aws kms get-key-rotation-status --key-id <kms-key-id>
- Ensure
KeyRotationEnabled is set to true.
- Repeat steps 2-4 for all remaining CMKs.
- Alternatively, the following command can be used to check all keys more comprehensively:
KEY_IDS=$(aws kms list-keys --query --output text)
KEY_ID ;
aws kms get-key-rotation-status --key-id --query --output table