/LinuxAudit

Security Audit Bash Script for Linux Systems

Primary LanguageShell

Description

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.

LinuxAudit

The script checks for the following information:

  1. Linux Kernel Information.
  2. Current User and ID information.
  3. Linux Distribution Information.
  4. List Current Logged In Users.
  5. Uptime Information.
  6. Running Services.
  7. Active Internet Connections and Open Ports.
  8. Check Available Space.
  9. Check Memory.
  10. History (Commands).
  11. Network Interfaces.
  12. IPtable Information.
  13. Check Running Processes.
  14. Check SSH Configuration.
  15. List all Packages Installed.
  16. Network Parameters.
  17. Password Policies.
  18. Check your Source List File.
  19. Check for Broken Dependencies.
  20. MOTD banner message.
  21. List User Names.
  22. Check for Null Passwords.
  23. IP Routing Table.
  24. Kernel Messages.
  25. Check Upgradable Packages.
  26. CPU/System Information.
  27. TCP wrappers.
  28. Failed login attempts.

Usage

Open the terminal and enter the below command to change permissions on the script.

chmod +x LinuxAudit.sh

Execute ./LinuxAudit.sh

Testing

Tested on Debian OS