My requirement is to limit malicious extension files from being uploaded to the case and also deleting them from ServiceExport if they are found malicious. I have found posts saying CallVirusCheck can be useful in this regard. Can somebody help me with the steps to achieve this and also an example or sample code to understand how to implement this?
You have a bit more details on the help file: To test arriving email attachments for software viruses, override the extension point activity Data-WorkAttach-File.CallVirusCheck with an activity that calls your third-party virus software. Your activity can call a Java class or (in a Microsoft Windows server) a Dynamic Linked Library routine.