NixOS must require users to reauthenticate when changing roles.
An XCCDF Rule
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.
- ID
- SV-268156r1039539_rule
- Version
- ANIX-00-001510
- Severity
- Medium
- References
- Updated
Remediation Templates
A Manual Procedure
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