Check: ANIX-00-000120
Anduril NixOS STIG:
ANIX-00-000120
(in version v1 r1)
Title
NixOS must provide the capability for users to directly initiate a session lock for all connection types. (Cat II impact)
Discussion
A session 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 want to log out because of the temporary nature of the absence. The session lock is implemented at the point where session activity can be determined. Rather than be forced to wait for a period of time to expire before the user session can be locked, operating systems need to provide users with the ability to manually invoke a session lock so users may secure their session should the need arise for them to temporarily vacate the immediate physical vicinity. Satisfies: SRG-OS-000030-GPOS-00011, SRG-OS-000028-GPOS-00009, SRG-OS-000031-GPOS-00012
Check Content
Verify the NixOS operating system has the "vlock" package installed by running the following command: $ nix-store --query --requisites /run/current-system | cut -d- -f2- | sort | uniq | grep vlock vlock-2.2.2 If the "vlock" package is not installed, this is a finding.
Fix Text
Configure NixOS to have a package that allows user to lock session. Add the following Nix code to the NixOS Configuration, usually located in /etc/nixos/configuration.nix: environment.systemPackages = [ pkgs.vlock ]; Rebuild the NixOS configuration with the following command: $ sudo nixos-rebuild switch
Additional Identifiers
Rule ID: SV-268087r1039606_rule
Vulnerability ID: V-268087
Group Title: SRG-OS-000030-GPOS-00011
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000056 |
Retain the device lock until the user reestablishes access using established identification and authentication procedures. |
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. |
CCI-000060 |
Conceal, via the device lock, information previously visible on the display with a publicly viewable image. |