This rule ensures that KMS keys are not pending deletion to maintain data security.
Rule | KMS keys should not be pending deletion |
Framework | FedRAMP Low Revision 4 |
Severity | ✔ High |
Rule Description
The rule states that KMS (Key Management Service) keys should not be in a "pending deletion" state for systems that adhere to the FedRAMP (Federal Risk and Authorization Management Program) Low requirements, Revision 4. This rule ensures that cryptographic keys used for data encryption are not in a state where they can be mistakenly or maliciously deleted, which could lead to data loss or security breaches.
Remediation Steps
Follow these steps to remediate the issue and ensure compliance with the rule:
Identify pending deletion keys: Start by identifying any KMS keys that are currently in a "pending deletion" state. This can be accomplished using the AWS Command Line Interface (CLI) or the AWS Management Console.
List KMS keys: Use the following AWS CLI command to list all KMS keys:
aws kms list-keys
This command will provide a list of all KMS keys in your account.
Check key status: Review the status of each key in the list and identify any keys that are in the "pending deletion" state.
Cancel key deletion: To cancel the deletion of a KMS key, use the following AWS CLI command:
aws kms cancel-key-deletion --key-id <key-id>
Replace
<key-id>
with the ID of the key you want to cancel the deletion for.Confirm key status: Verify that the key status changes from "pending deletion" to "enabled" or "disabled" depending on the original state.
Repeat for all pending deletion keys: Repeat steps 4 and 5 for each KMS key that is in a "pending deletion" state.
Monitor key status: Regularly monitor the status of KMS keys to ensure they are not inadvertently moved to the "pending deletion" state again.
Implement safeguards: Consider implementing additional safeguards and access controls to prevent accidental or unauthorized key deletions in the future. This may include restricting key deletion permissions to specific individuals or groups.
Troubleshooting Steps
If you encounter any issues while following the remediation steps, refer to the troubleshooting guide below:
Issue: Unable to access AWS CLI or Management Console.
Issue: Unable to list KMS keys.
Issue: Unable to cancel key deletion.
Issue: Key status does not change after canceling deletion.
Conclusion
By following the remediation steps outlined above, you will ensure that KMS keys are not in a "pending deletion" state for systems complying with the FedRAMP Low requirements, Revision 4. Regularly monitoring key status and implementing suitable safeguards will help maintain compliance and strengthen the security of your encrypted data.