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

NixOS must implement nonexecutable data to protect its memory from unauthorized code execution.

DISA Rule

SV-268160r1131126_rule

Vulnerability Number

V-268160

Group Title

SRG-OS-000433-GPOS-00192

Rule Version

ANIX-00-001660

Severity

CAT II

CCI(s)

Weight

10

Fix Recommendation

Configure NixOS to prevent internal kernel addresses from being leaked.

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

boot.kernel.sysctl = {
"kernel.kptr_restrict" = 1;
};

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

Check Contents

Verify NixOS prevents internal kernel addresses from being leaked with the following command:

$ sudo sysctl kernel.kptr_restrict

kernel.kptr_restrict = 1

If "kernel.kptr_restrict" does not have a value of "1" or is missing, this is a finding.

Vulnerability Number

V-268160

Documentable

False

Rule Version

ANIX-00-001660

Severity Override Guidance

Verify NixOS prevents internal kernel addresses from being leaked with the following command:

$ sudo sysctl kernel.kptr_restrict

kernel.kptr_restrict = 1

If "kernel.kptr_restrict" does not have a value of "1" or is missing, this is a finding.

Check Content Reference

M

Target Key

5658