Lion Cipher Lab

Set up on-demand and on-access antivirus scanning with ClamAV

Why it matters

Signature antivirus is one of the oldest and most boring controls in security — and it's still a baseline every defended machine should have, because it reliably and cheaply catches the enormous long tail of KNOWN malware. ClamAV is the standard open-source AV engine: it's free, it runs everywhere Linux does, and it's the workhorse behind mail-server and file-share scanning across the internet. Learning it teaches the real anatomy of an antivirus — a scanner, a resident daemon, an on-access hook, and a signature updater that has to keep running or the whole thing rots. Just as important,…

What you'll learn

Steps in this lab

  1. The pieces of ClamAV, before you touch anything
  2. Install ClamAV
  3. Update the signatures with freshclam — and understand why
  4. Run your first on-demand scan with clamscan
  5. Prove detection safely with the EICAR test file
  6. Bring up the daemon (clamd) and confirm it's running
  7. Turn on on-access scanning with clamonacc and catch a file in real time
  8. When, why, and what's better — the honest limits

Open the full interactive lab →