Back to Checks
Instances should have Shielded VM integrity monitoring enabled
GCP-0045
Service: computeSeverity: medium
OfficialBuilt-inVerified
Integrity monitoring helps you understand and make decisions about the state of your VM instances.
Run this check with Prowler
Run in Prowler CloudRun
prowler iac --checks GCP-0045Recommendation
Enable Shielded VM Integrity Monitoring
Check Code
# METADATA
# title: Instances should have Shielded VM integrity monitoring enabled
# description: |
# Integrity monitoring helps you understand and make decisions about the state of your VM instances.
# scope: package
# schemas:
# - input: schema["cloud"]
# related_resources:
# - https://cloud.google.com/security/shielded-cloud/shielded-vm#integrity-monitoring
# custom:
# id: GCP-0045
# long_id: google-compute-enable-shielded-vm-im
# aliases:
# - AVD-GCP-0045
# - enable-shielded-vm-im
# - google-compute-enable-shielded-vm-im
# provider: google
# service: compute
# severity: MEDIUM
# recommended_action: Enable Shielded VM Integrity Monitoring
# input:
# selector:
# - type: cloud
# subtypes:
# - service: compute
# provider: google
# examples: checks/cloud/google/compute/enable_shielded_vm_im.yaml
package builtin.google.compute.google0045
import rego.v1
deny contains res if {
some instance in input.google.compute.instances
instance.shieldedvm.integritymonitoringenabled.value == false
res := result.new("Instance does not have shielded VM integrity monitoring enabled.", instance.shieldedvm.integritymonitoringenabled)
}