<  Back to rules search

Rotation for customer created CMKs is enabled

kms

Description

AWS Key Management Service (KMS) allows customers to rotate the backing key, the key material stored within the KMS. The KMS connects to the key ID of the customer created customer master key (CMK). This backing key is used to perform cryptographic operations such as encryption and decryption. Automatic key rotation retains all prior backing keys so that encrypted data can be decrypted transparently. You should enable CMK key rotation.

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.

Remediation

From the console

  1. Open the AWS KMS console.
  2. To change the AWS region, use the region selector in the upper-right corner of the page.
  3. Choose Customer managed keys.
  4. Choose the alias of the key to update in the Alias column.
  5. Choose Key rotation.
  6. Select Automatically rotate this KMS key every year and then choose Save.

From the command line

  1. Use the enable-key-rotation command to set an automatic rotation of a KMS key on an annual basis.

    aws kms enable-key-rotation \
        --region insert-region-here \
        --key-id insert-kms-key-id-here
    
  2. Use the `get-key-rotation-status’ command to verify that you’ve set the rotation correctly.

    aws kms get-key-rotation-status \
        --region insert-region-here \
        --key-id insert-kms-key-id-here
    

References

  1. https://docs.aws.amazon.com/kms/latest/developerguide/best-practices.html