NixOS must not allow an unattended or automatic login to the system via the console.

Overview

Finding IDVersionRule IDIA ControlsSeverity
V-268172ANIX-00-001880SV-268172r1039586_ruleCCI-000366high
Description
Failure to restrict system access via the console to authenticated users negatively impacts operating system security.
STIGDate
Anduril NixOS Security Technical Implementation Guide2024-10-25

Details

Check Text (C-268172r1039586_chk)

Verify NixOS does not allow an unattended or automatic login to the system via the console with the following command: $ grep -iR autologin.user /etc/nixos If "services.xserver.displayManager.autoLogin.user" is defined and is not "null", this is a finding.

Fix Text (F-71999r1039585_fix)

Configure the operating system to not allow an unattended or automatic login to the system via the console. Note: Once set, the system must be rebooted for any changes to apply. Add or update the following configuration in /etc/nixos/configuration.nix: services.xserver.displayManager.autoLogin.user = null; Rebuild the NixOS configuration with the following command: $ sudo nixos-rebuild switch