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:
Example: vim /etc/login.defs
Add, uncomment or update the following line:
ENCRYPT_METHOD SHA512
Notes:
This Benchmark maps to:
Red Hat Enterprise Linux 7 Security Technical Implementation Guide:
Version 2, Release: 3 Benchmark Date: 26 Apr 2019
Vul ID: V-71921
Rule ID: SV-86545r2_rule
STIG ID: RHEL-07-010210
Severity: CAT II