المشاريع
عرض على GitHub
healthyhost/audit-vps-script
حول
Run a security scan on your server and identify common gaps. Get your VPS ready for production.
الأمان والخصوصيةالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- +١
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلaudit-vps-script
Scans your server to find common issues like weak SSH settings, missing firewalls, lack of updates, and more. Perfect for getting your VPS ready for production.

Usage
- Download the script
$ curl -O https://raw.githubusercontent.com/healthyhost/audit-vps-script/main/audit.sh
- Make it executable:
$ chmod +x audit.sh
- Run the security audit:
$ sudo ./audit.sh
Web
Visit https://auditpvps.com to run checks through our web app for free and render the results in your browser.
Requirements
- Ubuntu/Debian-based distributions
jq(temporary dependency, planned for removal)- Root or sudo privileges
Security checks
The scripts perform the following checks:
- Root
- Check that non-root sudo user exists
- Firewall (UFW)
- Check that UFW is installed
- Check that UFW is enabled
- Check that incoming traffic is blocked
- SSH
- Check that SSH is enabled
- Check that key-based authentication is enabled
- Check that root login is disabled
- Check that password authentication is disabled
- Check that SSH is listening on port 22
- Fail2Ban
- Check that Fail2ban is installed
- Check that Fail2ban is enabled
- Check that Fail2ban is configured correctly
- Check that Fail2ban SSH is enabled
- Check that Fail2ban SSH is in aggressive mode
- Access control
- Check that
/etc/passwdis readable by everyone - Check that
/etc/shadowis readable by root only
- Check that
- System updates
- Check that automatic system updates are enabled
- Check that automatic system upgrades are enabled
- Port security
- Checks that insecure ports are not open
Contributing
We welcome contributions! If you have any suggestions or improvements, please open an issue or submit a pull request.
License
MIT
Roadmap
- Support for additional Linux distributions:
- RHEL/CentOS
- Fedora
- Alpine Linux
- Removal of
jqdependency - Warning states (WARN) for non-critical security recommendations
- Code refactoring to improve readability
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…