Linux Server Security Audit Checklist

Linux Server Security Audit Checklist

Run through this checklist monthly to maintain a secure server.

System Updates

  • [ ] Run apt update && apt upgrade -y (or dnf update -y)
  • [ ] Check for kernel updates: uname -r vs. latest available
  • [ ] Reboot if a new kernel was installed

Authentication and Access

  • [ ] Review /var/log/auth.log for unexpected successful logins: grep "Accepted" /var/log/auth.log | tail -30
  • [ ] Check for unexpected users: cat /etc/passwd | grep -v nologin | grep -v false
  • [ ] Verify no unknown SSH authorized keys: cat ~/.ssh/authorized_keys
  • [ ] Check Fail2Ban is running: systemctl status fail2ban

Firewall and Services

  • [ ] Review open ports: ss -tulpn
  • [ ] Check UFW rules: ufw status verbose
  • [ ] Disable any services you no longer need

Cron Jobs

  • [ ] Review root crontab: crontab -l
  • [ ] Check system cron: ls /etc/cron.d/ && cat /etc/crontab
  • [ ] Look for unexpected cron jobs

Disk and Logs

  • [ ] Check disk usage: df -h — alert if any partition >85%
  • [ ] Verify backups ran: check backup log or manually verify backup files
  • [ ] Review error logs: journalctl -p err --since "7 days ago"

SSL Certificates

  • [ ] Check expiry: certbot certificates
  • [ ] Test renewal: certbot renew --dry-run

Rootkit Scan

  • [ ] Run rkhunter: rkhunter --check --skip-keypress
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Securing SSH Access

Securing SSH Access SSH is the main entry point to your server. Hardening it is one of the most...

Setting Up a Firewall with UFW

Setting Up a Firewall with UFW UFW (Uncomplicated Firewall) makes managing firewall rules...

Installing Fail2Ban to Prevent Brute Force Attacks

Installing Fail2Ban Fail2Ban monitors your log files and automatically bans IP addresses that...

Setting Up Let's Encrypt SSL Certificates

Setting Up Let's Encrypt SSL Certificates Let's Encrypt provides free, trusted SSL certificates....

Scanning for Rootkits with rkhunter and chkrootkit

Scanning for Rootkits Rootkits are malware that hide from standard detection tools. Two widely...