Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

🔍 Server Security & Health Auditor

An automated Bash script that generates a full server security and health audit report — checking user access, network exposure, and system resource health in a single run.


What It Checks

  • System & Kernel Profile — OS and kernel details (uname -a)
  • User & Access Security — flags all accounts with root-level (UID 0) privileges from /etc/passwd
  • Active Network Ports — lists all listening ports (ss -tuln, with netstat fallback)
  • Hardware Resources — disk space and memory usage snapshot (df -h, free -h)

Why This Exists

Manually checking a server's security posture and health means running several different commands and piecing the results together. This script automates that into a single, repeatable, timestamped report — the kind of lightweight audit tool a sysadmin might run before a security review or as part of routine health checks.

Output

Running the script generates a clean, structured SECURITY_REPORT.md file with all findings organized into clear sections — system profile, user/access audit, network ports, and hardware resource snapshot.

Usage

chmod +x audit_server.sh
./audit_server.sh

The report will be saved as SECURITY_REPORT.md in the same directory.

Requirements

  • A Linux system (tested on Ubuntu Server)
  • Bash shell
  • Standard core utilities (awk, grep, ss/netstat, df, free)

Concepts Applied

  • Bash scripting & output redirection
  • awk for text processing
  • File permissions & script execution
  • Networking commands
  • System/hardware monitoring

License

MIT License — see LICENSE for details.


Built as part of my Linux SysAdmin Journey — 100 Days of DevOps & Cloud Engineering.

About

Automated Bash script for auditing server security and system health — checks user privileges, network exposure, and resource usage in a single report.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages