In computing, hardening is usually the process of securing a system by reducing its surface of vulnerability, which is larger when a system performs more functions; in principle a single-function system is more secure than a multipurpose one. Reducing available ways of attack typically includes changing default passwords, the removal of unnecessary software, unnecessary usernames or logins, and the disabling or removal of unnecessary services. Clone repository
Source: Wikipedia
git clone https://github.com/NitescuLucian/OSHardening.git
Navigate to the repository folder
cd OSHardening
Choose your OS from the following:
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Give execution permission to the fille.
chmod +x ./kali.sh
Execute.
./kali.sh
Review cli and log filles and make your changes according to your preferences.
In this OS I did not cover the following steps:
- Adding a non-root user.
- Log management
- Closing open ports (iptables -A INPUT -p tcp --dport PORT_NUMBER -j DROP or UFW specific rules)
- Local encryption
Problems might be caused by:
- UFW Firewall rules for specific tools within the Kali Linux
Give execution permission to the fille.
chmod +x ./ubuntu_16.04LTS.sh
Execute.
sudo ./ubuntu_16.04LTS.sh
Review cli and log filles and make your changes according to your preferences.
In this OS I did not cover the following steps:
- Adding a non-root user.
- Log management
- Closing open ports (iptables -A INPUT -p tcp --dport PORT_NUMBER -j DROP or UFW specific rules)
- Local encryption
Give execution permission to the fille.
chmod +x ./ubuntu_16.10.sh
Execute.
sudo ./ubuntu_16.10.sh
Review cli and log filles and make your changes according to your preferences.
In this OS I did not cover the following steps:
- Adding a non-root user.
- Log management
- Closing open ports (iptables -A INPUT -p tcp --dport PORT_NUMBER -j DROP or UFW specific rules)
- Local encryption