DISA STIGS Viewer

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

Overview

Finding ID Version Rule ID IA Controls Severity
V-268172 ANIX-00-001880 SV-268172r1039586_rule   High
Description
Failure to restrict system access via the console to authenticated users negatively impacts operating system security.
STIG Date
Anduril NixOS Security Technical Implementation Guide 2024-10-25

Details

Check Text (C-72096r1039584_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