KMS Key Protection

    Policy Description

    What this SCP does

    This Service Control Policy (SCP) prevents deletion or disabling of KMS keys, protecting the encryption infrastructure that secures your data. This ensures encryption keys remain available for data decryption.

    By blocking attempts to schedule key deletion or disable existing KMS keys, this policy ensures that encrypted data remains accessible and prevents accidental or malicious attempts to compromise the encryption infrastructure of your organization.

    Validation Strategy

    How to test this SCP works

    To validate this SCP, create a KMS key and attempt to delete or disable it.

    • Valid test: Create a new KMS key (should succeed)
    • Invalid test: Schedule deletion of the KMS key (should be denied)
    • Invalid test: Disable the KMS key (should be denied)

    We expect attempts to schedule key deletion or disable keys to be denied with AccessDenied errors. This confirms that the SCP is preserving the accessibility of encryption infrastructure.

    SCP Policy & Validation Scenarios

    SCP Policy & Validation Scenarios

    {
      "Version": "2012-10-17",
      "Statement": [
        {
          "Sid": "DenyKMSKeyModification",
          "Effect": "Deny",
          "Action": [
            "kms:ScheduleKeyDeletion",
            "kms:DisableKey"
          ],
          "Resource": "*"
        }
      ]
    }