Skip to content

Instantly share code, notes, and snippets.

@smford22
Created April 11, 2019 05:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smford22/2361f2eb3a4951c686cde0745d44419a to your computer and use it in GitHub Desktop.
Save smford22/2361f2eb3a4951c686cde0745d44419a to your computer and use it in GitHub Desktop.
Password Policy
title 'Password Policy'
control 'cis-enforce-password-history-1.1.1' do
impact 0.7
title '1.1.1 Set Enforce password history to 24 or more passwords'
desc 'Set Enforce password history to 24 or more passwords'
describe security_policy do
its('PasswordHistorySize') { should be >= 24 }
end
end
control 'cis-maximum-password-age-1.1.2' do
impact 0.7
title '1.1.2 Set Maximum password age to 60 or fewer days, but not 0'
desc 'Set Maximum password age to 60 or fewer days, but not 0'
describe security_policy do
its('MaximumPasswordAge') { should be <= 60 }
its('MaximumPasswordAge') { should be > 0 }
end
end
control 'cis-minimum-password-age-1.1.3' do
impact 0.7
title '1.1.3 Set Minimum password age to 1 or more days'
desc 'Set Minimum password age to 1 or more days'
describe security_policy do
its('MinimumPasswordAge') { should be >= 1 }
end
end
control 'cis-minimum-password-length-1.1.4' do
impact 0.7
title '1.1.4 Set Minimum password length to 14 or more characters'
desc 'Set Minimum password length to 14 or more characters'
describe security_policy do
its('MinimumPasswordLength') { should be >= 14 }
end
end
control 'cis-password-complexity-1.1.6' do
impact 0.7
title '1.1.6 Set Store passwords using reversible encryption to Disabled'
desc 'Set Store passwords using reversible encryption to Disabled'
describe security_policy do
its('ClearTextPassword') { should eq 0 }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment