GCP-VM-instances-have-serial-port-access-enabled
Severity: Low
Description: This control ensures 'Enable connecting to serial ports' is not enabled for VM Instance. Interacting with a serial port is often referred to as the serial console, which is like using a terminal window, in that input and output is entirely in text mode and there is no graphical interface or mouse support. If you enable the interactive serial console on an instance, clients can attempt to connect to that instance from any IP address. Therefore, interactive serial console support should be disabled
Remediation Steps:
Perform following To ensure Enable connecting to serial ports is not enabled for VM Instance:
Google Cloud Console:
Sign in to GCP Console https://console.cloud.google.com.
Go to Compute Engine.
Go to VM instances.
Click on the Specific VM.
Click Edit.
Unselect Enable connecting to serial ports below Remote access block
Click Save
gcloud command-line tool:
Use the below command to disable:
gcloud compute instances add-metadata [VM_INSTANCE_NAME]=[region] --metadata=serial-port-enable=false
OR
gcloud compute instances add-metadata [VM_INSTANCE_NAME]=[region] --metadata=serial-port-enable=0
Important:
Kubernetes Cluster nodes are also listed as VM instances. And the Edit option for these nodes is disabled.
Reference:
CIS Google Cloud Platform Foundation Benchmark v1.2.0 - 05-01-2021: Recommendation #4.5
https://cloud.google.com/compute/docs/instances/interacting-with-serial-console
Blue Hexagon Proprietary