5.4.4 Ensure password hashing algorithm is up to date with the latest standards
Audit#
PAM
No hashing algorithm should be configured in /etc/pam.d/common-password.
Run the following command:
Verify that there is no output.
If there is a business requirement to configure the hashing algorithm in PAM, ensure that the same algorithm is configured in /etc/login.defs.
Login definitions
Run the following command:
Verify the output matches:
Remediation#
NOTE: Pay special attention to the configuration. Incorrect configuration can cause system lock outs. This is example configuration. You configuration may differ based on previous changes to the files.
PAM
Edit the /etc/pam.d/common-password file and ensure that no hashing algorithm option for pam_unix.so is set:
Login definitions
Edit /etc/login.defs and ensure that ENCRYPT_METHOD is set to yescrypt