Check ID:
Provider: GCP
Service:
Severity: MEDIUM
Resource type:
artifacts_container_analysis_enabledProvider: GCP
Service:
artifactsSeverity: MEDIUM
Resource type:
serviceusage.googleapis.com/ServiceWhat this check verifies
Evaluates whether Artifact Analysis (containeranalysis.googleapis.com) is enabled at the project level to support vulnerability scanning and metadata for container images in Artifact Registry or Container Registry.
Risk
Absent this service, images aren’t continuously scanned, leaving known CVEs unnoticed. Attackers can run vulnerable containers, gain code execution, move laterally, and exfiltrate data, eroding the integrity and confidentiality of workloads and the software supply chain.Recommendation
Enable Artifact Analysis (containeranalysis.googleapis.com) for projects hosting container images. Integrate scan results into CI/CD policy gates, apply least privilege to findings access, and rebuild images promptly to maintain defense in depth.
Remediation
- CLI
- Terraform
- Dashboard steps
gcloud services enable containeranalysis.googleapis.com —project <PROJECT_ID>
References
- https://cloud.google.com/artifact-analysis/docs
- https://cloud.google.com/artifact-analysis/docs/container-scanning-overview
Where this check fires
This check runs on every scheduled scan against your GCP account. Findings appear at Cloud Security → Findings filterable byCheck ID = artifacts_container_analysis_enabled. 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