Virtual Machines
Section 4 of the CIS Google Cloud Platform Foundation Benchmark v5.0.0 holds 12 controls on Compute Engine virtual machines: service accounts, SSH access, disk encryption, public exposure and platform hardening. ConfigCobra assesses it read-only through a viewer-level service account, across every project in your organization or a selected list.
About this section
Section 4, Virtual Machines, covers Compute Engine instances in the CIS Google Cloud Platform Foundation Benchmark v5.0.0. It is a compact section of 12 controls out of the benchmark's 93, split into 6 Level 1 and 6 Level 2 recommendations. The controls concern how a VM authenticates to Google APIs, how people reach it, how its disks are protected and how exposed it is to the network.
By our reading of the control titles, the first theme is the identity a VM runs as. Two controls ask that instances do not use the default service account, and that they do not use the default service account with full API access. A VM with broad API scopes turns any compromise of the workload into a compromise of the project, so this is an identity control as much as a compute one.
The second theme is administrative access. Controls ask you to block project-wide SSH keys on instances, to enable OS Login for the project and to disable serial-port connections. Together they push access toward individually managed, auditable identities and away from shared keys and side-channel consoles. The third theme is network exposure: IP forwarding should not be enabled on instances, compute instances should not carry public IP addresses, and App Engine applications should enforce HTTPS connections.
The fourth theme is platform and data protection. There are controls to encrypt critical VM disks with customer-supplied encryption keys, to launch instances with Shielded VM, to enable Confidential Computing on supported instances and to keep the VM operating systems patched with the latest updates. These Level 2 recommendations are stricter and can have operational cost, for example key handling for customer-supplied keys or machine types that support Confidential Computing, so they deserve a planning step before rollout.
Practically, an administrator works on this section in the Google Cloud console under Compute Engine, in project and instance metadata, and in organization policy and IAM settings for service accounts.
ConfigCobra assesses the Google Cloud benchmark with a read-only service account that holds viewer-level roles, organization-wide so that every project in the organization is covered, or limited to a selected list of projects. It never changes anything in your environment. Findings can be produced by scheduled scans (daily, weekly or monthly) or by an ad hoc scan, and each carries a ConfigCobra severity estimate used to prioritise remediation; CIS itself publishes no severity. Remediation impact analysis shows the affected resources and identities before you apply a fix, the Google Cloud inventory lists resources across the projects in scope with their security properties, and drift detection with email notifications alerts you when a control regresses. Findings and evidence go into the PDF report.
Numbering and counts follow the CIS Google Cloud Platform Foundation Benchmark v5.0.0; the grouping into themes is ConfigCobra's own wording.
The 12 controls
| CIS ID | Check | Profile |
|---|---|---|
| 4.1 | Ensure instances are not configured to use the default service account | Level 1 |
| 4.2 | Ensure instances do not use the default service account with full API access | Level 1 |
| 4.3 | Enable "Block Project-wide SSH keys" for VM instances | Level 1 |
| 4.4 | Enable OS Login for the project | Level 1 |
| 4.5 | Disable serial-port connection on VM instances | Level 1 |
| 4.6 | Ensure IP forwarding is not enabled on instances | Level 1 |
| 4.7 | Encrypt critical VM disks with customer-supplied encryption keys (CSEK) | Level 2 |
| 4.8 | Launch compute instances with Shielded VM enabled | Level 2 |
| 4.9 | Ensure compute instances do not have public IP addresses | Level 2 |
| 4.10 | Enforce HTTPS connections for App Engine applications | Level 2 |
| 4.11 | Enable Confidential Computing on supported compute instances | Level 2 |
| 4.12 | Keep VM operating systems patched with the latest updates | Level 2 |
Check all 12 controls on your Google Cloud
ConfigCobra runs this section with the rest of the CIS Google Cloud Platform Foundation Benchmark v5.0.0, read-only.