Check provider logo

Default security groups restrict all traffic

vpc_default_security_group_restricts_all_traffic

Severityhigh
Servicevpc
by Prowler

Ensure that default security groups restrict all traffic to prevent unauthorized access to cloud resources.

Risk

Security groups with rules that allow open CIDR ranges (0.0.0.0/0 or ::/0) expose resources to traffic from any source on the internet. This significantly increases the attack surface and can lead to unauthorized access, data exfiltration, or service disruption.

Run this check with Prowler CLI

prowler huaweicloud --checks vpc_default_security_group_restricts_all_traffic

Recommendation

Remove or restrict security group rules that allow traffic from open CIDR ranges (0.0.0.0/0 or ::/0). Default security groups should not allow unrestricted inbound or outbound traffic.

Remediation

CLI

hcloud VPC DeleteSecurityGroupRule --security_group_rule_id=<rule_id>

Other
  1. Log on to the Huawei Cloud console
  2. Navigate to VPC > Security Groups
  3. Select the default security group
  4. Review and delete any rules with 0.0.0.0/0 or ::/0 as the source/destination
  5. Add restrictive rules as needed

Source Code

Resource Type

NotDefined

References