Share via

Microsoft Defender is blocking all files

Ahmad Ido 0 Reputation points
Mar 20, 2025, 10:09 PM

Hello.

We’re developing a FastAPI solution hosted on Azure App Services, with an endpoint that uploads PDF files to Azure Blob Storage. To ensure file safety, we enabled Microsoft Defender’s file-scanning feature on upload and set up a Logic App to send alerts if any files are flagged as malicious.

However, every PDF file we upload is being detected as malicious, even though we believe these files are safe. We’ve reviewed our configuration and haven’t identified any settings that might explain these false positives.

Could you please assist us in diagnosing and resolving this issue? You can reach me via email at Your help is greatly appreciated.

Microsoft Defender for Cloud
Microsoft Defender for Cloud
An Azure service that provides threat protection for workloads running in Azure, on-premises, and in other clouds. Previously known as Azure Security Center and Azure Defender.
1,502 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Givary-MSFT 35,486 Reputation points Microsoft Employee
    Mar 21, 2025, 6:56 AM

    @Ahmad Ido Thank you for reaching out to us, As I understand your concern is with respect to pdf file being marked as malicious by defender for cloud (with an endpoint that uploads PDF files to Azure Blob Storage).

    As per my understanding below are the few reasons:

    1. Intentional upload of malware by a malicious actor (true positive) 
    2. Unintentional upload of malware by a legitimate user (true positive) 
    3. A false positive detection by Microsoft storage malware scanning.

    Assuming your ask is related to 3rd point, false positive detection.

    If you suspect that the file is not malicious and that the detection is a false positive, you can submit the file for analysis here - https://learn.microsoft.com/en-us/unified-secops-platform/submission-guide In the form, make sure to enter the provider's name "Defender for Storage".

    Also review this section Handle possible false positives for more insights on how to handle false positives.

    Defender for Cloud allows you to suppress false positive alerts. Make sure to limit the suppression rule by using the malware name or file hash.

    Let me know if you have any further questions, feel free to post back, if needed we can connect offline to discuss further on the same.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.