More Info:

Determines if TCP port 445 for Windows SMB over TCP is open to the public.

Risk Level

Medium

Address

Security

Compliance Standards

HITRUST, GDPR, SOC2, NISTCSF, PCIDSS, FedRAMP

Triage and Remediation

Remediation

To remediate the misconfiguration “Windows SMB Port Should Not Be Open” for GCP using GCP console, follow the below steps:

  1. Open the Google Cloud Console and select the project for which you want to remediate the misconfiguration.

  2. Navigate to the Compute Engine section and select the VM instance that has the open Windows SMB port.

  3. Click on the Edit button at the top of the page.

  4. Scroll down to the Firewall section and click on “Add Firewall Rule”.

  5. In the Name field, enter a name for the firewall rule.

  6. In the Targets field, select “Specified target tags” and enter the tag that is associated with the VM instance.

  7. In the Source filter field, select “IP ranges” and enter the IP range that you want to allow access to the Windows SMB port.

  8. In the Protocols and ports field, select “Specified protocols and ports” and enter “tcp:445”.

  9. Click on the “Create” button to create the firewall rule.

  10. Once the firewall rule is created, click on the Save button to save the changes to the VM instance.

  11. Verify that the Windows SMB port is no longer open by running a port scan on the VM instance.

By following the above steps, you can remediate the misconfiguration “Windows SMB Port Should Not Be Open” for GCP using GCP console.

Additional Reading: