STIGhubSTIGhub
STIGsSearchCompareAbout

STIGhub

A free tool to search and browse the entire DISA STIG library. Saves up to 75% in security compliance research time.

Navigation

  • Browse STIGs
  • Search
  • Compare Versions

Resources

  • About
  • VPAT
  • DISA STIG Library
Powered by Pylon
© 2026 Beacon Cloud Solutions, Inc. All rights reserved.
← Back to Anduril NixOS Security Technical Implementation Guide

V-268156

CAT II (Medium)

NixOS must require users to reauthenticate when changing roles.

Rule ID

SV-268156r1131116_rule

STIG

Anduril NixOS Security Technical Implementation Guide

Version

V1R2

CCIs

CCI-000366

Discussion

Without reauthentication, users may access resources or perform tasks for which they do not have authorization. When operating systems provide the capability to change security roles, it is critical the user reauthenticate.

Check Content

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.

Fix Text

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