Control: 3.9 Ensure VPC flow logging is enabled in all VPCs
VPC flow logs is a feature that enables you to capture information about the IP traffic going to and from network interfaces in your VPC. After you have created a flow log, you can view and retrieve its data in CloudWatch Logs.
VPC Flow Logs provide visibility into network traffic that traverses the VPC and can be used to detect anomalous traffic or insight during security workflows.
While setting up the VPC flow log, setting filter to
Reject will dramatically reduce the logging data accumulation for this recommendation and provide sufficient information for the purposes of breach detection, research and remediation. However, during periods of least privilege security
group engineering, setting this the filter to "All" can be very helpful in discovering existing traffic flows required for proper operation of an already running environment.
Perform the following to determine if VPC Flow logs is enabled:
- Open the Amazon VPC console at VPC
- Select required VPC to update from Your VPCs
- Choose the Flow Logs tab in the bottom section of the page.
- If no Flow Log exists, choose Create flow log
- For Filter, choose
Destination log group, select the log group to use.
- For IAM role, select the IAM role to use.
- Choose Create flow log.
steampipe check aws_compliance.control.cis_v140_3_9
This control uses a named query:vpc_flow_logs_enabled