5.3.4 Ensure password hashing algorithm is SHA-512

Information

The commands below change password encryption from md5 to sha512 (a much stronger hashing algorithm). All existing accounts will need to perform a password change to upgrade the stored hashes to the new algorithm. The SHA-512 algorithm provides much stronger hashing than MD5, thus providing additional protection to the system by increasing the level of effort for an attacker to successfully determine passwords. Note that these change only apply to accounts configured on the local system.

Solution

Edit the /etc/pam.d/common-password file to include the sha512 option for pam_unix.so as shown: password [success=1 default=ignore] pam_unix.so sha512

See Also

https://workbench.cisecurity.org/files/1866

Item Details

Category: IDENTIFICATION AND AUTHENTICATION

References: 800-53|IA-5(1)(c), CSCv6|16.1

Plugin: Unix

Control ID: 4ae0cc710c0ba98c2935025c5e477b052b5247f45e1b61d3a51a93d794fc0c40