Can you recommend a good Java anti-virus component to integrate with JavaEE web application? [closed]
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
开发者_JS百科 Improve this questionWould like to hear your suggestion to implement anti-virus Java API to scan uploaded document/files before storing them into database.
I'm not sure if it is really an option, but just in case it makes sense.
If you write your uploaded file to disk before storing it into database, you can use the 'corporative' command line antivirus tool or any other of your choice.
I can't answer to the "good" part of the question, but I did find this thread from a few years ago. A couple of tools mentioned there are Metascan and OpenAntivirus which might at least get you started.
Also, according to this, Postini uses Authentium which does offer an SDK. That might be worth looking at.
I haven't tried any of these products and I can't vouch for them. I'm just sharing what I found.
And, of course, command-line access is available for most (all?) major AV products.
Check this out, I believe it can be changed to in-stream-scan easily:
Java API to Detect Virus Using ClamAV Antivirus
http://nsinfra.blogspot.ca/2011/06/java-api-to-detect-virus-using-clamav.html
ClamAV is an open source (GPL) antivirus engine designed for detecting Trojans, viruses, malware and other malicious threats. It provides a high performance mutli-threaded scanning daemon, command line utilities for on demand file scanning, and an intelligent tool for automatic signature updates.
The source code of Clam AV is written in C.
For more detail about ClamAV refer: www.clamav.net
This post describes the approach of scanning files to detect trojans, viruses, malware and other malicious threats using java APIs.
There is a toolkit company in San Francisco called OPSWAT which offers their file multiscanning product (Metascan) in 3 packages. They offer one month free trial and support. I set up a pilot program and tested their application which was impressive. You can select from a laundry list of sample codes such as ASP.NET and PHP. A live demo of their product is at www.filterbit.com. Their page is here.
精彩评论