CloudTrail trails that are logging are evaluated for Insights via insight selectors, which enable anomaly detection on management-event patterns (API call and error rates). The finding pinpoints logging trails where these selectors are missing.
Risk
Without Insights, abnormal API call or error rates can go unnoticed, delaying detection of credential abuse, privilege escalation, or runaway automation. Attackers may rapidly alter policies, delete resources, or exfiltrate data before response, impacting confidentiality and availability.
prowler aws --checks cloudtrail_insights_exist
Recommendation
Enable CloudTrail Insights on all logging trails (ideally all-Region or organization trails). Activate both ApiCallRateInsight and ApiErrorRateInsight. Integrate alerts with monitoring and review anomalies regularly. Apply defense in depth and least privilege to reduce potential blast radius.
Remediation
aws cloudtrail put-insight-selectors --trail-name <TRAIL_NAME> --insight-selectors '[{"InsightType":"ApiCallRateInsight"}]'
- In the AWS Console, go to CloudTrail > Trails
- Select the trail that is logging
- Click Edit on the CloudTrail Insights section
- Enable Insights and select API call rate (or Error rate)
- Save changes
Source Code
Resource Type
AwsCloudTrailTrail
References