Skip to main content

lacework-global-308

4.11 Ensure That Compute Instances Have Confidential Computing Enabled (Automated)

Profile Applicability

• Level 2

Description

Google Cloud encrypts data at-rest and in-transit, but customer data must be decrypted for processing. Confidential Computing is a breakthrough technology which encrypts data in-use—while it is being processed. Confidential Computing environments keep data encrypted in memory and elsewhere outside the central processing unit (CPU).

Confidential VMs leverage the Secure Encrypted Virtualization (SEV) feature of AMD EPYC™ CPUs. Customer data will stay encrypted while it is used, indexed, queried, or trained on. Encryption keys are generated in hardware, per VM, and not exportable. Thanks to built-in hardware optimizations of both performance and security, there is no significant performance penalty to Confidential Computing workloads.

Rationale

Confidential Computing enables customers' sensitive code and other data encrypted in memory during processing. Google does not have access to the encryption keys. Confidential VM can help alleviate concerns about risk related to either dependency on Google infrastructure or Google insiders' access to customer data in the clear.

Impact

  • Confidential Computing for Compute instances does not support live migration. Unlike regular Compute instances, Confidential VMs experience disruptions during maintenance events like a software or hardware update.
  • Additional charges may be incurred when enabling this security feature. See https://cloud.google.com/compute/confidential-vm/pricing for more info.

Audit

note

Confidential Computing is currently only supported on N2D machines. To learn more about types of N2D machines, visit https://cloud.google.com/compute/docs/machine-types#n2d_machine_types

From Console:

  1. Go to the VM instances page by visiting: https://console.cloud.google.com/compute/instances.

  2. Click on the instance name to see its VM instance details page.

  3. Ensure that Confidential VM service is Enabled.

From Command Line:

  1. List the instances in your project and get details on each instance:
gcloud compute instances list --format=json
  1. Ensure that enableConfidentialCompute is set to true for all instances with machine type starting with "n2d-".
confidentialInstanceConfig:
enableConfidentialCompute: true

Remediation

Confidential Computing can only be enabled when an instance is created. You must delete the current instance and create a new one.

From Console:

  1. Go to the VM instances page by visiting: https://console.cloud.google.com/compute/instances.

  2. Click CREATE INSTANCE.

  3. Fill out the desired configuration for your instance.

  4. Under the Confidential VM service section, check the option Enable the Confidential Computing service on this VM instance.

  5. Click Create.

From Command Line:

Create a new instance with Confidential Compute enabled.

gcloud beta compute instances create <INSTANCE_NAME> --zone <ZONE> --confidential-compute --maintenance-policy=TERMINATE 

References

https://cloud.google.com/compute/confidential-vm/docs/creating-cvm-instance
https://cloud.google.com/compute/confidential-vm/docs/about-cvm
https://cloud.google.com/confidential-computing
https://cloud.google.com/blog/products/identity-security/introducing-google-cloud-confidential-computing-with-confidential-vms