Skip to content

AWS route table with VPC peering overly permissive to all traffic

Description

This policy identifies VPC route tables with VPC peering connection which are overly permissive to all traffic. Being highly selective in peering routing tables is a very effective way of minimizing the impact of breach as resources outside of these routes are inaccessible to the peered VPC.

Code Example

go
{
 "resource "aws_route" "aws_route_pass_1" {
  route_table_id            = "rtb-4fbb3ac4"
  destination_cidr_block    = "10.0.1.0/22"
  vpc_peering_connection_id = "pcx-45ff3dc1"
}

",
}

Remediation

Terraform

Rule Details

FieldValue
IDIAC-0478
SeverityLOW
IaC TypeTerraform
FrameworksTerraform
Checkov IDCKV2_AWS_44

References