Benchmark: CloudTrail
Description
This benchmark provides a set of controls that detect Terraform AWS CloudTrail resources deviating from security best practices.
Usage
Install the mod:
mkdir dashboardscd dashboardspowerpipe mod initpowerpipe mod install github.com/turbot/steampipe-mod-terraform-aws-complianceStart the Powerpipe server:
steampipe service startpowerpipe serverOpen http://localhost:9033 in your browser and select CloudTrail.
Run this benchmark in your terminal:
powerpipe benchmark run terraform_aws_compliance.benchmark.cloudtrailSnapshot and share results via Turbot Pipes:
powerpipe benchmark run terraform_aws_compliance.benchmark.cloudtrail --shareControls
- Ensure CloudTrail is enabled in all regions
 - CloudTrail event data should be stored encrypted with KMS CMK
 - CloudTrail trail logs should be encrypted with KMS CMK
 - CloudTrail trail should have SNS topic enabled
 - CloudTrail trail log file validation should be enabled