1.1.0 • Published 5 years ago
cschardening v1.1.0
CSCHARDENING
Running cschardening will complete the following tasks:
- Install Python, Fail2Ban, IPTState, and SSH
- Configure SSH with a secure configuration file
- Secure sysctl file
- Check for empty passwords, lock accounts with empty passwords, and log locked accounts in /var/log/cschardening
- Sets important file permissions
- Disables system accounts for non-root users
- Checks for files without owners and logs them
- Checks for users with UID set to 0 and locks them if not root.
How to run without npm
Run the following commands:
- sudo apt-get install git python
- git clone https://github.com/chamilitary-man/cschardening.git
- cd cschardening
- sudo python scrap.py
How to run with npm
Run the following commands:
- sudo apt-get install npm
- sudo npm i cschardening -g
- sudo cschardening
Logs
Logs are stored in /var/log/cschardening.
Configuration
You may configure this code to whatever will work best for you. The SSH, Sysctl, and sysauth/passwordauth configuration files can be found in config_tmp. Shell scripts can be found in shell. You may disable parts of this code in the scrap.py file. Simply remove, add classes as you see fit.