Hi,
To install clamAV you can visit official page to download and install desired pkg. To install in debian use sudo dpkg -i <clamav-x.x.x.linux.x86_64.debOR You can download the tar file from the link.
Link to download this pkg -
https://www.clamav.net/downloadsOnce it is installed. You need to configure ClamAV and collect its log.
You should go to this path /etc/clamav/clamd.conf and uncomment LogSyslog true (remove # to uncomment)
Basically, Uncommenting this statement forwards ClamAV logs to the Syslog file /var/log/syslog.
You don’t need further configuration after this because the Wazuh agent reads the /var/log/syslog file by default. Your configuration should be similar to this:
#Automatically Generated by clamav-daemon postinst
#To reconfigure clamd run #dpkg-reconfigure clamav-daemon
#Please read /usr/share/doc/clamav-daemon/README.Debian.gz for details
LocalSocket /var/run/clamav/clamd.ctl
FixStaleSocket true
LocalSocketGroup clamav
LocalSocketMode 666
# TemporaryDirectory is not set to its default /tmp here to make overriding
# the default with environment variables TMPDIR/TMP/TEMP possible
User clamav
ScanMail true
ScanArchive true
ArchiveBlockEncrypted false
MaxDirectoryRecursion 15
FollowDirectorySymlinks false
FollowFileSymlinks false
ReadTimeout 180
MaxThreads 12
MaxConnectionQueueLength 15
LogSyslog true
LogRotate true
...
Wazuh has decoders for ClamAV logs out-of-the-box. Therefore, you don’t need to create any decoders for these logs. Furthermore, we include rules for ClamAV, which you can find at /var/ossec/ruleset/rules/0320-clam_av_rules.xml on the Wazuh server.
You can find these alerts in the /var/ossec/logs/alerts/alerts.log and /var/ossec/logs/alerts/alerts.json files on the Wazuh server when triggered on monitored endpoints.
You can check this link for clear explanation on this -
https://documentation.wazuh.com/current/user-manual/capabilities/malware-detection/clam-av-logs-collection.htmlPlease let me know updates on this and happy to help you anytime.
Kind regards,
Farhan