Skip to content

Commit bc48bf4

Browse files
MattTunnychris-rock
authored andcommitted
Privacy (#13)
* added privacy controls Signed-off-by: matthew.tunny <[email protected]>
1 parent 2aeb8d2 commit bc48bf4

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

controls/privacy.rb

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# encoding: utf-8
2+
3+
title 'Windows Privacy'
4+
5+
control 'microsoft-online-accounts' do
6+
impact 1.0
7+
title 'Microsoft Online Accounts'
8+
desc 'Disabling Microsoft account logon sign-in option, eg. logging in without having to use local credentials and using microsoft online accounts'
9+
ref 'Block Microsoft Accounts', url: 'https://technet.microsoft.com/en-us/library/jj966262(v=ws.11).aspx'
10+
describe registry_key('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\default\Settings\AllowYourAccount') do
11+
it { should exist }
12+
its('value') { should eq 0 }
13+
end
14+
end
15+
16+
control 'disable-windows-store' do
17+
impact 1.0
18+
title 'Disable Windows Store'
19+
desc 'Ensure Turn off Automatic Download and Install ofupdates is set to Disabled'
20+
tag cis: '18.9.61.1'
21+
ref 'CIS Microsoft Windows Server 2012 R2 Benchmark', url: 'https://benchmarks.cisecurity.org/tools2/windows/CIS_Microsoft_Windows_Server_2012_R2_Benchmark_v2.2.1.pdf'
22+
describe registry_key('HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsStore') do
23+
it { should exist }
24+
its('AutoDownload') { should eq 4 }
25+
its('DisableOSUpgrade') { should eq 1 }
26+
end
27+
end
28+
29+
control 'disable-index-encrypted-files' do
30+
impact 1.0
31+
title 'Disable indexing encrypted files'
32+
desc 'Ensure Allow indexing of encrypted files is set to Disabled'
33+
tag cis: '18.9.54.2'
34+
ref 'CIS Microsoft Windows Server 2012 R2 Benchmark', url: 'https://benchmarks.cisecurity.org/tools2/windows/CIS_Microsoft_Windows_Server_2012_R2_Benchmark_v2.2.1.pdf'
35+
describe registry_key('HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search') do
36+
it { should exist }
37+
its('AllowIndexingEncryptedStoresOrItems') { should eq 0 }
38+
end
39+
end

0 commit comments

Comments
 (0)