VPS Security Audit

lightweight, dependency-free bash script for security, performance auditing and infrastructure monitoring of Linux servers.

Copy and run in your terminal to begin audit

$curl -O https://raw.githubusercontent.com/vernu/vps-audit/main/vps-audit.sh && chmod +x vps-audit.sh && sudo ./vps-audit.sh

Security Checks

  • SSH Configuration Analysis
  • Firewall Status & Rules
  • Fail2ban Configuration
  • System Updates Status
  • SUID Files Detection

Performance Monitoring

  • Disk Space Usage
  • Memory Utilization
  • CPU Load Analysis
  • Network Connections
  • Running Services

Clear, Actionable Results

SSH Root Login - Root login is properly disabled
SSH Port - Using default port 22 - consider changing
Firewall Status - UFW firewall is not active

System Requirements

  • Ubuntu/Debian-based Linux system

    Compatible with most popular Linux distributions

  • Root access or sudo privileges

    Required for comprehensive system analysis

  • Basic system packages

    ufw, systemd, netstat, grep, awk (most are pre-installed)

Security Notice

While this script helps identify common security issues, it should not be your only security measure. Always:

  • Keep your system updated
  • Monitor logs regularly
  • Follow security best practices
  • Consider professional security audits for critical systems