Hardening scripts for Arch Linux

Hardenings

  • file_permissions.sh: change access mode of user files to 700 and umask to 077
  • install_hardened_kernel.sh: install the hardened kernel instead of the default kernel and add it to GRUB
  • random_MAC_addresses.sh: configure systemd-networkd to change MAC address to a random MAC at boot

How to use

Set scripts as executable

chmod +x *.sh

Run the scripts you need or all scripts with ./complete_hardening.sh

Sources