Skip to content
MediumOS hardeningBLWK-KERNEL-011

Symlink following protection is disabled ​

What this means ​

fs.protected_symlinks is 0 — a process can follow a symlink in a world-writable sticky directory (like /tmp) even when it doesn't own the link, a long-standing local-privilege-escalation and file-clobbering primitive.

How to fix it ​

Set fs.protected_symlinks=1 via /etc/sysctl.d/ and run sysctl --system.

Check it yourself ​

Run a scan and look for BLWK-KERNEL-011 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
protected_symlinks == 0

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.