From Fedora Project Wiki
(use command parser) |
(Change sed command to change the config file properly) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
# Ensure the {{package|clamav}}, {{package|clamav-update}} packages are installed. | # Ensure the {{package|clamav}}, {{package|clamav-update}} packages are installed. | ||
|actions= | |actions= | ||
# 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 EICAR test file or other files with viruses/malwares: {{command |curl -O http://www.eicar.org/download/eicar.com'''}} | # Download EICAR test file or other files with viruses/malwares: {{command |curl -O http://www.eicar.org/download/eicar.com'''}} | ||
Line 13: | Line 14: | ||
[[Category: | [[Category:Package_clamav_test_cases]] | ||
[[Category:Security Lab]] | [[Category:Security Lab]] |
Revision as of 21:00, 5 March 2018
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 EICAR test file or other files with viruses/malwares:
curl -O http://www.eicar.org/download/eicar.com
- Scan for viruses:
clamscan eicar.com
Expected Results
- ClamAV should report at least one infected file found.