Skip to content
MediumOS hardeningBLWK-KERNEL-009

Core dumps of setuid processes are not restricted ​

What this means ​

fs.suid_dumpable is 1 (“debuggable”) — a crashed setuid/setgid process dumps core as a file the invoking (unprivileged) user can read, which can leak secrets that were in that process's memory (keys, passwords, tokens) to a lower-privileged user. This is distinct from the safer “0” (no dump) or “2” (routed through a controlled dump handler like systemd-coredump/apport) settings.

How to fix it ​

Set fs.suid_dumpable=0 via /etc/sysctl.d/ and run sysctl --system.

Check it yourself ​

Run a scan and look for BLWK-KERNEL-009 in the results:

sh
bulwark scan

Installed the standalone CLI package instead of the app? The command is bulwarkctl.

How Bulwark decides

Bulwark reads sysctl_kernel and reports this check when:

text
suid_dumpable == 1

If a value can't be read, Bulwark reports the check as undetermined rather than passing it. View the rule source.

References ​

Released under the Apache License 2.0.