NixOS must initiate a session lock after a 10-minute period of inactivity for graphical user logon.
Overview
| Finding ID | Version | Rule ID | IA Controls | Severity |
| V-268086 | ANIX-00-000110 | SV-268086r1130969_rule | CCI-000057 | medium |
| Description | ||||
| 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. | ||||
| STIG | Date | |||
| Anduril NixOS Security Technical Implementation Guide | 2025-08-19 | |||
Related Frameworks
1 mapping across 4 frameworks
Related Frameworks
SCF0 mappings
No source states a mapping between these directly.
Also reachable in 3 hops (1) derived by us, not asserted by any source
Each of these is a route we composed by chaining published mappings. No publisher states a relationship between the two endpoints.
- DISA STIG Benchmark (XCCDF)V1R2intersects(normalised)
- DISA CCI List2025-01-23equal to(normalised)
- SCF Secure Traceability Relationship Mapping (STRM)2026.2intersects
NIST 800-530 mappings
No source states a mapping between these directly.
Also reachable in 2 hops (18) derived by us, not asserted by any source
Each of these is a route we composed by chaining published mappings. No publisher states a relationship between the two endpoints.
- DISA STIG Benchmark (XCCDF)V1R2intersects(normalised)
- DISA CCI List2025-01-23equal to(normalised)
- DISA STIG Benchmark (XCCDF)V1R2intersects(normalised)
- DISA STIG Benchmark (XCCDF)2our copyintersects(normalised)
- DISA STIG Benchmark (XCCDF)2intersects(normalised)
- DISA CCI List2025-01-23equal to(normalised)
- DISA STIG Benchmark (XCCDF)V1R2intersects(normalised)
- DISA STIG Benchmark (XCCDF)V1R4our copyintersects(normalised)
- DISA STIG Benchmark (XCCDF)V1R4intersects(normalised)
- DISA CCI List2025-01-23equal to(normalised)
- DISA STIG Benchmark (XCCDF)V1R2intersects(normalised)
- DISA STIG Benchmark (XCCDF)1our copyintersects(normalised)DISA STIG Benchmark (XCCDF)V1R7our copyintersects(normalised)
- DISA STIG Benchmark (XCCDF)1intersects(normalised)DISA STIG Benchmark (XCCDF)V1R7intersects(normalised)
- DISA CCI List2025-01-23equal to(normalised)
- DISA STIG Benchmark (XCCDF)V1R2intersects(normalised)
- DISA STIG Benchmark (XCCDF)V2R2our copyintersects(normalised)
- DISA STIG Benchmark (XCCDF)V2R2intersects(normalised)
- DISA CCI List2025-01-23equal to(normalised)
- DISA STIG Benchmark (XCCDF)V1R2intersects(normalised)
- DISA STIG Benchmark (XCCDF)7our copyintersects(normalised)
- DISA STIG Benchmark (XCCDF)7intersects(normalised)
- DISA CCI List2025-01-23equal to(normalised)
- DISA STIG Benchmark (XCCDF)V1R2intersects(normalised)
- DISA STIG Benchmark (XCCDF)V1R1our copyintersects(normalised)
- DISA STIG Benchmark (XCCDF)V1R1intersects(normalised)
- DISA CCI List2025-01-23equal to(normalised)
- DISA STIG Benchmark (XCCDF)V1R2intersects(normalised)
- DISA STIG Benchmark (XCCDF)V2R2our copyintersects(normalised)
- DISA STIG Benchmark (XCCDF)V2R2intersects(normalised)
- DISA CCI List2025-01-23equal to(normalised)
- DISA STIG Benchmark (XCCDF)V1R2intersects(normalised)
- DISA STIG Benchmark (XCCDF)V2R2our copyintersects(normalised)
- DISA STIG Benchmark (XCCDF)V2R2intersects(normalised)
- DISA CCI List2025-01-23equal to(normalised)
- DISA STIG Benchmark (XCCDF)V1R2intersects(normalised)
- DISA STIG Benchmark (XCCDF)V2R2our copyintersects(normalised)
- DISA STIG Benchmark (XCCDF)V2R2intersects(normalised)
- DISA CCI List2025-01-23equal to(normalised)
+8 more (top 10 by confidence shown)
NIST 800-1710 mappings
No source states a mapping between these directly.
Also reachable in 3 hops (1) derived by us, not asserted by any source
Each of these is a route we composed by chaining published mappings. No publisher states a relationship between the two endpoints.
3.1.10
1.00
- DISA STIG Benchmark (XCCDF)V1R2intersects(normalised)
- DISA CCI List2025-01-23equal to(normalised)
- NIST SP 800-171 Rev 2, Appendix DRev 2 (Feb 2020, errata Jan 2021)equal to(normalised)
CCI1 mapping
CCI-000057
1.00
- DISA STIG Benchmark (XCCDF)V1R2intersects(normalised)
Details
Check Text (C-268086r1130969_chk)
Verify NixOS initiates a session lock after a 10-minute period of inactivity for graphical user logon with the following command:
$ sudo gsettings get org.gnome.desktop.session idle-delay
uint32 600
$ grep "IdleAction" /etc/systemd/logind.conf
IdleAction = lock
IdleActionSec = 600
$ systemctl --user status xautolock.service
xautolock.service - xautolock service
Loaded: loaded (/etc/systemd/user/xautolock.service; enabled; preset: ignored)
Active: active (running) since Wed 2025-03-19 22:56:13 UTC; 6min ago
Invocation: 836d5b6b79444c62aa3c5285e3c8d92e
Main PID: 3233 (xautolock)
Tasks: 1 (limit: 38062)
Memory: 712K (peak: 2.4M)
CPU: 75ms
CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/xautolock.service
+-3233 /nix/store/4chq53fkkiimbx1qzdbxxs44diiqgj54-xautolock-2.2-7-ga23dd5c/bin/xautolock -noclose -time 10 -locker "/nix/store/w9qcpyhjrxsqrps91wkz8r4mqvg9zrxc-systemd-256.10/bin/loginctl lock-session"
Mar 19 22:56:13 gcs-generic-5-3 systemd[3136]: Started xautolock service.
If "idle-delay" is set to "0" or a value greater than "600", this is a finding.
If "IdleAction" is not "lock" and "IdleActionSec" is not "600", this is a finding.
If the xautolock service is not present or the process line does not contain "-time 10", this is a finding.
Fix Text (F-71913r1130968_fix)
Configure NixOS to initiate a session lock after a 10-minute period of inactivity for graphical user logon.
Update the NixOS config, typically stored either in /etc/nixos/configuration.nix or /etc/nixos/flake.nix:
programs.dconf.profiles.user.databases = with lib.gvariant; lib.mkBefore [
{
settings."org/gnome/desktop/session".idle-delay = (mkUint32 600);
locks = [ "org/gnome/desktop/session/idle-delay" ];
}];
services.logind.extraConfig = ''
IdleAction = lock
IdleActionSec = 600
'';
services.xserver = {
displayManager.gdm.wayland = true;
xautolock = {
enable = true;
time = 10;
locker = "${lib.getExe' config.systemd.package "loginctl"} lock-session";
};
};
};
Rebuild and switch to the new NixOS configuration:
$ sudo nixos-rebuild switch