Check: ANIX-00-000690
Anduril NixOS STIG:
ANIX-00-000690
(in version v1 r1)
Title
NixOS system configuration files and directories must be group-owned by root. (Cat II impact)
Discussion
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.
Check Content
Verify that the NixOS system configuration files and directories are group-owned by root with the following command: $ sudo find /etc/nixos -exec stat -c "%G %n" {} \; root /etc/nixos root /etc/nixos/configuration.nix root /etc/nixos/hardware-configuration.nix If the system configuration files and directories are not group-owned by root, this is a finding.
Fix Text
Configure the NixOS system configuration files and directories to be group-owned by root by using the following command: $ sudo find /etc/nixos -exec chown -R :root {} \; Rebuild the NixOS configuration with the following command: $ sudo nixos-rebuild switch
Additional Identifiers
Rule ID: SV-268123r1039257_rule
Vulnerability ID: V-268123
Group Title: SRG-OS-000063-GPOS-00032
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000171 |
Allow organization-defined personnel or roles to select the event types that are to be logged by specific components of the system. |
Controls
Number | Title |
---|---|
AU-12 |
Audit Generation |