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 when changing roles.

DISA Rule

SV-268156r1131116_rule

Vulnerability Number

V-268156

Group Title

SRG-OS-000480-GPOS-00227

Rule Version

ANIX-00-001510

Severity

CAT II

CCI(s)

Weight

10

Fix Recommendation

Configure NixOS to require reauthentication for sudo.

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

security.sudo.wheelNeedsPassword = true;

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

Check Contents

Verify NixOS requires users to reauthenticate when changing roles with the following command:

$ grep -iR "%wheel" /etc/sudoers

%wheel ALL=(ALL:ALL) SETENV: ALL

If the returned line contains "NOPASSWD", this is a finding.

Vulnerability Number

V-268156

Documentable

False

Rule Version

ANIX-00-001510

Severity Override Guidance

Verify NixOS requires users to reauthenticate when changing roles with the following command:

$ grep -iR "%wheel" /etc/sudoers

%wheel ALL=(ALL:ALL) SETENV: ALL

If the returned line contains "NOPASSWD", this is a finding.

Check Content Reference

M

Target Key

5658