NixOS must prevent the use of dictionary words for passwords.
An XCCDF Rule
Description
If the operating system allows the user to select passwords based on dictionary words, then this increases the chances of password compromise by increasing the opportunity for successful guesses and brute-force attacks.
- ID
- SV-268169r1039395_rule
- Version
- ANIX-00-001860
- Severity
- Medium
- References
- Updated
Remediation Templates
A Manual Procedure
Configure NixOS to check password change attempts against a dictionary.
Add/modify /etc/nixos/configuration.nix to include the following lines:
environment.etc."/security/pwquality.conf".text = ''
dictcheck=1