Skip to content

GCP Kubernetes cluster shielded GKE node with Secure Boot disabled

Description

Enable Secure Boot for Shielded GKE Nodes to verify the digital signature of node boot components. An attacker may seek to alter boot components to persist malware or root kits during system initialization. Secure Boot helps ensure that the system only runs authentic software by verifying the digital signature of all boot components, and halting the boot process if signature verification fails.

Code Example

go
resource "google_container_cluster" "success" {
  name               = var.name
  
  ...
  node_config {
    workload_metadata_config {
      node_metadata = "GKE_METADATA_SERVER"
    }
    shielded_instance_config {
-     enable_secure_boot = false
    }
  }

Remediation

Terraform

  • Resource: google_container_cluster / google_container_node_pool
  • Arguments: node_config.shielded_instance_config.enable_secure_boot

Rule Details

FieldValue
IDIAC-0926
SeverityLOW
IaC TypeTerraform
FrameworksTerraform, TerraformPlan
Checkov IDCKV_GCP_68

References