Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Updates for Merge #5

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions controls/SV-221584.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,10 @@
tag legacy: ["SV-57639","V-44805"]
tag cci: ["CCI-002605"]
tag nist: ["SI-2 c"]

version = input('google_chrome_version')
# ???
describe version do
it { should cmp >= 74.0.0 }
TSterling76 marked this conversation as resolved.
Show resolved Hide resolved
end
end
17 changes: 17 additions & 0 deletions controls/SV-221588.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,21 @@
tag legacy: ["SV-94635","V-79931"]
tag cci: ["CCI-000169"]
tag nist: ["AU-12 a"]

if input('siprnet_system') == 'true'
impact 0.0
describe 'This Control is Not Applicable to systems on the SIPRNet.' do
TSterling76 marked this conversation as resolved.
Show resolved Hide resolved
skip 'This Control is Not Applicable to systems on the SIPRNet.'
end
else
describe.one do
describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should have_property 'DownloadRestrictions' }
its('DownloadRestrictions') { should cmp 1 }
end
describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should have_property 'DownloadRestrictions' }
its('DownloadRestrictions') { should cmp 2 }
end
end
TSterling76 marked this conversation as resolved.
Show resolved Hide resolved
end
5 changes: 5 additions & 0 deletions controls/SV-221590.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,9 @@
tag legacy: ["SV-96299","V-81585"]
tag cci: ["CCI-001166"]
tag nist: ["SC-18 (1)"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should have_property 'SafeBrowsingExtendedReportingEnabled'}
its('SafeBrowsingExtendedReportingEnabled') { should cmp 0 }
end
end
5 changes: 5 additions & 0 deletions controls/SV-221591.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,9 @@
tag legacy: ["SV-96301","V-81587"]
tag cci: ["CCI-000381"]
tag nist: ["CM-7 a"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should have_property 'DefaultWebUsbGuardSetting'}
its('DefaultWebUsbGuardSetting') { should cmp 2 }
end
end
5 changes: 5 additions & 0 deletions controls/SV-221592.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,9 @@
tag legacy: ["SV-96305","V-81591"]
tag cci: ["CCI-000169"]
tag nist: ["AU-12 a"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should have_property 'ChromeCleanupEnabled'}
its('ChromeCleanupEnabled') { should cmp 0 }
end
end
5 changes: 5 additions & 0 deletions controls/SV-221593.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,9 @@
tag legacy: ["SV-96307","V-81593"]
tag cci: ["CCI-000169"]
tag nist: ["AU-12 a"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should have_property 'ChromeCleanupReportingEnabled'}
its('ChromeCleanupReportingEnabled') { should cmp 0 }
end
end
5 changes: 5 additions & 0 deletions controls/SV-221594.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,9 @@
tag legacy: ["SV-96311","V-81597"]
tag cci: ["CCI-000381"]
tag nist: ["CM-7 a"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should have_property 'EnableMediaRouter'}
its('EnableMediaRouter') { should cmp 0 }
end
end
5 changes: 5 additions & 0 deletions controls/SV-221595.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,9 @@
tag legacy: ["SV-96295","V-81581"]
tag cci: ["CCI-000381"]
tag nist: ["CM-7 a"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should have_property 'AutoplayAllowed'}
its('AutoplayAllowed') { should cmp 0 }
end
end
7 changes: 7 additions & 0 deletions controls/SV-221596.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,11 @@
tag legacy: ["SV-96303","V-81589"]
tag cci: ["CCI-001170"]
tag nist: ["SC-18 (4)"]

approved_urls = input('administrator_approved_urls')

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should have_property 'AutoplayAllowlist'}
its('AutoplayAllowlist') { should cmp approved_urls }
end
end
5 changes: 5 additions & 0 deletions controls/SV-221597.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,9 @@
tag legacy: ["SV-101303","V-91203"]
tag cci: ["CCI-001166"]
tag nist: ["SC-18 (1)"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should have_property 'UrlKeyedAnonymizedDataCollectionEnabled'}
its('UrlKeyedAnonymizedDataCollectionEnabled') { should cmp 0 }
end
end
5 changes: 5 additions & 0 deletions controls/SV-221598.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,9 @@
tag legacy: ["SV-101305","V-91205"]
tag cci: ["CCI-001166"]
tag nist: ["SC-18 (1)"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should have_property 'WebRtcEventLogCollectionAllowed'}
its('WebRtcEventLogCollectionAllowed') { should cmp 0 }
end
end
5 changes: 5 additions & 0 deletions controls/SV-221599.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,9 @@
tag legacy: ["SV-106629","V-97525"]
tag cci: ["CCI-001312"]
tag nist: ["SI-11 a"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should have_property 'DeveloperToolsAvailability'}
its('DeveloperToolsAvailability') { should cmp 2 }
end
end
18 changes: 18 additions & 0 deletions inspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,22 @@ inputs:
desc: "This details an organization-approved encrypted search string to perform encrypted searches"
type: String
value: ''

- name: google_chrome_version
desc: "This may be manually entered and be found by opening the Chrome browser, going to Settings, then clicking About Chrome (at the bottom) "
type: String
value: ''

- name: siprnet_system
description: "If this system/machine is on the SIPRNet"
TSterling76 marked this conversation as resolved.
Show resolved Hide resolved
type: Boolean
value: false

- name: administrator_approved_urls
TSterling76 marked this conversation as resolved.
Show resolved Hide resolved
description: "Administrator approved allowlist of URL patterns that autoplay will always be enabled on"
type: Array
value:
- ''
- ''