NixOS system configuration files must have a mode of "0644" or less permissive.
Overview
Finding ID | Version | Rule ID | IA Controls | Severity |
V-268120 | ANIX-00-000660 | SV-268120r1039248_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-72044r1039246_chk) |
Verify that the NixOS system configuration files have a mode of "0644" or less permissive with the following command: $ sudo find /etc/nixos -type f -exec stat -c "%a %n" {} \; 644 /etc/nixos/configuration.nix 644 /etc/nixos/hardware-configuration.nix If the system configuration files have a mode more permissive than "0644", this is a finding. |
Fix Text (F-71947r1039247_fix) |
Configure the NixOS system configuration files to have a mode of "0644" or less permissive by using the following command: $ sudo find /etc/nixos -type f -exec chmod -R 644 {} \; Rebuild the NixOS configuration with the following command: $ sudo nixos-rebuild switch |