Sure, it can be done. There are manny SDK for Anti-virus integration with a java web application like : MetaScan , you can check the samples codes and see how it works, the rest is a basic Alfresco extension.
Hey.. I have been trying to explore MetaScan.. can anybody provide me with a guide or approach as to use it? Has anybody tried it out on a real time project?