Skip to content

Ensure Tencent Cloud VPC security group rules do not accept all traffic

Description

This policy checks whether Tencent Cloud VPC security group rules accept all traffic. It is essential to restrict incoming traffic to only necessary sources to prevent unauthorized access to resources. Allowing all traffic can lead to security breaches and data exposure. By limiting ingress traffic, you can significantly reduce the attack surface of your infrastructure.

Code Example

terraform
resource "tencentcloud_security_group_rule_set" "example" {
  ingress {
    cidr_block = "10.0.0.0/16"
    action    = "ACCEPT"
  }
}

Remediation

Ensure the security group rule does not accept all traffic by specifying a restricted CIDR block or IPv6 CIDR block.

Rule Details

FieldValue
IDIAC-1325
SeverityHIGH
IaC TypeTerraform
Frameworkstencentcloud_security_group_rule_set
Checkov IDCKV_TC_8

References