This Bash script gathers detailed information about your Linux system instantly and can help you during the hardening process.
๐ก๏ธ 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
๐ Command History
๐ Network Interfaces
๐ก๏ธ IPTables 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
๐ Cron Jobs
๐ Shells Used by Users
๐ ๏ธ Services Run by Root
๐ UID 0 users other than root
โณ Password aging
๐ World writable files
๐งท SUID/SGID binaries
๐ก๏ธ Sysctl security params
๐ ARP table
๐ Last reboots
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