Check: ANIX-00-001510
Anduril NixOS STIG:
ANIX-00-001510
(in version v1 r1)
Title
NixOS must require users to reauthenticate when changing roles. (Cat II impact)
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 wheelneedspassword /etc/nixos/ /etc/nixos/configuration.nix:security.sudo.wheelNeedsPassword = true; If the returned line does not have a value of "true" or is commented out, this is a finding.
Fix Text
Configure NixOS to require reauthentication for sudo by editing the /etc/nixos/configuration.nix with the following: security.sudo.wheelNeedsPassword = true; Rebuild the system configuration with the following command: $ sudo nixos-rebuild switch
Additional Identifiers
Rule ID: SV-268156r1039539_rule
Vulnerability ID: V-268156
Group Title: SRG-OS-000480-GPOS-00227
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000366 |
Implement the security configuration settings. |
Controls
Number | Title |
---|---|
CM-6 |
Configuration Settings |