Ensure that Elastic Load Balancer (ELB) instances do not have public IP addresses unless explicitly required, to reduce the attack surface.
Risk
ELB load balancers with public IP addresses are accessible from the internet, increasing the attack surface and potentially exposing internal services to unauthorized access.
Run this check with Prowler CLI
prowler huaweicloud --checks elb_public_exposure
Recommendation
Avoid assigning public IP addresses to ELB load balancers unless they are intended to be internet-facing.
Remediation
CLI
hcloud EIP DisassociatePublicips --publicip_id=<eip_id>
Other
- Log on to the Huawei Cloud console.
- Navigate to Elastic Load Balance.
- Select the load balancer.
- Disassociate the public IP or recreate the load balancer with an internal IP.
Source Code
Resource Type
NotDefined