STIGUI
V-268123CAT II — Medium severitySV-268123r1131052_rule

NixOS system configuration files and directories must be group-owned by root.

Rule version ANIX-00-000690 · STIG v1 · 2025-08-19

Discussion

Without the capability to restrict the roles and individuals that can select which events are audited, unauthorized personnel may be able to prevent the auditing of critical events. Misconfigured audits may degrade the system's performance by overwhelming the audit log. Misconfigured audits may also make it more difficult to establish, correlate, and investigate the events relating to an incident or identify those responsible for one.

Check

Verify that the NixOS audit configuration files and directories are group-owned by root with the following commands:

$ sudo find /etc/audit -exec stat -L -c "%G %n" {} \;
$ sudo find /etc/systemd/system -follow -iname "audit*service" -exec stat -c "%G %n" {} \;

root /etc/audit root /etc/audit/auditd.conf root /etc/systemd/system/audit.service root /etc/systemd/system/auditd.service root /etc/systemd/system/basic.target.wants/audit.service root /etc/systemd/system/sysinit.target.wants/auditd.service

If the system configuration files and directories are not group-owned by root or other privileged group (such as shadow), this is a finding.

Fix

Update the NixOS config, typically stored either in /etc/nixos/configuration.nix or /etc/nixos/flake.nix, to only use the root group for files under /etc/audit.

Rebuild and switch to the new NixOS configuration: $ sudo nixos-rebuild switch

Identifiers

Group ID
V-268123
Group title
SRG-OS-000063-GPOS-00032
Rule ID
SV-268123r1131052_rule
Check ID
C-72047r1131050_chk
Fix ID
F-71950r1131051_fix