More Info:

Determines if TCP port 4333 or 3306 for MySQL is open to the public

Risk Level

Medium

Address

Security

Compliance Standards

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

Triage and Remediation

Remediation

To remediate the MySQL port open misconfiguration on GCP using the GCP console, please follow the below steps:

  1. Log in to the GCP Console (https://console.cloud.google.com/).
  2. Navigate to the GCP project that has the misconfigured MySQL port.
  3. In the navigation menu, click on “Compute Engine”.
  4. Select the VM instance that has the open MySQL port.
  5. Click on the “Edit” button at the top of the page.
  6. Scroll down to the “Firewall” section and click on “Networking”.
  7. Under the “Firewall rules” section, click on “default-allow-mysql”.
  8. Click on the “Delete” button to remove the rule.
  9. Click on the “Save” button at the bottom of the page to apply the changes.

By following the above steps, you have successfully remediated the MySQL port open misconfiguration on GCP.

Additional Reading: