NixOS must generate audit records when successful/unsuccessful attempts to delete privileges occur.
Overview
| Finding ID | Version | Rule ID | IA Controls | Severity |
| V-268164 | ANIX-00-001730 | SV-268164r1039380_rule | CCI-000172 | medium |
| Description | ||||
| Without generating audit records that are specific to the security and mission needs of the organization, it would be difficult to establish, correlate, and investigate the events relating to an incident or identify those responsible for one. Audit records can be generated from various components within the information system (e.g., module or policy filter). | ||||
| STIG | Date | |||
| Anduril NixOS Security Technical Implementation Guide | 2024-10-25 | |||
Related Frameworks
4 paths across 3 frameworks
Related Frameworks
NIST 800-531 mapping
AU-12
1.00
- DISA · 1 · disa_xccdf · related
- DISA · 2025-01-23 · disa_cci_list · equivalent
NIST 800-1712 mappings
3.3.1
1.00
- DISA · 1 · 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.3.2
1.00
- DISA · 1 · 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-000172
1.00
- DISA · 1 · disa_xccdf · related
Details
Check Text (C-268164r1039380_chk)
Verify NixOS generates audit records when attempts to delete privileges occur with the following command:
$ sudo auditctl -l | grep usermod
-a always,exit -S all -F path=/run/current-system/sw/bin/usermod -F perm=x -F auid>=1000 -F auid!=-1 -k privileged-usermod
If the command does not return an audit rule for "usermod", this is a finding.
Fix Text (F-71991r1039379_fix)
Configure /etc/nixos/configuration.nix to record attempts to delete privileges by adding the following configuration settings:
security.audit.rules = [
"-a always,exit -F path=/run/current-system/sw/bin/usermod -F perm=x -F auid>=1000 -F auid!=unset -k privileged-usermod"
];
Rebuild the system with the following command:
$ sudo nixos-rebuild switch