STIGQter STIGQter: STIG Summary: Anduril NixOS Security Technical Implementation Guide Version: 1 Release: 2 Benchmark Date: 01 Oct 2025:

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

DISA Rule

SV-268122r1131049_rule

Vulnerability Number

V-268122

Group Title

SRG-OS-000063-GPOS-00032

Rule Version

ANIX-00-000680

Severity

CAT II

CCI(s)

Weight

10

Fix Recommendation

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

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

Check Contents

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

$ sudo find /etc/audit -exec stat -L -c "%U %n" {} \;
$ sudo find /etc/systemd/system -follow -iname "audit*service" -exec stat -c "%U %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 audit configuration files and directories are not owned by root, this is a finding.

Vulnerability Number

V-268122

Documentable

False

Rule Version

ANIX-00-000680

Severity Override Guidance

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

$ sudo find /etc/audit -exec stat -L -c "%U %n" {} \;
$ sudo find /etc/systemd/system -follow -iname "audit*service" -exec stat -c "%U %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 audit configuration files and directories are not owned by root, this is a finding.

Check Content Reference

M

Target Key

5658