vps-audit
lightweight, dependency-free bash script for security, performance auditing and infrastructure monitoring of Linux servers.
What is vps-audit?
lightweight, dependency-free bash script for security, performance auditing and infrastructure monitoring of Linux servers.
Overview of vps-audit
What it is
vps-audit is a lightweight, dependency-free Bash script for security, performance auditing and infrastructure monitoring of Linux servers. It is developed and maintained by Nuver Labs. The script performs various security checks and provides a detailed report with recommendations for improvements. It is designed for Ubuntu/Debian-based systems and requires root access or sudo privileges. The project is open source under the MIT License.
Key features
- Security checks including SSH configuration (root login, password authentication, non-default port), firewall status (UFW/firewalld/iptables/nftables), intrusion prevention (Fail2ban/CrowdSec) configuration, failed login attempts, system updates status, running services analysis, open ports detection, sudo logging configuration, password policy enforcement (via pwquality.conf), and SUID files detection.
- Performance monitoring of disk space, memory, CPU usage, and active internet connections.
- Real-time console output with color coding: green for pass, yellow for warn, red for fail.
- Generates a detailed report file with timestamp, all check results, specific recommendations for failed checks, and system resource usage statistics.
- Customizable thresholds for pass/warn/fail status, report output directory and ownership, and security check file paths, all controlled by variables in the Configuration section of the script.
Use cases
- Regular security auditing of VPS or Linux servers to identify vulnerabilities and misconfigurations.
- Performance monitoring to track disk, memory, and CPU usage.
- Infrastructure monitoring for system administrators managing multiple servers.
- Compliance checks for password policies, firewall rules, and SSH hardening.
Getting started
Download the script: bash wget https://raw.githubusercontent.com/Nuver-Labs/vps-audit/main/vps-audit.sh # or curl -O https://raw.githubusercontent.com/Nuver-Labs/vps-audit/main/vps-audit.sh Make the script executable: bash chmod +x vps-audit.sh Run the script with sudo privileges: bash sudo ./vps-audit.sh
License and pricing
The project is licensed under the MIT License. It is open source and free to use.
Based on the project's public README and repository metadata.