From Fedora Project Wiki
m (Minor fix) |
m (EiCAR Website has a new HTTPS-only-Link) |
||
Line 6: | Line 6: | ||
# Edit freshclam configuration file: {{command | sed -i 's/^Example/#Example/' /etc/freshclam.conf}} | # Edit freshclam configuration file: {{command | sed -i 's/^Example/#Example/' /etc/freshclam.conf}} | ||
# Update viruses definitions/signatures: {{command |freshclam}} | # Update viruses definitions/signatures: {{command |freshclam}} | ||
# Download the EICAR test file or other files with viruses/malwares: {{command |curl -O | # Download the EICAR test file or other files with viruses/malwares: {{command |curl -O https://secure.eicar.org/eicar.com'''}} | ||
# Scan for viruses: {{command |clamscan eicar.com}} | # Scan for viruses: {{command |clamscan eicar.com}} | ||
Latest revision as of 09:41, 12 February 2024
Description
This test case tests the ability of ClamAV to scan files for various viruses and malwares.
Setup
- Ensure the
clamav
,clamav-update
packages are installed.
How to test
- Edit freshclam configuration file:
sed -i 's/^Example/#Example/' /etc/freshclam.conf
- Update viruses definitions/signatures:
freshclam
- Download the EICAR test file or other files with viruses/malwares:
curl -O https://secure.eicar.org/eicar.com
- Scan for viruses:
clamscan eicar.com
Expected Results
- ClamAV should report at least one infected file found.