More Info:

No security group should allow unrestricted inbound access to TCP port 5432 (PostgreSQL Database).

Risk Level

Medium

Address

Security

Compliance Standards

SOC2, GDPR, HITRUST, AWSWAF, NISTCSF, PCIDSS, FedRAMP

Triage and Remediation

Remediation

To remediate the unrestricted PostgreSQL access issue in AWS, you can follow the below steps:

  1. Go to the AWS Management Console and navigate to the RDS dashboard.
  2. Select the RDS instance that has unrestricted PostgreSQL access.
  3. Click on the “Modify” button.
  4. In the “Network & Security” section, select the “Additional Configuration” tab.
  5. Under “Security Group Rules,” locate the rule that allows unrestricted PostgreSQL access.
  6. Remove the rule by clicking on the “x” icon next to it.
  7. Add a new rule that allows access only from trusted sources.
  8. Click on the “Save Changes” button.

By following these steps, you can remediate the unrestricted PostgreSQL access issue in AWS and ensure that your PostgreSQL database is only accessible from trusted sources.

Additional Reading: