Check provider logo

CloudTrail trail logs are encrypted at rest with a KMS key

cloudtrail_kms_encryption_enabled

Severitymedium
Servicecloudtrail
by Prowler

AWS CloudTrail trails are evaluated for use of SSE-KMS with a customer-managed KMS key to encrypt delivered log files at rest in S3. Trails without a configured KMS key are identified. Applies to single-Region and multi-Region trails.

Risk

Absent a customer-managed KMS key, log protection relies only on storage permissions. Bucket misconfigurations or stolen credentials can expose audit data, aiding evasion and lateral movement. Missing key-level controls, rotation, and usage audit weaken confidentiality and forensic integrity.

Run this check with Prowler CLI

prowler aws --checks cloudtrail_kms_encryption_enabled

Recommendation

Enable SSE-KMS on every trail using a customer-managed KMS key. Apply least privilege so only authorized roles can Decrypt, and enforce separation of duties between key admins and log readers. Rotate keys and monitor key usage to provide defense in depth for CloudTrail data.

Remediation

CLI

aws cloudtrail update-trail --name <trail_name> --kms-key-id <kms_key_arn_or_id>

Native IaC
Terraform
Other
  1. In the AWS Console, go to CloudTrail > Trails
  2. Select the trail <trail_name>, click Edit
  3. Under Log file encryption, choose Use a KMS key and select <cloudtrail_kms_key>
  4. Click Save changes

Source Code

Resource Type

AwsCloudTrailTrail

References