Using Azure as my host, how can I scan user-uploaded files for viruses and malware?

I am running a .NET (C #) cloud application in Azure and have a requirement to scan all files uploaded by users for viruses and malware.

I took a look at Azure Anti-malware and McAfee Endpoint Protection for Azure, but it wasn't immediately clear if they support downloading files before the files are saved. Ideally, any suspicious file will be deleted before it is saved, not a file that will be saved and subsequently scanned.

Is there a way, preferably light weight using Azure resources, to scan the file stream after upload, but before uploading the file to any storage?

Thanks in advance.

+3


source to share


1 answer


According to this , there is no built-in virus scan / anti-malware feature on the websites. One way to enable this scenario would be to use either roles in the cloud service or virtual machines.

Also, you cannot simply install antivirus software in web applications (unless that software can be deployed with your application and does not require administrator rights).



Another way here is to use third part web api like this .

After the user uploads the files, first send the file to the API to scan the file, if the result is successful, you will continue uploading the file to the repository

+1


source







All Articles