Giter Site home page Giter Site logo

webstorage119 / files_antivirus Goto Github PK

View Code? Open in Web Editor NEW

This project forked from owncloud/files_antivirus

0.0 0.0 0.0 1.66 MB

:space_invader: virus scanner for ownCloud

License: GNU Affero General Public License v3.0

PHP 41.55% CSS 0.15% JavaScript 47.46% Shell 2.37% Makefile 1.92% Gherkin 6.53% DIGITAL Command Language 0.02%

files_antivirus's Introduction

ownCloud Antivirus App

files_antivirus is an antivirus app for ownCloud based on ClamAV.

Details

The idea is to check for virus at upload-time, notifying the user (on screen and/or email) and remove the file if it's infected.

QA metrics on master branch:

Build Status Quality Gate Status Security Rating Coverage

Status

The App is not complete yet, the following works/is done:

  • It can be configured to work with the executable or the daemon mode of ClamAV
  • If used in daemon mode it can connect through network- or local file-socket
  • In daemon mode, it sends files to a remote/local server using INSTREAM command
  • When the user uploads a file, it's checked
  • If an uploaded file is infected, it's deleted and a notification is shown to the user on screen and an email is sent with details.
  • Tested in Linux only
  • Background Job to scan all files
  • Test uploading from clients
  • File size limit

ToDo

  • Configurations Tuneups
  • Other OS Testing
  • Look for ideas :P

Requirements

  • ClamAV (Binaries or a server running ClamAV in daemon mode)

Install

  • Install and enable the App
  • Go to Admin Panel and configure the App

Enterprise Feature: ICAP Antivirus integration

The Files Antivirus app can support the ICAP protocol if you are using the ownCloud Enterprise Edition.

Using the ICAP mode requires a valid enterprise license. If no license key is present, it will trigger the grace period to obtain a valid key. After the expiration of the grace period / license key, the files_antivirus app will be disabled.

Run with c-icap/clamav

c-icap has a built-in clamav module see https://sourceforge.net/p/c-icap/wiki/ModulesConfiguration/

An out-of-the-box docker image for testing purpose is available at https://hub.docker.com/r/deepdiver/icap-clamav-service

For simple local testing run docker run -ti deepdiver/icap-clamav-service and get it's ip using docker inspect. The IP address needs to be setup in the configuration - see above

The request service for clamav has to be set to 'avscan' and the response header to 'X-Infection-Found'

Run with Kaspersky

Kaspersky provides docker images as well (https://box.kaspersky.com/d/c8d8577dc2494256b45e/) Follow the instructions in Kaspersky ScanEngine for Kubernetes.7z

Additional configuration: Enable Allow204 - this is necessary to tell kav to not send back the file contents. see https://support.kaspersky.com/ScanEngine/1.0/en-US/201151.htm

The request service for clamav has to be set to 'req' and the response header to 'X-Virus-ID'

NOTE: The older versions of KAV did not send back the virus/infection name in an icap header.

In v2.0.0 the header to transport the virus can be configured. Default: No header is sent. see https://support.kaspersky.com/ScanEngine/1.0/en-US/201214.htm

Authors:

Manuel Delgado López :: manuel.delgado at ucr.ac.cr
Bart Visscher
Viktar Dubiniuk

files_antivirus's People

Contributors

vicdeo avatar phil-davis avatar deepdiver1975 avatar individual-it avatar patrickjahns avatar dpakach avatar bartv2 avatar micbar avatar lukasreschke avatar ownclouders avatar jnweiger avatar artem-sidorenko avatar valarauco avatar pmaier1 avatar morrisjobke avatar haribhandari07 avatar skshetry avatar dschmidt avatar vgezer avatar swikritit avatar nickvergessen avatar kulmann avatar jancborchardt avatar tomneedham avatar jammingben avatar swoichha avatar itn3rd77 avatar wakeup avatar paurakhsharma avatar kiranparajuli589 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.