Difference between revisions of "Clamav"

From UVOO Tech Wiki
Jump to navigation Jump to search
Line 18: Line 18:
 
```
 
```
  
https://www.howtoforge.com/tutorial/configure-clamav-to-scan-and-notify-virus-and-malware/
+
# Ref:
 +
- https://www.howtoforge.com/tutorial/configure-clamav-to-scan-and-notify-virus-and-malware/
 +
- https://www.clamav.net/downloads/production
 +
- https://www.atlantic.net/vps-hosting/how-to-install-clamav-on-ubuntu-20-04-and-scan-for-vulnerabilities/

Revision as of 17:15, 6 November 2021

apt-get install -y clamav clamav-daemon
systemctl stop clamav-freshclam
freshclam
systemctl start clamav-freshclam
systemctl enable clamav-freshclam
ls /var/lib/clamav/
mkdir /test
echo "X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*" > /test/malware-sig-test-eicar.txt
# clamscan --infected --recursive /test | tee clamscan.log  # --remove
clamscan --infected --recursive /test

vim /etc/clamav/freshclam.conf

# Check for new database 24 times a day
Checks 24

Ref: