Check: ANIX-00-001870
Anduril NixOS STIG:
ANIX-00-001870
(in version v1 r1)
Title
NixOS must enforce a delay of at least four seconds between login prompts following a failed login attempt. (Cat II impact)
Discussion
Limiting the number of login attempts over a certain time interval reduces the chances that an unauthorized user may gain access to an account.
Check Content
Verify the NixOS operating system enforces a four-second delay between login 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.
Fix Text
Configure NixOS operating system to enforce a four-second delay between login attempts. Add the following Nix code to the NixOS Configuration usually located in /etc/nixos/configuration.nix environment.etc."login.defs".text = pkgs.lib.mkForce '' FAIL_DELAY 4 ''; Rebuild the system with the following command: $ sudo nixos-rebuild switch
Additional Identifiers
Rule ID: SV-268171r1039583_rule
Vulnerability ID: V-268171
Group Title: SRG-OS-000480-GPOS-00226
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000366 |
Implement the security configuration settings. |
Controls
Number | Title |
---|---|
CM-6 |
Configuration Settings |