-
Notifications
You must be signed in to change notification settings - Fork 11
/
V-93065.rb
76 lines (56 loc) · 2.78 KB
/
V-93065.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# encoding: UTF-8
control "V-93065" do
title "Windows Server 2019 Debug programs: user right must only be assigned
to the Administrators group."
desc "Inappropriate granting of user rights can provide system,
administrative, and other high-level capabilities.
Accounts with the \"Debug programs\" user right can attach a debugger to
any process or to the kernel, providing complete access to sensitive and
critical operating system components. This right is given to Administrators in
the default configuration."
desc "rationale", ""
desc 'check', "Verify the effective setting in Local Group Policy Editor.
Run \"gpedit.msc\".
Navigate to Local Computer Policy >> Computer Configuration >> Windows
Settings >> Security Settings >> Local Policies >> User Rights Assignment.
If any accounts or groups other than the following are granted the \"Debug
programs\" user right, this is a finding:
- Administrators
For server core installations, run the following command:
Secedit /Export /Areas User_Rights /cfg c:\\path\\filename.txt
Review the text file.
If any SIDs other than the following are granted the \"SeDebugPrivilege\"
user right, this is a finding:
S-1-5-32-544 (Administrators)
If an application requires this user right, this would not be a finding.
Vendor documentation must support the requirement for having the user right.
The requirement must be documented with the ISSO.
The application account must meet requirements for application account
passwords, such as length (WN19-00-000050) and required frequency of changes
(WN19-00-000060).
Passwords for application accounts with this user right must be protected
as highly privileged accounts."
desc 'fix', "Configure the policy value for Computer Configuration >> Windows Settings
>> Security Settings >> Local Policies >> User Rights Assignment >> \"Debug
programs\" to include only the following accounts or groups:
- Administrators"
impact 0.7
tag 'severity': nil
tag 'gtitle': 'SRG-OS-000324-GPOS-00125'
tag 'gid': 'V-93065'
tag 'rid': 'SV-103153r1_rule'
tag 'stig_id': 'WN19-UR-000100'
tag 'fix_id': 'F-99311r1_fix'
tag 'cci': ["CCI-002235"]
tag 'nist': ["AC-6 (10)", "Rev_4"]
os_type = command('Test-Path "$env:windir\explorer.exe"').stdout.strip
if os_type == 'False'
describe 'This system is a Server Core Installation, and a manual check will need to be performed with command Secedit /Export /Areas User_Rights /cfg c:\\path\\filename.txt' do
skip 'This system is a Server Core Installation, and a manual check will need to be performed with command Secedit /Export /Areas User_Rights /cfg c:\\path\\filename.txt'
end
else
describe security_policy do
its('SeDebugPrivilege') { should eq ['S-1-5-32-544'] }
end
end
end