Skip to main content

ClamAV

Metadata

  • Identifier: clamav
  • Maturity: Production

Categories

  • Antimalware
  • Host Protection

Description

Clam AntiVirus (ClamAV) is a free software, cross-platfom antimalware toolkit able to detect many types of malware, including viruses. ClamAV includes a command-line scanner, automatic database updater, and a scalable multi-threaded daemon running on an anti-virus engine from a shared library. FreshClam is a virus database update tool for ClamAV. ClamAV Daemon checks periodically for virus database definition updates, downloads, installs them, and notifies clamd to refresh it's in-memory virus database cache.

Actions

IdentifierDescriptionExpected Parameters Keys and Types
start_scanStarts the scan containing the predifined scan options: Quarantine Location and Scan Log Location. Also, it requires the input of Scan Location.scan_location (STRING)

Information

IdentifierDescriptionTypePropertiesDefault Value
daily_infected_files_detectedTotal number of infected files detected todayINTEGERMETRIC, READ_ONLY
quarantine_locationThe location where the infected files will be moved to after the on-demand/crontab scans. Select a directory in which the quarantine will take place if you would like to change.STRINGMANDATORY, WITH_DEFAULT_VALUE, CONFIGURATION, NON_DEDUCTIBLE, WRITABLE/opt/mutablesecurity/clamav/quarantine/
scan_day_of_monthThe day (1-31, or * for any) of the month when the crontab scan will take placeSTRINGOPTIONAL, WITH_DEFAULT_VALUE, CONFIGURATION, NON_DEDUCTIBLE, WRITABLE*
scan_day_of_weekThe day (0-6, SUN-SAT, 7 for Sunday or * for any) of the week when the crontab scan will take placeSTRINGOPTIONAL, WITH_DEFAULT_VALUE, CONFIGURATION, NON_DEDUCTIBLE, WRITABLEMON
scan_hourThe hour (0-23, or * for any) when the crontab scan will take placeSTRINGOPTIONAL, WITH_DEFAULT_VALUE, CONFIGURATION, NON_DEDUCTIBLE, WRITABLE0
scan_locationThe location where the on-demand/crontab scans will take place.Select a different directory if you would like to change.STRINGMANDATORY, WITH_DEFAULT_VALUE, CONFIGURATION, NON_DEDUCTIBLE, WRITABLE/
scan_log_locationThe location of the generated logs after the on-demand/crontab scans.Chose a file in which the logs will be stored if you would like to change.STRINGMANDATORY, WITH_DEFAULT_VALUE, CONFIGURATION, NON_DEDUCTIBLE, WRITABLE/opt/mutablesecurity/clamav/logs/logs.txt
scan_minuteThe minute (0-59, or * for any) when the crontab scan will take placeSTRINGOPTIONAL, WITH_DEFAULT_VALUE, CONFIGURATION, NON_DEDUCTIBLE, WRITABLE0
scan_monthThe month (1-12, JAN-DEC, or * for any) when the crontab scan will take placeSTRINGOPTIONAL, WITH_DEFAULT_VALUE, CONFIGURATION, NON_DEDUCTIBLE, WRITABLE*
total_infected_files_detectedTotal number of infected files detected overallINTEGERMETRIC, READ_ONLY
versionInstalled versionSTRINGMETRIC, READ_ONLY

Logs

IdentifierDescriptionLocationFormat
clamav_logsThe logs generated by ClamAV/var/log/clamav/clamav.logTEXT
freshclam_logsThe logs generated by FreshClam/var/log/clamav/freshclam.logTEXT
scan_logsThe logs generated during ClamAV scanningScanLogLocation-dependentTEXT

Tests

IdentifierDescriptionType
active_databaseChecks if the ClamAV virus database service is active.OPERATIONAL
eicar_detectionCreates a EICAR-STANDARD-ANTIVIRUS-TEST-FILE and checks if ClamAV is able to detect it.SECURITY
internet_accessChecks if host has Internet access.REQUIREMENT
ubuntuChecks if the operating system is Ubuntu.REQUIREMENT

References