Skip to content

Commit

Permalink
Update password hashing algorithm CIS requirement
Browse files Browse the repository at this point in the history
The 5.4.3 requirement for RHEL7 is now automated.
The 5.5.4 requirement for RHEL8 and RHEL9 is now better aligned to the
benchmark since newer versions also mention the /etc/login.defs file.
  • Loading branch information
marcusburghardt committed Feb 28, 2023
1 parent 2a3eac5 commit dbd4776
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
7 changes: 5 additions & 2 deletions controls/cis_rhel7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1959,9 +1959,12 @@ controls:
levels:
- l1_server
- l1_workstation
status: partial # our rule does not check for password-auth
status: automated
rules:
- set_password_hashing_algorithm_systemauth
- set_password_hashing_algorithm_systemauth
- set_password_hashing_algorithm_passwordauth
- set_password_hashing_algorithm_logindefs
- var_password_hashing_algorithm=SHA512

- id: 5.4.4
title: Ensure password reuse is limited (Automated)
Expand Down
2 changes: 2 additions & 0 deletions controls/cis_rhel8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2275,6 +2275,8 @@ controls:
rules:
- set_password_hashing_algorithm_systemauth
- set_password_hashing_algorithm_passwordauth
- set_password_hashing_algorithm_logindefs
- var_password_hashing_algorithm=SHA512

- id: 5.6.1.1
title: Ensure password expiration is 365 days or less (Automated)
Expand Down
2 changes: 2 additions & 0 deletions controls/cis_rhel9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2126,6 +2126,8 @@ controls:
rules:
- set_password_hashing_algorithm_systemauth
- set_password_hashing_algorithm_passwordauth
- set_password_hashing_algorithm_logindefs
- var_password_hashing_algorithm=SHA512

- id: 5.6.1.1
title: Ensure password expiration is 365 days or less (Automated)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ identifiers:
references:
anssi: BP28(R32)
cis-csc: 1,12,15,16,5
cis@rhel7: 5.4.3
cis@rhel8: 5.5.4
cis@rhel9: 5.5.4
cis@sle12: 5.4.1.1
cis@sle15: 5.4.1.1
cis@ubuntu2204: 5.4.4
Expand Down

0 comments on commit dbd4776

Please sign in to comment.