Review Shielded VM protection settings

Check effective Shielded VM protections and boot-image compatibility.

Description

On a supported Shielded VM image, omitting shieldedInstanceConfig leaves vTPM and integrity monitoring on by default. Secure Boot defaults to off. Check all three settings on the VM.

Potential impact

Integrity monitoring reports changes from the boot baseline. Secure Boot blocks untrusted boot components, so unsigned kernels or drivers may fail to load.

Remediation

Enable enableVtpm and enableIntegrityMonitoring. Test the image and drivers before enabling enableSecureBoot. For an existing VM, plan downtime and recovery, then change the settings while it is stopped. Restart the VM and check for a successful boot and integrity reports in Cloud Logging.

Examples

These are historical Deployment Manager VM excerpts. Standard support has ended. For new deployments, use a supported tool and supply the required VM settings, including a compatible boot image and network.

Before

yaml
resources:
  - name: vm-template
    type: compute.v1.instance
    properties:
      canIpForward: false

After

yaml
resources:
  - name: vm-template
    type: compute.v1.instance
    properties:
      canIpForward: false
      shieldedInstanceConfig:
        enableSecureBoot: true
        enableVtpm: true
        enableIntegrityMonitoring: true

References