SV-268171r1134782_rule
V-268171
SRG-OS-000480-GPOS-00226
ANIX-00-001870
CAT II
10
Configure NixOS to enforce a four-second delay between logon attempts.
Add the following Nix code to the NixOS Configuration, usually located in /etc/nixos/configuration.nix or /etc/nixos/flake.nix:
security.loginDefs.settings."FAIL_DELAY" = "4";
Rebuild and switch to the new NixOS configuration:
$ sudo nixos-rebuild switch
Verify NixOS enforces a four-second delay between logon attempts with the following command:
$ grep -I delay /etc/login.defs
FAIL_DELAY 4
If "FAIL_DELAY" is not set to "4" or greater, is commented out, or is missing, this is a finding.
V-268171
False
ANIX-00-001870
Verify NixOS enforces a four-second delay between logon attempts with the following command:
$ grep -I delay /etc/login.defs
FAIL_DELAY 4
If "FAIL_DELAY" is not set to "4" or greater, is commented out, or is missing, this is a finding.
M
5658