Public NetworkLoadBalancer with service 'Postgres SQL' (TCP:5432) is exposed to a small public network
Services and databases store data that may be sensitive, protected by law, subject to regulatory requirements or compliance standards. It is highly recommended that access to data will be restricted to encrypted protocols. This rule detects network settings that may expose data via unencrypted protocol over the public internet or to a too wide local scope.
Risk Level: Medium
Cloud Entity: Network Load Balancer
CloudGuard Rule ID: D9.AWS.NET.AG2.7.NetworkLoadBalancer.5432.TCP
Covered by Spectral: No
Category: Networking & Content Delivery
GSL LOGIC
NetworkLoadBalancer where isPublic=true and inboundRules contain [port <= 5432 and portTo >= 5432 and protocol in ('TCP','ALL')] should not have inboundRules contain [port <= 5432 and portTo >= 5432 and protocol in ('TCP','ALL') and scope isPublic() and scope numberOfHosts() > 32 and scope numberOfHosts() <= 256]
REMEDIATION
Limit the access scope for NetworkLoadBalancer with service 'Postgres SQL to only allow access in internal networks and limited scope.
If public interface exists, remove it and limit the access scope within the VPC only to applications or instances that requires access.
Amazon Reference: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/authorizing-access-to-an-instance.html
As a further protection step, Use CloudGuard 'Tamper Protection' (Full Protection mode) and region lock to prevent unauthorized changes to network access settings, refer to https://sc1.checkpoint.com/documents/CloudGuard_Dome9/Documentation/Network-Security/FullProtectionMode.html?Highlight=full%20protection for more details.
Refer to https://sc1.checkpoint.com/documents/CloudGuard_Dome9/Documentation/Network-Security/FullProtectionMode.html?Highlight=full%20protection for more details.
Network Load Balancer
A Network Load Balancer functions at the fourth layer of the Open Systems Interconnection (OSI) model. It can handle millions of requests per second. After the load balancer receives a connection request, it selects a target from the target group for the default rule. It attempts to open a TCP connection to the selected target on the port specified in the listener configuration.
Compliance Frameworks
- BP-0318
- LGPD
- NETWSEC-V2
Updated over 1 year ago