Security & Hardening · about 6 min · 7 steps
ClamAV antivirus
Installs the ClamAV scanner, keeps its virus signatures up to date, and scans home folders and web files every week.
Runs on
- Debian / Ubuntu: supported
- RHEL / Fedora: supported — Uses EPEL on RHEL-compatible systems.
- Alpine: supported
What it changes on your server
- Installs ClamAV and freshclam (from EPEL on RHEL-compatible systems).
- Downloads the virus signatures now and updates them automatically.
- Scans /home, /root, /srv, /var/www and /tmp weekly at low priority. Results go to /var/log/shellbay-clamscan.log; files are reported, never moved or deleted.
- On SELinux systems, lets the scanner read the whole system (antivirus_can_scan_system).
What Shellbay asks you
Nothing. This workflow needs no details from you.
Steps
- Check there's enough memory
- Prepare packages
- Install ClamAV
- Download the virus signatures
- Let the scanner read files
- Scan every week
- Check the scanner and signatures
Shellbay checks the server before the first step, and stops at the first step that fails.
When it's done
- ClamAV scans weekly; read the results with sudo tail /var/log/shellbay-clamscan.log. Start a scan now with sudo /usr/local/sbin/shellbay-clamscan.