STIGUI
V-268121CAT II — Medium severitySV-268121r1131046_rule

NixOS system configuration file directories must have a mode of "0755" or less permissive.

Rule version ANIX-00-000670 · 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 directories have a mode of "755" or less permissive with the following commands:

$ sudo find -L /etc/audit -type d -exec stat -L -c "%a %n" {} \;

755 /etc/audit

If the audit configuration files have a mode more permissive than "755", this is a finding.

Fix

Update the NixOS config, typically stored either in /etc/nixos/configuration.nix or /etc/nixos/flake.nix, to use a mode of 755 or less for directories under /etc/audit.

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

Identifiers

Group ID
V-268121
Group title
SRG-OS-000063-GPOS-00032
Rule ID
SV-268121r1131046_rule
Check ID
C-72045r1131044_chk
Fix ID
F-71948r1131045_fix