chamilo / chamilo-lms

Chamilo is a learning management system focused on ease of use and accessibility
https://chamilo.org
GNU General Public License v3.0
795 stars 478 forks source link

Scan files for viruses on upload #3818

Open ywarnier opened 3 years ago

ywarnier commented 3 years ago

Many institutions require any software they include to scan for viruses on uploaded files. ClamAV is an Open Source anti-virus that could be used for this. This is a composer-enabled library that allows us to use a ClamAV daemon or service for that: https://packagist.org/packages/xenolope/quahog

This scan should be implemented for any upload process (logo, stylesheets, SCORM, documents, dropbox, attachments to messages, etc).

lonesomewalker commented 3 years ago

We also should keep an eye to commercial solutions like this: https://www.trendmicro.com/en_us/business/products/hybrid-cloud/cloud-one-file-storage-security.html

So somewhat API-like to say, uploads will be stored temporarily, uploaded to scanner. Then we have 2 options: If something found, delete and give user feedback/notify admin and get a backup of the upload.\ Or we could let the AV solution simply do the extraction and delete process (as for zip files).