This rule ensures that Key Management Service Customer Master Key rotation is enabled for enhanced security measures.
Rule | KMS CMK rotation should be enabled |
Framework | CISA-cyber-essentials |
Severity | ✔ Critical |
Rule: KMS CMK Rotation for CISA-Cyber-Essentials
Description of the Rule
AWS Key Management Service (KMS) is a managed service that makes it easy for you to create and control the cryptographic keys used to secure your data. Customer Master Keys (CMKs) are the primary resources in KMS, which can either be AWS-managed or customer-managed.
For compliance with the Cybersecurity and Infrastructure Security Agency (CISA) Cyber Essentials, it's crucial that customer-managed CMKs have automatic key rotation enabled. Key rotation refers to the process of creating a new cryptographic material for your CMK and making it the new backing key for that CMK. This enhances security by reducing the risk of a key compromise and by ensuring that data is protected with new keys periodically.
When to Enable:
When Not Necessary:
Troubleshooting Steps
Checking Rotation Status
To determine whether a customer-managed CMK has automatic key rotation enabled, you can use the AWS Management Console or the AWS CLI.
aws kms get-key-rotation-status --key-id <your-key-id>
Enabling Key Rotation
If the CMK's key rotation is not enabled, follow these steps to enable it.
aws kms enable-key-rotation --key-id <your-key-id>
Verification
Verify that key rotation has been enabled:
aws kms get-key-rotation-status --key-id <your-key-id>
Remediation
Via the AWS Management Console
Via the AWS CLI
aws kms enable-key-rotation --key-id <your-key-id>
Via Infrastructure as Code (AWS CloudFormation)
If you manage your AWS resources through CloudFormation, ensure that the
EnableKeyRotation
property of the AWS::KMS::Key
resource is set to true
.Example CloudFormation Snippet:
MyKey:
Type: 'AWS::KMS::Key'
Properties:
EnableKeyRotation: true
KeyPolicy:
...
Step-by-Step Guide for Remediation
Identify CMKs
Check Rotation
Enable Rotation
Verify Changes
Document Changes
Monitor Compliance
Please note that the above information does not constitute specific SEO advice, but the structuring of this text is designed to be clear and informative, which can contribute positively to SEO. The practical and concise nature of the content aligned with relevant keywords (such as 'AWS KMS', 'CMK rotation', 'CISA Cyber Essentials', and 'key management') can help improve search ranking in this context.