logo

Database

Aws Key Rotation Disabled

Description

Detects AWS KMS (Key Management Service) customer master keys that have automatic key rotation disabled. When key rotation is disabled, cryptographic keys remain unchanged which increases the risk if a key is compromised since all data encrypted with that key remains vulnerable.

Weakness:

396 - Insecure service configuration - KMS

Category: Functionality Abuse

Detection Strategy

    Lists all KMS keys in the specified AWS region

    Checks the key rotation status for each active KMS key

    Reports a vulnerability when key rotation is disabled (KeyRotationEnabled = false) for any key that is not pending deletion or disabled

    Excludes keys in 'PendingDeletion' or 'Disabled' states from vulnerability reporting