More Info:
Enable vulnerability scanning on images stored in GCR or Artifact Registry so known CVEs in container images are surfaced. Scanning helps prevent deploying images with exploitable vulnerabilities.Risk Level
MediumAddress
SecurityCompliance Standards
- CIS GKE
Triage and Remediation
- Remediation
Remediation
Manual Steps
Manual Steps
-
On any machine with
gcloudconfigured to the target project, enable Container Analysis API (for GCR images): -
On the same machine, enable Container Scanning API (for Artifact Registry images):
-
(Optional console check for GCR) In a browser, open:
- https://console.cloud.google.com/gcr
- Go to Settings and confirm Vulnerability Scanning is shown as ON.
-
(Optional console check for Artifact Registry) In a browser, open:
- https://console.cloud.google.com/artifacts
- Go to Settings and confirm Vulnerability Scanning is ENABLED.
-
Verify that vulnerability scanning is enabled via API on the same machine with
gcloud:
Using kubectl
Using kubectl
kubectl cannot enable image vulnerability scanning because this setting is configured at the Google Cloud project level (GCR/Artifact Registry APIs), not on Kubernetes API objects. To remediate this finding, make the changes in the Google Cloud Console or via
gcloud as described in the Manual Steps section.Automation
Automation

