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 all commits
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
1 change: 1 addition & 0 deletions controls/SV-221558.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
tag nist: ["AC-4"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should exist }
it { should have_property 'RemoteAccessHostFirewallTraversal' }
its('RemoteAccessHostFirewallTraversal') { should cmp 0 }
end
Expand Down
1 change: 1 addition & 0 deletions controls/SV-221559.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
tag nist: ["SC-18 (1)"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should exist }
it { should have_property 'DefaultGeolocationSetting' }
its('DefaultGeolocationSetting') { should cmp 2 }
end
Expand Down
1 change: 1 addition & 0 deletions controls/SV-221561.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
tag nist: ["CM-7 a"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should exist }
it { should have_property 'DefaultPopupsSetting' }
its('DefaultPopupsSetting') { should cmp 2 }
end
Expand Down
1 change: 1 addition & 0 deletions controls/SV-221562.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
tag nist: ["AU-12 a"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome\ExtensionInstallBlocklist') do
it { should exist }
it { should have_property '1' }
its('1') { should cmp '*' }
end
Expand Down
8 changes: 4 additions & 4 deletions controls/SV-221563.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,21 @@
tag cci: ["CCI-001170"]
tag nist: ["SC-18 (4)"]

# list of approved extension ids determined by administrators to decide which extensions should be allowed for their users
approved_ids = input('administrator_approved_extension_ids')

describe.one do
describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome\ExtensionInstallAllowlist') do
it { should exist }
it { should have_property 'ExtensionInstallAllowlist' }
its('ExtensionInstallAllowlist') { should cmp 1 }
end
describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome\ExtensionInstallAllowlist') do
it { should exist }
it { should have_property 'ExtensionInstallAllowlist' }
its('ExtensionInstallAllowlist') { should cmp 'oiigbmnaadbkfbmpbfijlflahbdbdgdf' }
end
describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome\ExtensionInstallAllowlist') do
it { should exist }
it { should have_property 'ExtensionInstallAllowlist' }
its('ExtensionInstallAllowlist') { should cmp approved_ids }
its('ExtensionInstallAllowlist') { should cmp input('administrator_approved_extension_ids') }
end
end
end
5 changes: 2 additions & 3 deletions controls/SV-221564.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,9 @@
tag cci: ["CCI-000381"]
tag nist: ["CM-7 a"]

approved_encrypted_search_provider_name = input('approved_encrypted_search_provider_name')

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should exist }
it { should have_property 'DefaultSearchProviderName' }
its('DefaultSearchProviderName') { should cmp approved_encrypted_search_provider_name }
its('DefaultSearchProviderName') { should cmp input('approved_encrypted_search_provider_name') }
end
end
5 changes: 2 additions & 3 deletions controls/SV-221565.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@
tag cci: ["CCI-000381"]
tag nist: ["CM-7 a"]

approved_encrytped_search_string = input('approved_encrytped_search_string')

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should exist }
it { should have_property 'DefaultSearchProviderSearchURL' }
its('DefaultSearchProviderSearchURL') { should cmp approved_encrytped_search_string }
its('DefaultSearchProviderSearchURL') { should cmp input('approved_encrytped_search_string') }
end
end
1 change: 1 addition & 0 deletions controls/SV-221566.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
tag nist: ["CM-7 a"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should exist }
it { should have_property 'DefaultSearchProviderEnabled' }
its('DefaultSearchProviderEnabled') { should cmp 1 }
end
Expand Down
1 change: 1 addition & 0 deletions controls/SV-221567.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
tag nist: ["CM-7 a"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should exist }
it { should have_property 'PasswordManagerEnabled' }
its('PasswordManagerEnabled') { should cmp 0 }
end
Expand Down
1 change: 1 addition & 0 deletions controls/SV-221570.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
tag nist: ["SC-18 (3)"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should exist }
it { should have_property 'BackgroundModeEnabled' }
its('BackgroundModeEnabled') { should cmp 0 }
end
Expand Down
1 change: 1 addition & 0 deletions controls/SV-221571.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
tag nist: ["AC-4 (15)"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should exist }
it { should have_property 'SyncDisabled'}
its('SyncDisabled') { should cmp 1 }
end
Expand Down
1 change: 1 addition & 0 deletions controls/SV-221572.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
tag nist: ["CM-7 a"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome\URLBlocklist') do
it { should exist }
it { should have_property '1'}
its('1') { should cmp 'javascript://*' }
end
Expand Down
1 change: 1 addition & 0 deletions controls/SV-221573.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
tag nist: ["AC-4 (15)"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should exist }
it { should have_property 'CloudPrintProxyEnabled'}
its('CloudPrintProxyEnabled') { should cmp 0 }
end
Expand Down
5 changes: 3 additions & 2 deletions controls/SV-221574.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
tag nist: ["CM-6 b"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should have_property '\"NetworkPredictionOptions\"'}
its('\"NetworkPredictionOptions\"') { should cmp '\"2,\"' }
it { should exist }
it { should have_property 'NetworkPredictionOptions'}
its('NetworkPredictionOptions') { should cmp 2}
end
end
1 change: 1 addition & 0 deletions controls/SV-221575.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
tag nist: ["CM-7 a"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should exist }
it { should have_property 'MetricsReportingEnabled'}
its('MetricsReportingEnabled') { should cmp 0 }
end
Expand Down
1 change: 1 addition & 0 deletions controls/SV-221576.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
tag nist: ["CM-7 a"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should exist }
it { should have_property 'SearchSuggestEnabled'}
its('SearchSuggestEnabled') { should cmp 0 }
end
Expand Down
1 change: 1 addition & 0 deletions controls/SV-221577.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
tag nist: ["CM-7 a"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should exist }
it { should have_property 'ImportSavedPasswords'}
its('ImportSavedPasswords') { should cmp 0 }
end
Expand Down
1 change: 1 addition & 0 deletions controls/SV-221578.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
tag nist: ["AU-10"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should exist }
it { should have_property 'IncognitoModeAvailability'}
its('IncognitoModeAvailability') { should cmp 1 }
end
Expand Down
1 change: 1 addition & 0 deletions controls/SV-221579.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
tag nist: ["IA-5 (2) (b) (1)"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should exist }
it { should have_property 'EnableOnlineRevocationChecks'}
its('EnableOnlineRevocationChecks') { should cmp 1 }
end
Expand Down
2 changes: 2 additions & 0 deletions controls/SV-221580.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@

describe.one do
describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should exist }
it { should have_property 'SafeBrowsingProtectionLevel' }
its('SafeBrowsingProtectionLevel') { should cmp 1 }
end
describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should exist }
it { should have_property 'SafeBrowsingProtectionLevel' }
its('SafeBrowsingProtectionLevel') { should cmp 2 }
end
Expand Down
1 change: 1 addition & 0 deletions controls/SV-221581.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
tag nist: ["SC-28"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should exist }
it { should have_property 'SavingBrowserHistoryDisabled'}
its('SavingBrowserHistoryDisabled') { should cmp 0 }
end
Expand Down
11 changes: 10 additions & 1 deletion controls/SV-221584.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,13 @@
tag legacy: ["SV-57639","V-44805"]
tag cci: ["CCI-002605"]
tag nist: ["SI-2 c"]
end

current_chrome_version_command = <<-EOH
(Get-ItemProperty -Path Registry::HKEY_CURRENT_USER\\SOFTWARE\\Google\\Chrome\\BLBeacon -Name version).version
EOH

describe powershell(current_chrome_version_command) do
it { should exist }
its('stdout') { should cmp >= input('google_chrome_version') }
TSterling76 marked this conversation as resolved.
Show resolved Hide resolved
end
end
1 change: 1 addition & 0 deletions controls/SV-221586.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
tag nist: ["AU-12 a"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should exist }
it { should have_property 'AllowDeletingBrowserHistory'}
its('AllowDeletingBrowserHistory') { should cmp '0' }
end
Expand Down
1 change: 1 addition & 0 deletions controls/SV-221587.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
tag nist: ["AU-12 a"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should exist }
it { should have_property 'PromptForDownloadLocation'}
its('PromptForDownloadLocation') { should cmp '1' }
end
Expand Down
20 changes: 20 additions & 0 deletions controls/SV-221588.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,24 @@
tag legacy: ["SV-94635","V-79931"]
tag cci: ["CCI-000169"]
tag nist: ["AU-12 a"]

if input('sensitive_system')
impact 0.0
describe 'This Control is Not Applicable to systems for Sensitive Networks.' do
skip 'This Control is Not Applicable to systems for Sensitive Networks.'
end
else
describe.one do
describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should exist }
it { should have_property 'DownloadRestrictions' }
its('DownloadRestrictions') { should cmp 1 }
end
describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should exist }
it { should have_property 'DownloadRestrictions' }
its('DownloadRestrictions') { should cmp 2 }
end
end
TSterling76 marked this conversation as resolved.
Show resolved Hide resolved
end
end
6 changes: 6 additions & 0 deletions controls/SV-221590.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,10 @@
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 exist }
it { should have_property 'SafeBrowsingExtendedReportingEnabled'}
its('SafeBrowsingExtendedReportingEnabled') { should cmp 0 }
end
end
6 changes: 6 additions & 0 deletions controls/SV-221591.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,10 @@
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 exist }
it { should have_property 'DefaultWebUsbGuardSetting'}
its('DefaultWebUsbGuardSetting') { should cmp 2 }
end
end
6 changes: 6 additions & 0 deletions controls/SV-221592.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,10 @@
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 exist }
it { should have_property 'ChromeCleanupEnabled'}
its('ChromeCleanupEnabled') { should cmp 0 }
end
end
6 changes: 6 additions & 0 deletions controls/SV-221593.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,10 @@
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 exist }
it { should have_property 'ChromeCleanupReportingEnabled'}
its('ChromeCleanupReportingEnabled') { should cmp 0 }
end
end
6 changes: 6 additions & 0 deletions controls/SV-221594.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,10 @@
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 exist }
it { should have_property 'EnableMediaRouter'}
its('EnableMediaRouter') { should cmp 0 }
end
end
6 changes: 6 additions & 0 deletions controls/SV-221595.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,10 @@
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 exist }
it { should have_property 'AutoplayAllowed'}
its('AutoplayAllowed') { should cmp 0 }
end
end
6 changes: 6 additions & 0 deletions controls/SV-221596.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,10 @@
tag legacy: ["SV-96303","V-81589"]
tag cci: ["CCI-001170"]
tag nist: ["SC-18 (4)"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should exist }
it { should have_property 'AutoplayAllowlist'}
its('AutoplayAllowlist') { should cmp input('administrator_approved_urls') }
end
end
6 changes: 6 additions & 0 deletions controls/SV-221597.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,10 @@
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 exist }
it { should have_property 'UrlKeyedAnonymizedDataCollectionEnabled'}
its('UrlKeyedAnonymizedDataCollectionEnabled') { should cmp 0 }
end
end
6 changes: 6 additions & 0 deletions controls/SV-221598.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,10 @@
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 exist }
it { should have_property 'WebRtcEventLogCollectionAllowed'}
its('WebRtcEventLogCollectionAllowed') { should cmp 0 }
end
end
6 changes: 6 additions & 0 deletions controls/SV-221599.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,10 @@
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 exist }
it { should have_property 'DeveloperToolsAvailability'}
its('DeveloperToolsAvailability') { should cmp 2 }
end
end
6 changes: 6 additions & 0 deletions controls/SV-226401.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,10 @@
tag legacy: ["SV-111829","V-102867"]
tag cci: ["CCI-001166"]
tag nist: ["SC-18 (1)"]

describe registry_key('HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome') do
it { should exist }
it { should have_property 'BrowserGuestModeEnabled'}
its('BrowserGuestModeEnabled') { should cmp 0 }
end
end
Loading