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

NixOS audit directory and logs must be group-owned by root to prevent unauthorized read access.

DISA Rule

SV-268112r1039224_rule

Vulnerability Number

V-268112

Group Title

SRG-OS-000057-GPOS-00027

Rule Version

ANIX-00-000540

Severity

CAT II

CCI(s)

Weight

10

Fix Recommendation

Configure the audit directory and logs to be protected from unauthorized read access, by setting the correct group-owner as "root".

Using the path of the directory containing the audit logs (if not specified, the default location is "/var/log/audit/audit.log"), configure the audit directory and log files to be group-owned by "root" by using the following command:

$ sudo chown -R :root /var/log/audit

Check Contents

Verify the audit directory and logs are group-owned by "root". First, determine where the audit logs are stored with the following command:

$ sudo grep log_file /etc/audit/auditd.conf

log_file = /var/log/audit/audit.log

Using the location of the audit log file (if not specified, the default location is "/var/log/audit/audit.log"), determine if the audit log is group-owned by "root" using the following command:

$ sudo find /var/log/audit -exec stat -c "%G %n" {} \;

root /var/log/audit
root /var/log/audit/audit.log

If the audit directory and logs are not group-owned by "root", this is a finding.

Vulnerability Number

V-268112

Documentable

False

Rule Version

ANIX-00-000540

Severity Override Guidance

Verify the audit directory and logs are group-owned by "root". First, determine where the audit logs are stored with the following command:

$ sudo grep log_file /etc/audit/auditd.conf

log_file = /var/log/audit/audit.log

Using the location of the audit log file (if not specified, the default location is "/var/log/audit/audit.log"), determine if the audit log is group-owned by "root" using the following command:

$ sudo find /var/log/audit -exec stat -c "%G %n" {} \;

root /var/log/audit
root /var/log/audit/audit.log

If the audit directory and logs are not group-owned by "root", this is a finding.

Check Content Reference

M

Target Key

5658