How to implement file content virus scanner in a JAVA spring core/struts2 based web application?

1k Views Asked by At

I am working on a web application which is accepting some files from external users. Thus, I wish to incorporate one JAVA compatible antivirus in my application which will scan the file content and will generate the outcome whether there is any virus present or not.

I want to manage this feature from my codebase perspective without installing the antivirus on the server itself. My target is to manage some maven dependencies and use some JAVA API for the virus scan which will keep my application server(JBOSS EAP 7.4.3) lightweight.

I have already done some research on this and got few information from some blogs over the internet. But I have not found any dependency related to antivirus API in the maven repository.

Could you please provide some ideas or solutions to solve this problem. Thanks in advance!

Regards, Ritesh

1

There are 1 best solutions below

0
Andrey B. Panfilov On

Mature A/V software supports ICAP protocol, some examples:

Quick google search reveals a plenty of ICAP implementations for java (protocol is actually simple), some of them are interesting, for example: ICAP-avscan