NixOS must enforce 24 hours/one day as the minimum password lifetime.
Overview
| Finding ID | Version | Rule ID | IA Controls | Severity |
| V-268132 | ANIX-00-000790 | SV-268132r1039284_rule | CCI-004066 | medium |
| Description | ||||
| 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. | ||||
| STIG | Date | |||
| Anduril NixOS Security Technical Implementation Guide | 2024-10-25 | |||
Related Frameworks
6 paths across 3 frameworks
Related Frameworks
NIST 800-531 mapping
IA-5(1)
1.00
- DISA · 1 · disa_xccdf · related
- DISA · 2025-01-23 · disa_cci_list · equivalent
NIST 800-1714 mappings
3.5.10
1.00
- DISA · 1 · disa_xccdf · related
- DISA · 2025-01-23 · disa_cci_list · equivalent
- NIST · Rev 2 (Feb 2020, errata Jan 2021) · nist_800_171_app_d · equivalent
3.5.7
1.00
- DISA · 1 · disa_xccdf · related
- DISA · 2025-01-23 · disa_cci_list · equivalent
- NIST · Rev 2 (Feb 2020, errata Jan 2021) · nist_800_171_app_d · equivalent
3.5.8
1.00
- DISA · 1 · disa_xccdf · related
- DISA · 2025-01-23 · disa_cci_list · equivalent
- NIST · Rev 2 (Feb 2020, errata Jan 2021) · nist_800_171_app_d · equivalent
3.5.9
1.00
- DISA · 1 · disa_xccdf · related
- DISA · 2025-01-23 · disa_cci_list · equivalent
- NIST · Rev 2 (Feb 2020, errata Jan 2021) · nist_800_171_app_d · equivalent
CCI1 mapping
CCI-004066
1.00
- DISA · 1 · disa_xccdf · related
Details
Check Text (C-268132r1039284_chk)
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 (F-71959r1039283_fix)
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