Ubuntu 23.04
Sponsored Link

Install Clam AntiVirus2023/04/24

 
Install Clam AntiVirus to protect server from virus.
[1] Install Clamav.
root@dlp:~#
apt -y install clamav
root@dlp:~#
sed -i -e "s/^NotifyClamd/#NotifyClamd/g" /etc/clamav/freshclam.conf

root@dlp:~#
systemctl stop clamav-freshclam
# update pattern files manually

root@dlp:~#
freshclam

Mon Apr 24 06:08:40 2023 -> ClamAV update process started at Mon Apr 24 06:08:40 2023
Mon Apr 24 06:08:40 2023 -> daily.cvd database is up-to-date (version: 26885, sigs: 2031479, f-level: 90, builder: raynman)
Mon Apr 24 06:08:40 2023 -> main.cvd database is up-to-date (version: 62, sigs: 6647427, f-level: 90, builder: sigmgr)
Mon Apr 24 06:08:40 2023 -> bytecode.cvd database is up-to-date (version: 334, sigs: 91, f-level: 90, builder: anvilleg)

root@dlp:~#
systemctl start clamav-freshclam
[2] Try to scan.
root@dlp:~#
clamscan --infected --remove --recursive /home


----------- SCAN SUMMARY -----------
Known viruses: 8663396
Engine version: 0.103.8
Scanned directories: 4
Scanned files: 4
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 13.278 sec (0 m 13 s)
Start Date: 2023:04:24 06:09:18
End Date:   2023:04:24 06:09:31

# download test virus

root@dlp:~#
wget http://www.eicar.org/download/eicar.com
root@dlp:~#
clamscan --infected --remove --recursive ./

/root/eicar.com: Win.Test.EICAR_HDB-1 FOUND
/root/eicar.com: Removed.     # just detected

----------- SCAN SUMMARY -----------
Known viruses: 8663396
Engine version: 0.103.8
Scanned directories: 7
Scanned files: 6
Infected files: 1
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 13.405 sec (0 m 13 s)
Start Date: 2023:04:24 06:09:56
End Date:   2023:04:24 06:10:10
Matched Content