TMA-LNX-KERN-ASLR
Ensure address space layout randomization is enabled
HighLevel 1Automatedlinux
Description
Kernel parameter kernel.randomize_va_space should be 2.
How it is checked
Audit method: Shell command
shell
sysctl -n kernel.randomize_va_space- Expected output
2
How it is fixed
Fix method: Shell command
shell
sysctl -w kernel.randomize_va_space=2 && printf 'kernel.randomize_va_space = 2\n' > /etc/sysctl.d/60-tmaegis-kernel_randomize_va_space.confProperties
- Operating systems
- ubuntu-22.04, ubuntu-24.04, rocky-9
- Tags
- kernelsysctlnetwork
- Reference
- CIS Linux Benchmark - Network Configuration / Kernel Parameters (verify section number for your distro release)
Check this host
Run this on a machine you are allowed to audit. The scan is read-only.
shell
tmaegis scan --target linux