Control: 2.8 Ensure rotation for customer created CMKs is enabled
AWS Key Management Service (KMS) allows customers to rotate the backing key which is key material stored within the KMS which is tied to the key ID of the Customer Created customer master key (CMK). It is the backing key that 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 take place transparently. It is recommended that CMK key rotation be enabled.
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.
Via the Management Console:
- Sign in to the AWS Management Console and open the IAM console.
- In the left navigation pane, choose
- Select a customer created master key (CMK).
- Under the
Key Policysection, move down to
- Check the
Rotate this key every yearcheckbox.
- Run the following command to enable key rotation:
aws kms enable-key-rotation --key-id <kms_key_id>
Run the control in your terminal:
steampipe check aws_compliance.control.cis_v120_2_8
Snapshot and share results via Steampipe Cloud:
steampipe loginsteampipe check --share aws_compliance.control.cis_v120_2_8
This control uses a named query:kms_cmk_rotation_enabled