CIS Google Cloud Platform Foundation Benchmark v1.2.0/Virtual Machines/42 of 83
4.5Ensure 'Enable connecting to serial ports' is not enabled for VM Instance
Control family: Virtual Machines
Control description
Interacting with a serial port is often referred to as the serial console, which is similar to 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.
How to implement
ResponsibilityCustomerYou configure and operate this in your own cloud accounts.
The interactive serial console gives text access to a VM even when its network is down, and it doesn't honour the VM's firewall rules. It is useful for rescue, but left on it becomes another way in. It stays off, and is switched on only for a specific troubleshooting session.
Before you start
The same on every cloud, before the steps in the tabs.
- Agree when serial port access may be turned on (named troubleshooting only), who approves it and how quickly it is turned off again.
Evidence
- The serial console procedure and the record of each use
Not applicable. This benchmark covers Google Cloud only.
Not applicable. This benchmark covers Google Cloud only.
On Google Cloud the tasks switch off serial port access on each VM in Compute Engine, block it across the organization with a policy, and watch with Security Command Center.
Task 1Switch off serial port access on a VM
- Sign in to the Google Cloud console at console.cloud.google.com and open Compute Engine > VM instances.
- Choose the VM and, on the VM instance details page, choose Edit.
- Under Remote access, clear Enable connecting to serial ports.
- Choose Save.
- Check it: the VM instance details page shows serial port connection off.
Task 2Prevent it with the organization policy compute.disableSerialPortAccess
- Open IAM & Admin > Organization policies with the organization (or the folder that holds your projects) selected in the project picker.
- Search for compute.disableSerialPortAccess (Disable VM serial port access) and open it.
- Choose Manage policy, select Override parent's policy, choose Add a rule and set Enforcement to On.
- Choose Set policy.
- Check it: trying to turn serial port access on for a VM is refused.
Task 3Keep it checked with the Security Health Analytics finding COMPUTE_SERIAL_PORTS_ENABLED
- Open Security Command Center > Findings for the organization (Security Health Analytics runs on the Premium tier for most detectors).
- In the query editor, filter on category COMPUTE_SERIAL_PORTS_ENABLED with state ACTIVE, and select Apply.
- Open each finding, read the resource and the explanation it gives, and switch off serial access on the VM it names.
- Check it: after the next Security Health Analytics scan, no active COMPUTE_SERIAL_PORTS_ENABLED finding remains.
Evidence
- VM instance details, showing serial port access off
- The compute.disableSerialPortAccess policy, enforced
- Security Command Center, with no active COMPUTE_SERIAL_PORTS_ENABLED finding
Console steps as of 5 November 2026. Not every step has been confirmed in a live console yet, and menus and labels can move between releases, so look for the nearest match if one has changed.