π‘οΈ AWS KMS CMK is scheduled for deletionπ’
- Contextual name: π‘οΈ CMK is scheduled for deletionπ’
- ID:
/ce/ca/aws/kms/cmk-scheduled-deletion - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY,RELIABILITY
Logicβ
- π§ prod.logic.yamlπ’
- π AWS KMS Key
- π AWS KMS Key - object.extracts.yaml
- π§ͺ test-data.json
Similar Policiesβ
- AWS Security Hub: [KMS.3] AWS KMS keys should not be deleted unintentionally
Descriptionβ
Descriptionβ
This policy identifies AWS KMS Customer-Managed Keys (CMKs) that are scheduled for deletion. A KMS key should only be deleted when you are certain it is no longer required. If there is any uncertainty, it is recommended to disable the key instead. You can re-enable a disabled KMS key or cancel its scheduled deletion; however, once a key is deleted, it cannot be recovered.
Rationaleβ
Deleting an AWS KMS key is a destructive and irreversible operation. It permanently removes the key material and all associated metadata. Once a KMS key is deleted, any data encrypted with that key becomes unrecoverable. This risk is particularly critical for asymmetric KMS keys used for encryption because users can continue encrypting data with the public key even after the private key has been deleted, resulting in ciphertexts that can never be decrypted.
Auditβ
This policy flags an AWS KMS Key as
INCOMPLIANTif theDeletion Datefield is not empty, indicating that the key is scheduled for deletion.The Key is marked as
INAPPLICABLEif theManagerfield is not CUSTOMER, as only customer-managed keys can be scheduled for deletion.
Remediationβ
Remediationβ
Cancel Key Deletionβ
From AWS CLIβ
Use the following command to cancel the scheduled deletion of a KMS key:
aws kms cancel-key-deletion \
--key-id {{key-id}}This command changes the key status from PendingDeletion to Disabled.
Disable Keyβ
If you no longer need to use a key but want to retain it for potential future use, disable it instead of deleting it:
aws kms disable-key \
--key-id {{key-id}}Disabling a key prevents its use in cryptographic operations until it is re-enabled.