Virus Scanning on uploaded file to Azure Block Storage via Azure Web App as of 2020

PingpongSet 36 Reputation points
2020-09-19T08:55:49.51+00:00

My project needs to perform virus scan on uploaded files via Azure AppService web app. Files will be stored in Azure Block Storage if they are cleaned. Otherwise, they are rejected to users.

My question: How should I implement this, does Azure provide built-in anti-virus scan?

https://stackoverflow.com/questions/32567922/virus-scanning-uploaded-files-from-azure-web-worker-role

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,169 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,716 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,436 questions
Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
572 questions
0 comments No comments
{count} votes

9 answers

Sort by: Most helpful
  1. Sam Cogan 10,157 Reputation points MVP
    2020-09-21T08:50:32.983+00:00

    Azure does not provide built in virus scanning for Azure Blob storage. If you require this you will need to implement a solution yourself.
    There are third party products such as Sophos and Trend that can do this for you, or you can create something yourself using tools like Azure Functions or Azure Container Instances, here is an example of this.

    3 people found this answer helpful.
    0 comments No comments

  2. Sumarigo-MSFT 43,801 Reputation points Microsoft Employee
    2020-09-21T09:14:51.437+00:00

    @PingpongSet At this moment, this option isn't available . You'd may use 3rd party or build one yourself. In the future, you'll be able to use https://learn.microsoft.com/en-us/azure/security-center/threat-protection
    You can look into Threat protection for Azure Storage article

    Configure advanced threat protection for Azure Storage : Advanced threat protection for Azure Storage provides an additional layer of security intelligence that detects unusual and potentially harmful attempts to access or exploit storage accounts. This layer of protection allows you to address threats without being a security expert or managing security monitoring systems

    There is a bit older thread "Virus Scan File Uploads Using Multi-Container Web App", which ca help you in this scenario and provide some idea.

    If you are looking out for this feature, If you wish you may leave your feedback here All the feedback you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure.

    Disclaimer: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
    There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    Hope this helps! Kindly let us know if the above helps or you need further assistance on this issue.

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Please don’t forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    3 people found this answer helpful.

  3. Aviv Shitrit 6 Reputation points
    2021-10-27T08:44:22.063+00:00

    There is an open source solution my team implemented, you can check it out here: azure-storage-av-automation

    1 person found this answer helpful.

  4. Saurabh Agrawal 6 Reputation points
    2022-09-29T11:24:31.43+00:00

    Did anyone find a way out to have a layer of virus/malware/trojan scan before a document is uploaded in Microsoft Blob Storage? I see this thread is a couple of years old and hence wanted to check if MS has released any API which can be integrated to check before anything is stored in blob storage.

    Thanks.
    Saurabh

    1 person found this answer helpful.

  5. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more