HIGH
Source
CloudSploit
ID
any-host-root-access

Any Host Root Access

Ensures SQL instances root user cannot be accessed from any host

Root access for SQL instance should only be allowed from whitelisted IPs to ensure secure access only from trusted entities.

Follow the appropriate remediation steps below to resolve the issue.

  1. Log in to the Google Cloud Platform Console.

  2. Scroll down the left navigation panel and choose the “SQL” option under the “Storage.” Step

  3. On the “SQL” page , click on the “Instance ID” as a link option to select the “SQL” instance.Step

  4. On the “SQL” page, click on the “Connections” under the “MASTER INSTANCE.”Step

  5. On the “Conenctions” page, scroll down the Conenctivity and check whether any “Authorised Network” is configured or it’s open to the “Public IP” to access for everyone.Step

  6. Repeat steps number 2 - 5 to check other “SQL Instances” in the account.

  7. Navigate to the “SQL” option under the “Storage”, choose the “SQL Instance” and click on the “Edit” button at the top.Step

  8. On the “Edit instance” page, scroll down and click on the “Conenctivity” under the “Configuration options.”Step

  9. On the “Conenctivity” tab, click on the “Add network” option under the “Public IP.”Step

  10. On the “New Network” tab, enter the “Network Name” and “IP Details” as per the requirement and click on the “Done” button to make the changes.Step

  11. Click on the “Save” button at the bottom of the page to make the changes.Step

  12. Repeat steps number 7 - 11 to ensure that root access for SQL instances are not allowed from any host.