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

NixOS must implement address space layout randomization to protect its memory from unauthorized code execution.

DISA Rule

SV-268161r1131128_rule

Vulnerability Number

V-268161

Group Title

SRG-OS-000433-GPOS-00193

Rule Version

ANIX-00-001670

Severity

CAT II

CCI(s)

Weight

10

Fix Recommendation

Configure /etc/nixos/configuration.nix to enable ASLR.

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.randomize_va_space" = 2;
};

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

Check Contents

Verify NixOS enables address space layout randomization with the following command:

$ sudo sysctl kernel.randomize_va_space

kernel.randomize_va_space = 2

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

Vulnerability Number

V-268161

Documentable

False

Rule Version

ANIX-00-001670

Severity Override Guidance

Verify NixOS enables address space layout randomization with the following command:

$ sudo sysctl kernel.randomize_va_space

kernel.randomize_va_space = 2

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

Check Content Reference

M

Target Key

5658