SV-268169r1131144_rule
V-268169
SRG-OS-000480-GPOS-00225
ANIX-00-001860
CAT II
10
Configure NixOS to check password change attempts against a dictionary.
Add the following Nix code to the NixOS Configuration, usually located in /etc/nixos/configuration.nix or /etc/nixos/flake.nix:
environment.etc."/security/pwquality.conf".text = ''
dictcheck=1
'';
Rebuild and switch to the new NixOS configuration:
$ sudo nixos-rebuild switch
Verify NixOS prevents the use of dictionary words for passwords with the following command:
$ grep dictcheck /etc/security/pwquality.conf
dictcheck=1
If the value of "ocredit" is a positive number or is commented out, this is a finding.
V-268169
False
ANIX-00-001860
Verify NixOS prevents the use of dictionary words for passwords with the following command:
$ grep dictcheck /etc/security/pwquality.conf
dictcheck=1
If the value of "ocredit" is a positive number or is commented out, this is a finding.
M
5658