STIGhubSTIGhub
STIGsSearchCompareAbout

STIGhub

A free tool to search and browse the entire DISA STIG library. Saves up to 75% in security compliance research time.

Navigation

  • Browse STIGs
  • Search
  • Compare Versions

Resources

  • About
  • VPAT
  • DISA STIG Library
Powered by Pylon
© 2026 Beacon Cloud Solutions, Inc. All rights reserved.
← Back to Anduril NixOS Security Technical Implementation Guide

V-268112

CAT II (Medium)

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

Rule ID

SV-268112r1039224_rule

STIG

Anduril NixOS Security Technical Implementation Guide

Version

V1R2

CCIs

CCI-000162, CCI-001314

Discussion

Only authorized personnel should be aware of errors and the details of the errors. Error messages are an indicator of an organization's operational state or can identify the NixOS system or platform. Additionally, Personally Identifiable Information (PII) and operational information must not be revealed through error messages to unauthorized personnel or their designated representatives. The structure and content of error messages must be carefully considered by the organization and development team. The extent to which the information system is able to identify and handle error conditions is guided by organizational policy and operational requirements. Satisfies: SRG-OS-000057-GPOS-00027, SRG-OS-000206-GPOS-00084

Check Content

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.

Fix Text

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