SV-268119r1131040_rule
V-268119
SRG-OS-000058-GPOS-00028
ANIX-00-000610
CAT II
10
Configure NixOS to prevent unauthorized changes to logon UIDs.
Add the following Nix code to the NixOS Configuration, usually located in /etc/nixos/configuration.nix or /etc/nixos/flake.nix:
security.audit.rules = [
"--loginuid-immutable"
];
Rebuild and switch to the new NixOS configuration:
$ sudo nixos-rebuild switch
Verify the audit system prevents unauthorized changes to logon UIDs with the following command:
$ sudo auditctl -s | grep -i immutable
loginuid_immutable 1 locked
If the command does not return "loginuid_immutable 1 locked", this is a finding.
V-268119
False
ANIX-00-000610
Verify the audit system prevents unauthorized changes to logon UIDs with the following command:
$ sudo auditctl -s | grep -i immutable
loginuid_immutable 1 locked
If the command does not return "loginuid_immutable 1 locked", this is a finding.
M
5658