Skip to content

Commit 00ca916

Browse files
author
Svetlin Zamfirov
authored
Ensure secure boot is enabled for Shielded VMs (#83)
- Adding one extra check for making sure secure boot is enabled for Shielded VMs. - Changing the title of the control (probably bad copy-paste). - Updating the inspec-gcp-helpers dependency to the latest version.
1 parent bf048ac commit 00ca916

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

controls/4.08-vms.rb

+4-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
control "cis-gcp-#{control_id}-#{control_abbrev}" do
2727
impact 'medium'
2828

29-
title "[#{control_abbrev.upcase}] Ensure VM disks for critical VMs are encrypted with CustomerSupplied Encryption Keys (CSEK)"
29+
title "[#{control_abbrev.upcase}] Ensure Compute instances are launched with Shielded VM enabled"
3030

3131
desc 'To defend against against advanced threats and ensure that the boot loader and firmware
3232
on your VMs are signed and untampered, it is recommended that Compute instances are
@@ -68,6 +68,9 @@
6868
expect(false).to be true
6969
end
7070
else
71+
it 'should have secure boot enabled' do
72+
expect(instance_object.shielded_instance_config.enable_secure_boot).to be true
73+
end
7174
it 'should have integrity monitoring enabled' do
7275
expect(instance_object.shielded_instance_config.enable_integrity_monitoring).to be true
7376
end

inspec.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ copyright: "(c) 2020, Google, Inc."
1919
copyright_email: "[email protected]"
2020
license: "Apache-2.0"
2121
summary: "Inspec Google Cloud Platform Center for Internet Security Benchmark v1.1 Profile"
22-
version: 1.1.0-26
22+
version: 1.1.0-27
2323

2424
supports:
2525
- platform: gcp
2626

2727
depends:
2828
- name: inspec-gcp-helpers
29-
url: https://github.com/GoogleCloudPlatform/inspec-gcp-helpers/archive/v1.0.7.tar.gz
29+
url: https://github.com/GoogleCloudPlatform/inspec-gcp-helpers/archive/1.0.9.tar.gz
3030

3131
inputs:
3232
# {{gcp_project_id}}

0 commit comments

Comments
 (0)