Skip to content

sokdr/LinuxAudit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

97 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Description

๐Ÿ›ก๏ธ Linux Security Audit Script

This Bash script gathers detailed information about your Linux system instantly and can help you during the hardening process.

linux

๐Ÿ›ก๏ธ 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

โš ๏ธ Dangerous dotfiles

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

About

Security Audit Bash Script for Linux Systems

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages