Public VMInstance with service CIFS / SMB(TCP:3020) is exposed to a wide public network

Databases store data that may be sensitive, protected by law, subject to regulatory requirements or compliance standards. It is highly recommended that access to data will be restricted to only the applications, services and endpoints that requires access. This rule detects network settings that my expose an instance or a database Cassandra to a too permissive network access.

Risk Level: High
Cloud Entity: Virtual Machine Instances
CloudGuard Rule ID: D9.GCP.NET.AG2.6.VMInstance.3020.TCP
Covered by Spectral: No
Category: Compute


VMInstance where isPublic=true and nics contain-any [inboundRules contain [destinationPort<=3020 and destinationPortTo >=3020 and protocol in ('TCP','ALL')]] should not have nics contain-any [inboundRules allowedPublicHostsForPort(3020) > 32 ]


Configure your database to only allow access from internal networks and limited access scope.
If public interface exists, remove it and limit the access scope within the network only to applications or instances that requires access.
See for further reading about GCP networking and Firewall rules.

Virtual Machine Instances

Compute Engine instances can run the public images for Linux and Windows Server that Google provides as well as private custom images that you can create or import from your existing systems. You can also deploy Docker containers, which are automatically launched on instances running the Container-Optimized OS public image.

You can choose the machine properties of your instances, such as the number of virtual CPUs and the amount of memory, by using a set of predefined machine types or by creating your own custom machine types.

Compliance Frameworks

  • GCP CloudGuard Best Practices
  • GCP CloudGuard Network Security
  • GCP LGPD regulation
  • GCP Risk Management
  • GCP Security Risk Management