Microsoft Defender is blocking all files

Ahmad Ido 0 Reputation points
2025-03-20T22:09:46.72+00:00

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 Security | Microsoft Defender | Microsoft Defender for Cloud
{count} votes

1 answer

Sort by: Most helpful
  1. Givary-MSFT 35,626 Reputation points Microsoft Employee Moderator
    2025-03-21T06:56:55.8866667+00:00

    @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.