TMAegis
More rules for linux

TMA-LNX-KERN-SUID-DUMPABLE

Ensure setuid programs cannot dump core

MediumLevel 1Automatedlinux

Description

Kernel parameter fs.suid_dumpable should be 0.

How it is checked

Audit method: Shell command

shell
sysctl -n fs.suid_dumpable
Expected output
0

How it is fixed

Fix method: Shell command

shell
sysctl -w fs.suid_dumpable=0 && printf 'fs.suid_dumpable = 0\n' > /etc/sysctl.d/60-tmaegis-fs_suid_dumpable.conf

Properties

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