NixOS must define default permissions for all authenticated users in such a way that the user can only read and modify their own files.

Overview

Finding IDVersionRule IDIA ControlsSeverity
V-268181ANIX-00-002180SV-268181r1131169_ruleCCI-000366medium
Description
Setting the most restrictive default permissions ensures that when new accounts are created they do not have unnecessary access.
STIGDate
Anduril NixOS Security Technical Implementation Guide2025-08-19

Related Frameworks

4 paths across 3 frameworks
NIST 800-531 mapping
CM-6
1.00
  • DISA · V1R2 · disa_xccdf · related
  • DISA · 2025-01-23 · disa_cci_list · equivalent
NIST 800-1712 mappings
3.4.1
1.00
  • DISA · V1R2 · disa_xccdf · related
  • DISA · 2025-01-23 · disa_cci_list · equivalent
  • NIST · Rev 2 (Feb 2020, errata Jan 2021) · nist_800_171_app_d · equivalent
3.4.2
1.00
  • DISA · V1R2 · disa_xccdf · related
  • DISA · 2025-01-23 · disa_cci_list · equivalent
  • NIST · Rev 2 (Feb 2020, errata Jan 2021) · nist_800_171_app_d · equivalent
CCI1 mapping
CCI-000366
1.00
  • DISA · V1R2 · disa_xccdf · related

Details

Check Text (C-268181r1131169_chk)

Verify the NixOS operating system defines default file permissions so users may only modify their own files. $ grep "UMASK" /etc/login.defs UMASK 077 If the UMASK setting is not present, is commented out, or is less restrictive than 077, this is a finding.

Fix Text (F-72008r1131168_fix)

Configure the NixOS operating system to change default file permissions so users may only modify their own files. Add the following Nix code to the NixOS Configuration, usually located in /etc/nixos/configuration.nix or /etc/nixos/flake.nix: security.loginDefs.settings.UMASK = "077"; Rebuild and switch to the new NixOS configuration: $ sudo nixos-rebuild switch