Check: ANIX-00-000790
Anduril NixOS STIG:
ANIX-00-000790
(in version v1 r1)
Title
NixOS must enforce 24 hours/one day as the minimum password lifetime. (Cat II impact)
Discussion
Enforcing a minimum password lifetime helps to prevent repeated password changes to defeat the password reuse or history enforcement requirement. If users are allowed to immediately and continually change their password, then the password could be repeatedly changed in a short period of time to defeat the organization's policy regarding password reuse.
Check Content
Verify NixOS enforces 24 hours/one day as the minimum password lifetime with the following command: $ grep PASS_MIN_DAYS /etc/login.defs PASS_MIN_DAYS 1 If PASS_MIN_DAYS_1 is not present, is commented out, or is a value different from 1, this is a finding.
Fix Text
Configure NixOS operating system to enforce 24 hours/one day as the minimum password lifetime. Add/modify /etc/nixos/configuration.nix to include the following lines: environment.etc."login.defs".text = pkgs.lib.mkForce '' PASS_MIN_DAYS 1 ''; Rebuild the system with the following command: $ sudo nixos-rebuild switch
Additional Identifiers
Rule ID: SV-268132r1039284_rule
Vulnerability ID: V-268132
Group Title: SRG-OS-000075-GPOS-00043
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-004066 |
For password-based authentication, enforce organization-defined composition and complexity rules. |
Controls
Number | Title |
---|---|
No controls are assigned to this check |