This repository is a collection of scripts designed to secure/harden Linux based Distributions.
All you need to do is download the repository. There are no binaries or anything to install.
git clone https://github.com/StrangeRanger/linux-security-scripts
A majority of the scripts will require root privilege to be executed:
sudo ./[script name]
OR sudo bash [script name]
All of the scripts should work on most, if not all Linux Distributions. With that said, below is a list of Linux Distributions that the scripts have been officially tested and are confirmed to work on.
Distributions | Distro Versions |
---|---|
Ubuntu | 24.04, 22.04, 20.04 |
Debian | 11, 10, 9 |
While this repository has scripts that can help secure Linux, it's not nearly enough to secure the system as much as it needs to be. Below is a list of other resources that you can/should use to help make your system as secure as possible.
- SSH Audit - SSH server & client auditing (banner, key exchange, encryption, mac, compression, compatibility, security, etc).