CloudTrail logs without a configured KMS key

Configure KMS encryption to meet log key-management requirements.

Description

CloudTrail encrypts the logs it delivers to S3. If your organization must control the key policy and decryption permissions, select a customer managed key with KMSKeyId.

Potential impact

Missing key permissions can interrupt delivery or prevent approved readers from opening the logs.

Remediation

Choose a symmetric KMS key in the log bucket’s Region. Grant CloudTrail permission to encrypt and approved readers permission to decrypt, along with the corresponding S3 write and read access. Inspect a newly delivered log’s S3 properties for the intended KMS key and confirm an approved reader can open the file.

Examples

Both templates log across Regions to LogBucket. Replace the example key ARN with one in the bucket’s Region.

Before

yaml
Resources:
  Trail:
    Type: AWS::CloudTrail::Trail
    Properties:
      S3BucketName: !Ref LogBucket
      IsLogging: true
      IsMultiRegionTrail: true

After

yaml
Resources:
  Trail:
    Type: AWS::CloudTrail::Trail
    Properties:
      S3BucketName: !Ref LogBucket
      IsLogging: true
      IsMultiRegionTrail: true
      KMSKeyId: arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012

References