From Fedora Project Wiki

(Imported from my sandbox)
 
m (Minor fix)
(4 intermediate revisions by 3 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=  
# Update viruses definitions/signatures: '''freshclam'''
# Edit freshclam configuration file: {{command | sed -i 's/^Example/#Example/'  /etc/freshclam.conf}}
# Download EICAR test file or other files with viruses/malwares: '''curl -O http://www.eicar.org/download/eicar.com'''
# Update viruses definitions/signatures: {{command |freshclam}}
# Scan for viruses: ''' clamscan eicar.com'''
# Download the EICAR test file or other files with viruses/malwares: {{command |curl -O http://www.eicar.org/download/eicar.com'''}}
# Scan for viruses: {{command |clamscan eicar.com}}
   
   
|results=
|results=
Line 13: Line 14:




[[Category:Test Cases]]
[[Category:Package_clamav_test_cases]]
[[Category:Security Lab]]
[[Category:Security Lab]]

Revision as of 09:30, 30 January 2020

Description

This test case tests the ability of ClamAV to scan files for various viruses and malwares.

Setup

  1. Ensure the Package-x-generic-16.pngclamav, Package-x-generic-16.pngclamav-update packages are installed.

How to test

  1. Edit freshclam configuration file: sed -i 's/^Example/#Example/' /etc/freshclam.conf
  2. Update viruses definitions/signatures: freshclam
  3. Download the EICAR test file or other files with viruses/malwares: curl -O http://www.eicar.org/download/eicar.com
  4. Scan for viruses: clamscan eicar.com

Expected Results

  1. ClamAV should report at least one infected file found.