RE: Security Scans of Documents Uploaded into CRM
Hi Lucas,
I can think of one way to do it, but it would require some development effort.
Since files are uploaded as attachments on notes or emails, create a plugin that scans before the note is created, and before it's updated (only if the documentbody changes - this means a new file was attached).
Download an open source antivirus package like nClam (github.com/.../nClam). This package lets you interact with the antivirus through code and returns a result telling you if the file is infected or not.
In your plugin, convert the document body to a byte[] and send it through nClam for processing. If the file is flagged as having a virus, throw an exception in the plugin. This will prevent the file from being saved and rollback the rest of the suspect transaction.
Hope this helps! I'd appreciate if you would mark this as a Verified answer.
Thanks,
Aiden