Benchmark: CloudTrail
Description
This section contains recommendations for configuring CloudTrail resources.
Usage
Install the mod:
mkdir dashboardscd dashboardspowerpipe mod initpowerpipe mod install github.com/turbot/steampipe-mod-aws-compliance
Start the Powerpipe server:
steampipe service startpowerpipe server
Open http://localhost:9033 in your browser and select CloudTrail.
Run this benchmark in your terminal:
powerpipe benchmark run aws_compliance.benchmark.all_controls_cloudtrail
Snapshot and share results via Turbot Pipes:
powerpipe benchmark run aws_compliance.benchmark.all_controls_cloudtrail --share
Controls
- Ensure the S3 bucket CloudTrail logs to is not publicly accessible
- CloudTrail trails should be enabled in all regions
- At least one multi-region AWS CloudTrail should be present in an account
- CloudTrail multi region trails should be integrated with CloudWatch logs
- All S3 buckets should log S3 data events in CloudTrail
- Ensure S3 bucket access logging is enabled on the CloudTrail S3 bucket
- Ensure that Object-level logging for read events is enabled for S3 bucket
- Ensure that Object-level logging for write events is enabled for S3 bucket
- At least one trail should be enabled with security best practices
- CloudTrail trail S3 buckets MFA delete should be enabled
- At least one enabled trail should be present in a region
- At least one CloudTrail trail should be enabled in the AWS account
- CloudTrail trails should have insight selectors and logging enabled
- CloudTrail trails should be integrated with CloudWatch logs
- CloudTrail trail logs should be encrypted with KMS CMK
- CloudTrail trail log file validation should be enabled