STIGQter STIGQter: STIG Summary: Anduril NixOS Security Technical Implementation Guide Version: 1 Release: 2 Benchmark Date: 01 Oct 2025:

NixOS must require users to reauthenticate for privilege escalation.

DISA Rule

SV-268155r1131113_rule

Vulnerability Number

V-268155

Group Title

SRG-OS-000480-GPOS-00227

Rule Version

ANIX-00-001500

Severity

CAT II

CCI(s)

Weight

10

Fix Recommendation

Configure NixOS to enforce reauthentication with sudo.

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

security.sudo.extraConfig = ''
Defaults timestamp_timeout=0
'';

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

Check Contents

Verify NixOS enforces reauthentication with sudo with the following command:

$ sudo grep timestamp_timeout /etc/sudoers

Defaults timestamp_timeout=0

If "timestamp_timeout" is greater than 0, is commented out, or is missing, this is a finding.

Vulnerability Number

V-268155

Documentable

False

Rule Version

ANIX-00-001500

Severity Override Guidance

Verify NixOS enforces reauthentication with sudo with the following command:

$ sudo grep timestamp_timeout /etc/sudoers

Defaults timestamp_timeout=0

If "timestamp_timeout" is greater than 0, is commented out, or is missing, this is a finding.

Check Content Reference

M

Target Key

5658