Skip to main content
Version: Next

ClamAV

ClamAV is open-source antivirus engine, used for Detection and Monitor . ClamAV is an open-source antivirus engine for detecting trojans, viruses, malware & other malicious threats.

architecture

Prepare​

When referring to this document to use ClamAV, please read and ensure the following points:

  • Login to Websoft9 Console and find or install ClamAV:

    • Go to My Apps listing applications
    • Go to App Store installing target application
  • This application is installed by Websoft9 console.

  • The purpose of this application complies with the GPL-2.0 open source license agreement.

  • Configure the domain name or server security group opens external network ports for application access.

Getting started​

Start scan​

  1. Access the container through the Exec console

  2. Run the following scan command(note that sudo is not required)

    apk add sudo 
    sudo clamscan -ri /scandir --log=myscan.log

    myscan.log contains the scan results. If it includes information about infected files, it indicates that the system has a virus

Configuration options​

  • Set Scan Path: Define the scan path using the W9-SCAN-PATH_SET variable in the .env file.
  • Scanning Commands: Use clamscan for a deep scan or clamdscan as an alternative scanning method.

Administer​

Troubleshooting​

ClamScan Lacks Permission to Scan Files?​

If ClamScan does not have the necessary permissions to scan files, try using sudo to grant the required access. Run the scan with elevated privileges using sudo clamscan