More Info:

Ensure that only images from trusted Google Cloud Platform (GCP) projects are allowed as the source for boot disks for new virtual machine instances. To enforce this constraint, enable and configure the “Define Trusted Image Projects” policy at the GCP organization level.

Risk Level

Medium

Address

Operational Maturity, Reliability, Security

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the misconfiguration of restricting the use of images in GCP using GCP console, follow these steps:

  1. Open the GCP console and select the project where the misconfiguration exists.
  2. Click on the “Navigation menu” button (☰) in the top-left corner of the console.
  3. Navigate to the “Compute Engine” section and click on “Images”.
  4. Select the image that needs to be restricted and click on the “Edit” button at the top of the page.
  5. In the “Permissions” section, click on the “Add item” button.
  6. In the “New permission” window, enter the email address of the user or group that should have access to the image.
  7. Select the “Compute Image User” role from the “Select a role” dropdown menu.
  8. Click on the “Save” button to add the new permission.
  9. Repeat steps 5-8 for each user or group that should have access to the image.
  10. Click on the “Save” button at the bottom of the page to save the changes.

By following these steps, you have successfully restricted the use of images in GCP by granting access to only authorized users or groups.