5.5.1.6 Ensure shadow file is configured to use only encrypted representations of passwords

Information

The operating system must be configured to use the shadow file to store only encrypted representations of passwords.

Rationale:

Passwords need to be protected at all times, and encryption is the standard method for protecting passwords. If passwords are not encrypted, they can be plainly read (i.e., clear text) and easily compromised. Passwords encrypted with a weak algorithm are no more protected than if they are kept in plain text.

Solution

Configure the operating system to store only SHA512 encrypted representations of passwords.
Add or update the following line in /etc/login.defs:

ENCRYPT_METHOD SHA512

Additional Information:

Red Hat Enterprise Linux 7 Security Technical Implementation Guide

Version 3, Release: 4 Benchmark Date: 23 Jul 2021

Vul ID: V-204416

Rule ID: SV-204416r603261_rule

STIG ID: RHEL-07-010210

Severity: CAT II

See Also

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

Item Details

Category: IDENTIFICATION AND AUTHENTICATION

References: 800-53|IA-5(1)(c), CCI|CCI-000196, CSCv7|16.4, Rule-ID|SV-204416r603261_rule, STIG-ID|RHEL-07-010210

Plugin: Unix

Control ID: a0ecb043e488cb11ffb09bb62985458c351844a03fc42d29ad7a08f39619c159