Description
Ensure that AWS CloudTrail trails have CloudTrail Insights enabled for management events, so that CloudTrail automatically analyzes normal API call volume patterns and generates Insights events when unusual activity, such as a spike in error rates or a burst of resource provisioning calls, is detected.
Rationale
Standard CloudTrail logging records every API call but does not, by itself, highlight anomalous patterns of activity; a security team must otherwise manually build detection logic to identify unusual spikes, such as those that might indicate a compromised credential rapidly provisioning resources or a misconfigured automation looping on failed calls. CloudTrail Insights automatically establishes a baseline of normal account activity and surfaces deviations, providing an additional, low-effort detection capability for anomalous API activity.
Impact
Provides automated anomaly detection for unusual API call volume or error rate patterns
Can help surface early indicators of a compromised credential or misconfigured automation
Incurs additional cost per 100,000 events analyzed for Insights
Default Value
CloudTrail Insights is disabled by default on newly created and existing trails.
Pre-Requisites
An existing CloudTrail trail with management event logging enabled
IAM permissions to update trail Insights configuration (cloudtrail:PutInsightSelectors)
Test Plan
Sign in to the AWS Management Console at https://console.aws.amazon.com.
Navigate to AWS CloudTrail > Trails.
Select the trail to review.
Open the Insights events section of the trail configuration.
Verify that Insights events are enabled for API call rate and/or API error rate.
If Insights is disabled, follow the implementation steps.
Implementation Steps
Sign in to the AWS Management Console at https://console.aws.amazon.com.
Navigate to AWS CloudTrail > Trails and select the trail to update.
Select Edit next to the Insights events section (or under General details).
Enable CloudTrail Insights events, selecting ApiCallRateInsight and/or ApiErrorRateInsight as appropriate.
Save the configuration.
Verify Insights events begin appearing under CloudTrail > Insights after sufficient baseline data has been collected and any anomaly occurs.
Backout Plan
Sign in to the AWS Management Console at https://console.aws.amazon.com.
Navigate to AWS CloudTrail > Trails and select the affected trail.
Select Edit next to the Insights events section.
Disable CloudTrail Insights events.
Save the configuration.
Reference