More Info:

Determines if TCP port 5900 for VNC Server is open to the public. While some ports such as HTTP and HTTPS are required to be open to the public to function properly, more sensitive services such as VNC Server should be restricted to known IP addresses.

Risk Level

Medium

Address

Security

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the misconfiguration of VNC Server Port being open in GCP using the GCP console, follow the below steps:

  1. Login to the GCP Console.

  2. Navigate to the Compute Engine section.

  3. Select the VM instance that has the open VNC server port.

  4. Click on the “Edit” button at the top of the page.

  5. Scroll down to the “Firewall” section.

  6. In the “Firewall” section, uncheck the “Allow HTTP traffic” and “Allow HTTPS traffic” options.

  7. Scroll down to the “Cloud API access scopes” section.

  8. In the “Cloud API access scopes” section, uncheck the “Allow default access” option.

  9. Click on the “Save” button to apply the changes.

  10. Verify that the VNC server port is no longer open by running a port scan on the VM instance.

  11. If the VNC server port is still open, repeat the above steps and check for any misconfiguration or errors.

By following these steps, the misconfiguration of the VNC server port being open in GCP using the GCP console can be remediated.

Additional Reading: