Linux distributions
TMA-LNX-KERN-ASLR
Ensure address space layout randomization is enabled
高等級 1自動化linux
說明
Kernel parameter kernel.randomize_va_space should be 2.
檢查方式
稽核方法: Shell 指令
shell
sysctl -n kernel.randomize_va_space- 預期輸出
2
修補方式
修補方法: Shell 指令
shell
sysctl -w kernel.randomize_va_space=2 && printf 'kernel.randomize_va_space = 2\n' > /etc/sysctl.d/60-tmaegis-kernel_randomize_va_space.conf屬性
- 作業系統
- ubuntu-22.04, ubuntu-24.04, rocky-9
- 標籤
- kernelsysctlnetwork
- 參考資料
- CIS Linux Benchmark - Network Configuration / Kernel Parameters (verify section number for your distro release)
檢查此主機
請在您有權稽核的機器上執行此指令。掃描為唯讀操作。
shell
tmaegis scan --target linux