More Info:

Determines if UDP port 137 or 138 for NetBIOS 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 NetBIOS port being open misconfiguration in GCP using GCP console, follow these steps:

  1. Login to your GCP console.
  2. Select the project where the misconfiguration exists.
  3. Navigate to the Compute Engine section.
  4. Select the VM instance where the misconfiguration exists.
  5. Click on the “Edit” button at the top of the VM instance details page.
  6. Scroll down to the “Firewall” section.
  7. Click on “Add firewall rule”.
  8. Enter a name for the firewall rule.
  9. Set the “Action on match” to “Deny”.
  10. Set the “Targets” to “All instances in the network”.
  11. In the “Source filter” section, select “IP ranges”.
  12. Enter the IP range that you want to block.
  13. In the “Protocols and ports” section, select “Specified protocols and ports”.
  14. In the “Protocols and ports” field, enter “udp:137; udp:138; tcp:139; tcp:445” to block NetBIOS traffic.
  15. Click on the “Create” button to save the firewall rule.

After completing these steps, the NetBIOS port will be blocked for the specified IP range on the selected VM instance.

Additional Reading: