More Info:

Determines if TCP port 1433 or UDP port 1434 for SQL Server is open to the public.

Risk Level

Medium

Address

Security

Compliance Standards

SOC2, GDPR, HIPAA, HITRUST, NISTCSF, PCIDSS, FedRAMP

Triage and Remediation

Remediation

To remediate the SQL Server Port Should Not Be Open misconfiguration in GCP using GCP console, follow these steps:

  1. Go to the GCP console and select the project where the misconfiguration exists.
  2. Navigate to the VPC network page and select the VPC network where the SQL Server instance is running.
  3. Select the Firewall rules tab.
  4. Identify the firewall rule that allows access to the SQL Server port (default port is 1433).
  5. Click on the Edit button to modify the firewall rule.
  6. In the Source filter section, select the IP ranges that are allowed to access the SQL Server port.
  7. If the SQL Server instance is only accessed from within the VPC network, select the VPC network as the source filter.
  8. If the SQL Server instance is accessed from outside the VPC network, select the appropriate IP ranges for the source filter.
  9. Save the changes to the firewall rule.

By following these steps, you have successfully remediated the SQL Server Port Should Not Be Open misconfiguration in GCP using GCP console.

Additional Reading: