-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
438 changed files
with
8,858 additions
and
9,858 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
control 'SV-205625' do | ||
title 'Windows Server 2019 must be configured to audit Account Management - | ||
Security Group Management successes.' | ||
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. | ||
Security Group Management records events such as creating, deleting, or | ||
changing security groups, including changes in group members.' | ||
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 >> Security Group Management - Success' | ||
desc 'fix', 'Configure the policy value for Computer Configuration >> | ||
Windows Settings >> Security Settings >> Advanced Audit Policy Configuration >> | ||
System Audit Policies >> Account Management >> "Audit Security Group | ||
Management" with "Success" 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-92979' | ||
tag rid: 'SV-103067r1_rule' | ||
tag stig_id: 'WN19-AU-000100' | ||
tag fix_id: 'F-99225r1_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\n(4)', 'Rev_4'] | ||
|
||
describe.one do | ||
describe audit_policy do | ||
its('Security Group Management') { should eq 'Success' } | ||
end | ||
describe audit_policy do | ||
its('Security Group Management') { should eq 'Success and Failure' } | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
control 'SV-205626' do | ||
title 'Windows Server 2019 must be configured to audit Account Management - | ||
User Account Management successes.' | ||
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 '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 - Success' | ||
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 "Success" 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-92981' | ||
tag rid: 'SV-103069r1_rule' | ||
tag stig_id: 'WN19-AU-000110' | ||
tag fix_id: 'F-99227r1_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\n(4)', 'Rev_4'] | ||
|
||
describe.one do | ||
describe audit_policy do | ||
its('User Account Management') { should eq 'Success' } | ||
end | ||
describe audit_policy do | ||
its('User Account Management') { should eq 'Success and Failure' } | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
control 'SV-205627' 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 '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\n(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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
control 'SV-205628' do | ||
title 'Windows Server 2019 must be configured to audit Account Management - | ||
Computer Account Management successes.' | ||
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. | ||
Computer Account Management records events such as creating, changing, | ||
deleting, renaming, disabling, or enabling computer accounts.' | ||
desc 'check', 'This applies to domain controllers. It is NA for other systems. | ||
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 >> Computer Account Management - Success' | ||
desc 'fix', 'Configure the policy value for Computer Configuration >> | ||
Windows Settings >> Security Settings >> Advanced Audit Policy Configuration >> | ||
System Audit Policies >> Account Management >> "Audit Computer Account | ||
Management" with "Success" 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-92985' | ||
tag rid: 'SV-103073r1_rule' | ||
tag stig_id: 'WN19-DC-000230' | ||
tag fix_id: 'F-99231r1_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\n(4)', 'Rev_4'] | ||
|
||
domain_role = command('wmic computersystem get domainrole | Findstr /v DomainRole').stdout.strip | ||
if domain_role == '4' || domain_role == '5' | ||
describe.one do | ||
describe audit_policy do | ||
its('Computer Account Management') { should eq 'Success' } | ||
end | ||
describe audit_policy do | ||
its('Computer Account Management') { should eq 'Success and Failure' } | ||
end | ||
end | ||
else | ||
impact 0.0 | ||
describe 'This system is not a domain controller, therefore this control is not applicable' do | ||
skip 'This system is not a domain controller, therefore this control is not applicable' | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.