NixOS must require users to reauthenticate when changing roles.
Overview
| Finding ID | Version | Rule ID | IA Controls | Severity |
| V-268156 | ANIX-00-001510 | SV-268156r1039539_rule | CCI-000366 | medium |
| Description | ||||
| 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. | ||||
| STIG | Date | |||
| Anduril NixOS Security Technical Implementation Guide | 2024-10-25 | |||
Related Frameworks
4 paths across 3 frameworks
Related Frameworks
NIST 800-531 mapping
CM-6
1.00
- DISA · 1 · disa_xccdf · related
- DISA · 2025-01-23 · disa_cci_list · equivalent
NIST 800-1712 mappings
3.4.1
1.00
- DISA · 1 · disa_xccdf · related
- DISA · 2025-01-23 · disa_cci_list · equivalent
- NIST · Rev 2 (Feb 2020, errata Jan 2021) · nist_800_171_app_d · equivalent
3.4.2
1.00
- DISA · 1 · disa_xccdf · related
- DISA · 2025-01-23 · disa_cci_list · equivalent
- NIST · Rev 2 (Feb 2020, errata Jan 2021) · nist_800_171_app_d · equivalent
CCI1 mapping
CCI-000366
1.00
- DISA · 1 · disa_xccdf · related
Details
Check Text (C-268156r1039539_chk)
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 (F-71983r1039538_fix)
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