DISA STIGS Viewer

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

Overview

Finding ID Version Rule ID IA Controls Severity
V-268175 ANIX-00-001940 SV-268175r1039413_rule   Medium
Description
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.
STIG Date
Anduril NixOS Security Technical Implementation Guide 2024-10-25

Details

Check Text (C-72099r1039411_chk)
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 Text (F-72002r1039412_fix)
Lock all interactive user accounts not using SHA-512 hashing until the passwords can be regenerated with SHA-512.