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: c10d0f5429929f41ee224d736ce1d783e4d5921fa8bb559d9e7bbb3e1b9236d3