- Asset processing
- Content sharing
- User interface
The plugin allows ResourceSpace to check every file uploaded if it is a known virus. It can be configured to work with any antivirus which has a command line interface.
When setting up the antivirus plugin, make sure to use the CLI options that will only print infected files and no other summary. Example (ClamAV): "-i --no-summary".
The path and the the CLI options MUST be configured in config.php (by system administrators). Example:
$antivirus_path = '/opt/sophos-av/bin/savscan'; $antivirus_silent_options = '-SS';
Testing the plugin
To test the plugin, we have used the EICAR Standard Anti-Virus Test File. To create the EICAR file, create a new text file and paste the following:
If you have more than one antivirus on your server, especially one of them having the on-access scanning feature, this will pick up an unsafe file faster than ResourceSpace and will cause issues for the plugin. This was seen with Sophos, so to temporarily disable this feature, run: