More Info:

Determines if TCP port 22 for SSH is open to the public.

Risk Level

Medium

Address

Security

Compliance Standards

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

Triage and Remediation

Remediation

To remediate the SSH port open misconfiguration in GCP using the GCP console, follow the below steps:

  1. Login to the GCP console (https://console.cloud.google.com/).
  2. Navigate to the Compute Engine section.
  3. Select the instance where the SSH port is open.
  4. Click on the “Edit” button at the top of the page.
  5. Scroll down to the “Firewall” section and click on “Management, security, disks, networking, sole tenancy”.
  6. Under the “Firewall” section, click on “Networking”.
  7. In the “Firewall rules” section, find the firewall rule that is allowing SSH access (usually named “default-allow-ssh”).
  8. Click on the checkbox next to the rule to select it.
  9. Click on the “Delete” button at the top of the page.
  10. Confirm the deletion by clicking on the “Delete” button in the confirmation dialog box.

Once the firewall rule allowing SSH access is deleted, the SSH port will no longer be open, and the misconfiguration will be remediated.

Additional Reading: