STIGQter STIGQter: STIG Summary: Anduril NixOS Security Technical Implementation Guide Version: 1 Release: 2 Benchmark Date: 01 Oct 2025:

NixOS must generate audit records when successful/unsuccessful attempts to delete security objects occur.

DISA Rule

SV-268165r1131135_rule

Vulnerability Number

V-268165

Group Title

SRG-OS-000468-GPOS-00212

Rule Version

ANIX-00-001740

Severity

CAT II

CCI(s)

Weight

10

Fix Recommendation

Configure NixOS to audit attempts to delete security objects.

Add the following Nix code to the NixOS Configuration, usually located in /etc/nixos/configuration.nix or /etc/nixos/flake.nix:

security.audit.rules = [
"-a always,exit -F path=/run/current-system/sw/bin/chage -F perm=x -F auid>=1000 -F auid!=unset -k privileged-chage"
"-a always,exit -F path=/run/current-system/sw/bin/chcon -F perm=x -F auid>=1000 -F auid!=unset -k perm_mod"
];

Rebuild and switch to the new NixOS configuration:
$ sudo nixos-rebuild switch

Check Contents

Verify that NixOS generates audit records when successful/unsuccessful attempts to delete security objects occur with the following command:

$ sudo auditctl -l | grep /bin/ch

-a always,exit -S all -F path=/run/current-system/sw/bin/chage -F perm=x -F auid>=1000 -F auid!=-1 -k privileged-chage
-a always,exit -S all -F path=/run/current-system/sw/bin/chcon -F perm=x -F auid>=1000 -F auid!=-1 -k perm_mod


If the command does not return an audit rule for "chage" and "chcon", this is a finding.

Vulnerability Number

V-268165

Documentable

False

Rule Version

ANIX-00-001740

Severity Override Guidance

Verify that NixOS generates audit records when successful/unsuccessful attempts to delete security objects occur with the following command:

$ sudo auditctl -l | grep /bin/ch

-a always,exit -S all -F path=/run/current-system/sw/bin/chage -F perm=x -F auid>=1000 -F auid!=-1 -k privileged-chage
-a always,exit -S all -F path=/run/current-system/sw/bin/chcon -F perm=x -F auid>=1000 -F auid!=-1 -k perm_mod


If the command does not return an audit rule for "chage" and "chcon", this is a finding.

Check Content Reference

M

Target Key

5658