STIGUI
V-268176CAT I — High severitySV-268176r1131160_rule

NixOS must employ strong authenticators in the establishment of nonlocal maintenance and diagnostic sessions.

Rule version ANIX-00-001960 · STIG v1 · 2025-08-19

Discussion

If maintenance tools are used by unauthorized personnel, they may accidentally or intentionally damage or compromise the system. The act of managing systems and applications includes the ability to access sensitive application information, such as system configuration details, diagnostic information, user information, and potentially sensitive application data.

Some maintenance and test tools are either standalone devices with their own operating systems or are applications bundled with an operating system.

Nonlocal maintenance and diagnostic activities are those activities conducted by individuals communicating through a network, either an external network (e.g., the internet) or an internal network. Local maintenance and diagnostic activities are those activities carried out by individuals physically present at the information system or information system component and not communicating across a network connection. Typically, strong authentication requires authenticators that are resistant to replay attacks and employ multifactor authentication. Strong authenticators include, for example, PKI where certificates are stored on a token protected by a password, passphrase, or biometric.

Check

Verify NixOS employs strong authentication in the establishment of nonlocal sessions with SSH by the following command:

$ sudo /run/current-system/sw/bin/sshd -G | grep pam

usepam yes

If usepam is not yes, this is a finding.

Fix

Configure NixOS to use strong authentication when establishing nonlocal maintenance and diagnostic sessions.

Add the following Nix code to the NixOS Configuration, usually located in /etc/nixos/configuration.nix or /etc/nixos/flake.nix:

openssh.settings.UsePAM = ''yes'';

Rebuild and switch to the new NixOS configuration: $ sudo nixos-rebuild switch

Identifiers

Group ID
V-268176
Group title
SRG-OS-000125-GPOS-00065
Rule ID
SV-268176r1131160_rule
Check ID
C-72100r1039414_chk
Fix ID
F-72003r1131159_fix