Check ID:
Provider: GCP
Service:
Severity: MEDIUM
Categories:
Resource type:
compute_image_not_publicly_sharedProvider: GCP
Service:
computeSeverity: MEDIUM
Categories:
internet-exposedResource type:
compute.googleapis.com/ImageWhat this check verifies
Custom disk images should not be shared publicly with allAuthenticatedUsers. Per Google Cloud API restrictions, allUsers cannot be assigned to Compute Engine images. The concern is allAuthenticatedUsers, which grants access to anyone with a Google account, potentially exposing application snapshots and sensitive data.Risk
Publicly shared disk images can expose sensitive data and application configurations to unauthorized users.- Any authenticated GCP user can access the image content
- Could lead to data breaches if images contain secrets or proprietary code
- Attackers may use exposed images to understand application architecture
Recommendation
Restrict access to custom disk images by removing the allAuthenticatedUsers IAM binding. Apply the principle of least privilege by granting access only to specific users, groups, or service accounts that require it.Remediation
- CLI
- Terraform
- Dashboard steps
References
Where this check fires
This check runs on every scheduled scan against your GCP account. Findings appear at Cloud Security → Findings filterable byCheck ID = compute_image_not_publicly_shared. To re-evaluate after a fix, hit Run now on the account’s schedule under Cloud Security → Schedules — the next scan re-checks this control and marks the finding fixed or keeps it persistent.
← Back to GCP checks