Cheat Sheets

Security - No SysRq

Description

/proc/sys/kernel/sysrq is to be 0

Solution

echo 'kernel.sysrq = 0' >/etc/sysctl.d/50-kernel.sysrq.conf && sysctl -p

Check Script: security-sysrq-disabled.sh

if [[ $(/sbin/sysctl -n kernel.sysrq 2>/dev/null) != "0" ]]; then
	result_failed "sysctl kernel.sysrq != 0"
fi
Comment on Disqus