-
Notifications
You must be signed in to change notification settings - Fork 3
/
rsa-archer-1.5.rb
22 lines (20 loc) · 1.16 KB
/
rsa-archer-1.5.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
control 'rsa-archer-1.5' do
title 'Uppercase characters required'
desc 'When passwords are changed or new passwords are established, the new
password must contain at least one uppercase character.'
impact 'medium'
desc 'check', 'In security parameters, check if UppercaseCharsRequired = 1.'
desc 'fix', 'In security parameters, set UppercaseCharsRequired = 1.'
tag 'nist': ['IA-5(1)', 'Rev_4']
archer_api_helper = archer(url: attribute('url'),
instancename: attribute('instancename'),
user_domain: attribute('user_domain'),
username: attribute('username'),
password: attribute('password'),
ssl_verify: attribute('ssl_verify'))
describe archer_api_helper do
its('default_administrative_user.UppercaseCharsRequired') { should cmp >= attribute('minimum_uppercase_characters') }
its('general_user_parameter.UppercaseCharsRequired') { should cmp >= attribute('minimum_uppercase_characters') }
its('archer_services_parameter.UppercaseCharsRequired') { should cmp >= attribute('minimum_uppercase_characters') }
end
end