SV-268175r1131158_rule
V-268175
SRG-OS-000120-GPOS-00061
ANIX-00-001940
CAT II
10
Lock all interactive user accounts not using SHA-512 hashing until the passwords can be regenerated with SHA-512.
$ sudo usermod -L $USERNAME
Verify NixOS uses employs approved cryptographic hashing algorithms for all stored passwords with the following command:
(Change <unique-username> to the desired user to verify.)
$ sudo cat /etc/shadow | grep "<unique-username>" | cut -d'$' -f2
If the command does not return 6 for SHA512, this is a finding.
V-268175
False
ANIX-00-001940
Verify NixOS uses employs approved cryptographic hashing algorithms for all stored passwords with the following command:
(Change <unique-username> to the desired user to verify.)
$ sudo cat /etc/shadow | grep "<unique-username>" | cut -d'$' -f2
If the command does not return 6 for SHA512, this is a finding.
M
5658