More Info:

AWS Config configuration changes should be monitored using CloudWatch alarms.

Risk Level

Medium

Address

Security

Compliance Standards

SOC2, AWSWAF, HITRUST, CISAWSF, PCI, GDPR, APRA, MAS, NISTCSF, CBP, NIST4

Triage and Remediation

Remediation

AWS Config Changes Alarm is triggered when certain critical changes are made to the AWS Config settings. To ensure compliance, follow these steps to create a CloudWatch alarm to monitor AWS Config changes:

  1. Sign in to the AWS Management Console.

  2. Navigate to the CloudWatch dashboard at: https://console.aws.amazon.com/cloudwatch/.

  3. In the left navigation panel, select Logs.

  4. Select the log group created for your CloudTrail event logs and click Create Metric Filter.

  5. On the Define Logs Metric Filter page, enter the following pattern in the Filter Pattern box:

{
    ($.eventSource = config.amazonaws.com) && (($.eventName = StopConfigurationRecorder)||($.eventName = DeleteDeliveryChannel)||($.eventName = PutDeliveryChannel)||($.eventName = PutConfigurationRecorder))
}
  1. Review the metric filter configuration and click Assign Metric.

  2. On the Create Metric Filter and Assign a Metric page:

    • In the Filter Name box, enter a unique name like AWSConfigChanges.
    • In the Metric Namespace box, type CloudTrailMetrics.
    • In the Metric Name box, type ConfigEventCount.
    • Click Show advanced metric settings, then enter 1 in the Metric Value box.
  3. Review the details and click Create Filter to generate the metric filter.

  4. On the next page, click Create Alarm.

  5. In the Create Alarm dialog box:

    • Provide a unique name and short description for the alarm.
    • Under Whenever: Metric Name, select >= from the dropdown and enter 1 as the threshold value.
    • Under Actions, click the + Notification button and choose the SNS topic for alarm notifications.
    • Set the Period to 5 Minutes and Statistic to Sum.
  6. Review the configuration and click Create Alarm. Once created, the alarm will be listed on the Alarms page.

Additional Reading: