Check: ANIX-00-000110
Anduril NixOS STIG:
ANIX-00-000110
(in version v1 r1)
Title
NixOS must initiate a session lock after a 10-minute period of inactivity for graphical user login. (Cat II impact)
Discussion
A session time-out lock is a temporary action taken when a user stops work and moves away from the immediate physical vicinity of the information system but does not log out because of the temporary nature of the absence. Rather than relying on the user to manually lock their operating system session prior to vacating the vicinity, operating systems need to be able to identify when a user's session has idled and take action to initiate the session lock. The session lock is implemented at the point where session activity can be determined and/or controlled.
Check Content
Verify NixOS initiates a session lock after a 10-minute period of inactivity for graphical user login with the following command: $ sudo gsettings get org.gnome.desktop.session idle-delay uint32 600 If "idle-delay" is set to "0" or a value greater than "600", this is a finding.
Fix Text
Configure NixOS to initiate a session lock after a 10-minute period of inactivity for graphical user login. Add the following Nix code to the NixOS Configuration, usually located in /etc/nixos/configuration.nix: programs.dconf.profiles.user.databases = with lib.gvariant; [ { settings."org/gnome/desktop/session".idle-delay = mkUint32 600; locks = [ "org/gnome/desktop/session/idle-delay" ]; } ]; Rebuild the NixOS configuration with the following command: $ sudo nixos-rebuild switch
Additional Identifiers
Rule ID: SV-268086r1039559_rule
Vulnerability ID: V-268086
Group Title: SRG-OS-000029-GPOS-00010
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000057 |
Prevent further access to the system by initiating a device lock after organization-defined time period of inactivity; and/or requiring the user to initiate a device lock before leaving the system unattended. |
Controls
Number | Title |
---|---|
AC-11 |
Session Lock |