CloudWatch log metric filter and alarm are not set for VPC route table changes Affecting CloudWatch service in AWS


Severity

0.0
medium
0
10
Severity Framework
Snyk CCSS
Rule category
Monitoring/ Accounts Monitoring

Is your environment affected by this misconfiguration?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
Frameworks
AWS-Well-ArchitectedCIS-AWSHIPAAISO-27001NIST-800-53PCI-DSSSOC-2
  • Snyk IDSNYK-CC-00194
  • creditSnyk Research Team

Description

Monitoring changes to route tables helps ensure that all VPC traffic flows through an expected path.

How to fix?

Create an aws_cloudwatch_log_metric_filter and aws_cloudwatch_metric_alarm with an appropriate pattern attribute set for an aws_cloudwatch_log_group and aws_cloudtrail set of resources.

Use the following pattern attribute set:

$.eventName=CreateRoute
$.eventName=CreateRouteTable
$.eventName=ReplaceRoute
$.eventName=ReplaceRouteTableAssociation
$.eventName=DeleteRouteTable
$.eventName=DeleteRoute
$.eventName=DisassociateRouteTable