STIGUI
V-268175CAT II — Medium severitySV-268175r1131158_rule

NixOS must employ approved cryptographic hashing algorithms for all stored passwords.

Rule version ANIX-00-001940 · STIG v1 · 2025-08-19

Discussion

Unapproved mechanisms that are used for authentication to the cryptographic module are not verified and therefore cannot be relied upon to provide confidentiality or integrity, and DOD data may be compromised.

Operating systems using encryption are required to use FIPS-compliant mechanisms for authenticating to cryptographic modules.

FIPS 140-3 is the current standard for validating that mechanisms used to access cryptographic modules use authentication that meets DOD requirements. This allows for Security Levels 1, 2, 3, or 4 for use on a general purpose computing system.

Check

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.

Fix

Lock all interactive user accounts not using SHA-512 hashing until the passwords can be regenerated with SHA-512.

$ sudo usermod -L $USERNAME

Identifiers

Group ID
V-268175
Group title
SRG-OS-000120-GPOS-00061
Rule ID
SV-268175r1131158_rule
Check ID
C-72099r1039411_chk
Fix ID
F-72002r1131157_fix