Skip to content

GCP GCR Container Vulnerability Scanning is disabled

Description

This policy identifies GCP accounts where GCR Container Vulnerability Scanning is not enabled. GCR Container Analysis and other third party products allow images stored in GCR to be scanned for known vulnerabilities. Vulnerabilities in software packages can be exploited by hackers or malicious users to obtain unauthorized access to local cloud resources. It is recommended to enable vulnerability scanning for images stored in Google Container Registry.

Code Example

go
{
 "resource "google_project_services" "pass_1" {
  project = "your-project-id"
  services   = ["iam.googleapis.com", "cloudresourcemanager.googleapis.com", "containerscanning.googleapis.com"]
}

",
}

Remediation

Terraform

Rule Details

FieldValue
IDIAC-0996
SeverityINFO
IaC TypeTerraform
FrameworksTerraform
Checkov IDCKV2_GCP_11

References