AWS-CloudTrail-CloudTrail-Data-Events
Severity : High
Description: This control ensures that CloudWatch alarm exists for cloud trail events to monitor unauthorized API calls. Real-time monitoring of API calls can be achieved by directing CloudTrail Logs to CloudWatch Logs and establishing corresponding metric filters and alarms. Monitoring unauthorized API calls will help reveal application errors and may reduce time to detect malicious activity. This control checks for that account has at least one Active Multi-region Cloud trail that captures all management events, this Cloud Trail has a metric filter with recommended filter pattern, Corresponding metric filter has Alarm Actions set to an SNS Topic and Corresponding SNS Topic have active subscribers with at least one valid Subscriber. It is recommended that a metric filter and alarm be established for unauthorized API calls.
Remediation Steps:
Perform following to update CloudTrail metric filter and alarm :
Login to the AWS Management Console at https://console.aws.amazon.com
Create a metric filter
Navigate to CloudWatch service.
left navigation pane, Click on Logs.
choose the log group for CloudTrail log events reprted.
Choose Actions, and then choose Create metric filter.
On the Define pattern page, in Create filter pattern, enter the following for Filter pattern
{ ($.eventType = AwsApiCall)
}
In Test pattern, leave defaults. Choose Next.
On the Assign metric page, for Filter name, enter event name S3ApiCallEvents.
In Metric details, turn on Create new, and then enter CloudTrailMetrics for Metric namespace.
For Metric name, type S3ApiCallEventsCount.
For Metric value, type 1.
Leave Default value blank.
Choose Next.
 Review and create page, Choose Create metric filter , Select an SNS topic, choose Create new and configure the topic description.
Create alarm for the filter
On CloudWatch Logs log group details page.
On the Metric filters tab, choose Create alarm.
On the Create Alarm page, in Specify metric and conditions.
On the Configure actions page, choose In alarm.
Choose Next.
On the Add name and description , enter name for alarm and description. Choose Next.
On the Preview and create, choose Create alarm to create the alarm.
CloudWatch opens the Alarms page. The alarm's Actions column shows Pending confirmation until all email recipients on the SNS topic have confirmed.
Â
Important:
Reference:
CIS Amazon Web Services Foundations Benchmark v1.3.0 - 08-07-2020: Recommendation #4.1
Blue Hexagon Proprietary