mirror of
https://github.com/tommytran732/Linux-Setup-Scripts
synced 2024-11-22 17:41:32 -05:00
Kali Kernel Hardening
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
8f7d1400b9
commit
dc9496a67b
@ -34,3 +34,15 @@ sudo apt install kali-linux-everything -y
|
|||||||
# Setup UFW
|
# Setup UFW
|
||||||
sudo apt install ufw -y
|
sudo apt install ufw -y
|
||||||
sudo ufw enable
|
sudo ufw enable
|
||||||
|
|
||||||
|
# Kernel hardening
|
||||||
|
unpriv curl https://raw.githubusercontent.com/Kicksecure/security-misc/master/etc/modprobe.d/30_security-misc.conf | sudo tee /etc/modprobe.d/30_security-misc.conf
|
||||||
|
sudo chmod 644 /etc/modprobe.d/30_security-misc.conf
|
||||||
|
unpriv curl https://raw.githubusercontent.com/Kicksecure/security-misc/master/usr/lib/sysctl.d/990-security-misc.conf | sudo tee /etc/sysctl.d/990-security-misc.conf
|
||||||
|
sudo chmod 644 /etc/sysctl.d/990-security-misc.conf
|
||||||
|
unpriv curl https://raw.githubusercontent.com/Kicksecure/security-misc/master/usr/lib/sysctl.d/30_silent-kernel-printk.conf | sudo tee /etc/sysctl.d/30_silent-kernel-printk.conf
|
||||||
|
sudo chmod 644 /etc/sysctl.d/30_silent-kernel-printk.conf
|
||||||
|
unpriv curl https://raw.githubusercontent.com/Kicksecure/security-misc/master/usr/lib/sysctl.d/30_security-misc_kexec-disable.conf | sudo tee /etc/sysctl.d/30_security-misc_kexec-disable.conf
|
||||||
|
sudo chmod 644 /etc/sysctl.d/30_security-misc_kexec-disable.conf
|
||||||
|
sudo sed -i 's/kernel.yama.ptrace_scope=2/kernel.yama.ptrace_scope=3/g' /etc/sysctl.d/990-security-misc.conf
|
||||||
|
sudo sysctl -p
|
Loading…
Reference in New Issue
Block a user