This wasn’t conclusive debug output.
sudo dmesg | grep lkrg
[ 89.832261] p_lkrg: loading out-of-tree module taints kernel.
[ 89.850921] p_lkrg: module verification failed: signature and/or required key missing - tainting kernel
[ 89.852290] [p_lkrg] Loading LKRG...
[ 91.952994] [p_lkrg] LKRG initialized successfully!
[ 92.017905] [p_lkrg] Disabling MSRs verification during CI.
[ 92.047093] [p_lkrg] [ED] New pCFI configuration => 1 (No stackwalk (weak))
[ 510.949628] [p_lkrg] <Exploit Detection> !!! BLOCKING UMH !!!
[ 510.949632] [p_lkrg] <Exploit Detection> Someone is trying to execute file: [/bin/false]
[ 510.949633] [p_lkrg] <Exploit Detection> --- . ---
sudo sysctl -a | grep lkrg
lkrg.block_modules = 0
lkrg.ci_panic = 0
lkrg.clean_message = 0
lkrg.enforce_msr = 0
lkrg.enforce_pcfi = 1
lkrg.force_run = 0
lkrg.hide = 0
lkrg.log_level = 1
lkrg.random_events = 1
lkrg.smep_panic = 1
lkrg.timestamp = 15
lkrg.umh_lock = 0
grep -r /bin/false /etc/modprobe.d
/etc/modprobe.d/vivid.conf:install vivid /bin/false
/etc/modprobe.d/uncommon-network-protocols.conf:install dccp /bin/false
/etc/modprobe.d/uncommon-network-protocols.conf:install sctp /bin/false
/etc/modprobe.d/uncommon-network-protocols.conf:install rds /bin/false
/etc/modprobe.d/uncommon-network-protocols.conf:install tipc /bin/false
/etc/modprobe.d/uncommon-network-protocols.conf:install n-hdlc /bin/false
/etc/modprobe.d/uncommon-network-protocols.conf:install ax25 /bin/false
/etc/modprobe.d/uncommon-network-protocols.conf:install netrom /bin/false
/etc/modprobe.d/uncommon-network-protocols.conf:install x25 /bin/false
/etc/modprobe.d/uncommon-network-protocols.conf:install rose /bin/false
/etc/modprobe.d/uncommon-network-protocols.conf:install decnet /bin/false
/etc/modprobe.d/uncommon-network-protocols.conf:install econet /bin/false
/etc/modprobe.d/uncommon-network-protocols.conf:install af_802154 /bin/false
/etc/modprobe.d/uncommon-network-protocols.conf:install ipx /bin/false
/etc/modprobe.d/uncommon-network-protocols.conf:install appletalk /bin/false
/etc/modprobe.d/uncommon-network-protocols.conf:install psnap /bin/false
/etc/modprobe.d/uncommon-network-protocols.conf:install p8023 /bin/false
/etc/modprobe.d/uncommon-network-protocols.conf:install p8022 /bin/false
/etc/modprobe.d/blacklist-dma.conf:install firewire-core /bin/false
/etc/modprobe.d/blacklist-dma.conf:install thunderbolt /bin/false
/etc/modprobe.d/msr.conf:install msr /bin/false
/etc/modprobe.d/blacklist-bluetooth.conf:install bluetooth /bin/false
/etc/modprobe.d/blacklist-bluetooth.conf:install btusb /bin/false
At least I’d like to know which module specifically was refused loading.
Instead of install vivid /bin/false
I tried install vivid /bin/false vivid
. I.e. passing a parameter to /bin/false which would be ignored by /bin/false but useful to see in logs. That didn’t work. LKRG won’t show it.
It was security-misc kernel.core_pattern=|/bin/false
Therefore what do you think about changing /etc/modprobe.d/vivid.conf
from
install vivid /bin/false
to
install vivid /bin/false_vivid
To a non-existing binary.
Any reason against that?