-
Notifications
You must be signed in to change notification settings - Fork 11
/
V-92983.rb
60 lines (50 loc) · 2.44 KB
/
V-92983.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
# encoding: UTF-8
control "V-92983" do
title "Windows Server 2019 must be configured to audit Account Management -
User Account Management failures."
desc "Maintaining an audit trail of system activity logs can help identify
configuration errors, troubleshoot service disruptions, and analyze compromises
that have occurred, as well as detect attacks. Audit logs are necessary to
provide a trail of evidence in case the system or network is compromised.
Collecting this data is essential for analyzing the security of information
assets and detecting signs of suspicious and unexpected behavior.
User Account Management records events such as creating, changing,
deleting, renaming, disabling, or enabling user accounts."
desc "rationale", ""
desc 'check', "Security Option \"Audit: Force audit policy subcategory settings (Windows
Vista or later) to override audit policy category settings\" must be set to
\"Enabled\" (WN19-SO-000050) for the detailed auditing subcategories to be
effective.
Use the \"AuditPol\" tool to review the current Audit Policy configuration:
Open \"PowerShell\" or a \"Command Prompt\" with elevated privileges (\"Run
as administrator\").
Enter \"AuditPol /get /category:*\"
Compare the \"AuditPol\" settings with the following:
If the system does not audit the following, this is a finding.
Account Management >> User Account Management - Failure"
desc 'fix', "Configure the policy value for Computer Configuration >>
Windows Settings >> Security Settings >> Advanced Audit Policy Configuration >>
System Audit Policies >> Account Management >> \"Audit User Account
Management\" with \"Failure\" selected."
impact 0.5
tag 'severity': nil
tag 'gtitle': 'SRG-OS-000004-GPOS-00004'
tag 'satisfies': ["SRG-OS-000004-GPOS-00004", "SRG-OS-000239-GPOS-00089",
"SRG-OS-000240-GPOS-00090", "SRG-OS-000241-GPOS-00091",
"SRG-OS-000303-GPOS-00120", "SRG-OS-000476-GPOS-00221"]
tag 'gid': 'V-92983'
tag 'rid': 'SV-103071r1_rule'
tag 'stig_id': 'WN19-AU-000120'
tag 'fix_id': 'F-99229r1_fix'
tag 'cci': ["CCI-000018", "CCI-000172", "CCI-001403", "CCI-001404",
"CCI-001405", "CCI-002130"]
tag 'nist': ["AC-2 (4)", "AU-12 c", "AC-2 (4)", "AC-2 (4)", "AC-2 (4)", "AC-2(4)", "Rev_4"]
describe.one do
describe audit_policy do
its('User Account Management') { should eq 'Failure' }
end
describe audit_policy do
its('User Account Management') { should eq 'Success and Failure' }
end
end
end