DISA STIGS Viewer

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

Overview

Finding ID Version Rule ID IA Controls Severity
V-268121 ANIX-00-000670 SV-268121r1039251_rule   Medium
Description
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.
STIG Date
Anduril NixOS Security Technical Implementation Guide 2024-10-25

Details

Check Text (C-72045r1039249_chk)
Verify that the NixOS system configuration file directories have a mode of "0755" or less permissive with the following command:

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

755 /etc/nixos

If the system configuration file directories have a mode more permissive than "0755", this is a finding.
Fix Text (F-71948r1039250_fix)
Configure the NixOS system configuration file directories to have a mode of "0755" or less permissive by using the following commands:

$ sudo find /etc/nixos -type d -exec chmod -R 755 {} \;

Rebuild the NixOS configuration with the following command:

$ sudo nixos-rebuild switch