This is a Security Audit bash script to gather instantly information about your Linux system which can also help you in the process of hardening.
The script checks for the following information:
- Linux Kernel Information.
- Current User and ID information.
- Linux Distribution Information.
- List Current Logged In Users.
- Uptime Information.
- Running Services.
- Active Internet Connections and Open Ports.
- Check Available Space.
- Check Memory.
- History (Commands).
- Network Interfaces.
- IPtable Information.
- Check Running Processes.
- Check SSH Configuration.
- List all Packages Installed.
- Network Parameters.
- Password Policies.
- Check your Source List File.
- Check for Broken Dependencies.
- MOTD banner message.
- List User Names.
- Check for Null Passwords.
- IP Routing Table.
- Kernel Messages.
- Check Upgradable Packages.
- CPU/System Information.
- TCP wrappers.
- Failed login attempts.
Open the terminal and enter the below command to change permissions on the script.
chmod +x LinuxAudit.sh
Execute ./LinuxAudit.sh
Tested on Debian OS