How to prevent "Microsoft defender SmartScreen prevented an unrecognised app" warning for my own python based app

Emre G 0 Reputation points
2024-03-26T20:08:35.73+00:00

Hi, 

I developed a python based application for windows and I created a setup exe for installation into Program Files (x86) folder via inno setup tool. My problem is whenever I execute my setup.exe file on another windows device, SmartScreen shows "Microsoft defender SmartScreen prevented an unrecognised app from starting. Running this app might put your PC at risk" warning. 

I found 2 methods to bypass the warning:

(reference: https://stackoverflow.com/questions/48946680/how-to-avoid-the-windows-defender-smartscreen-prevented-an-unrecognized-app-fro)

1- Click "Run anyway" button-> I really do not want to give my users an impression that my application is an unreliable one. So therefore this option is not ok for me and I want to get rid of this warning from the beginning

2-Buying EV or OV signing certificate -> I do not want to spend any money at the beginning of my startup project.

So the only solution which I found and makes sense is "submitting my app for malware for malware analyses":

I tried to do that which following link and steps:

https://www.microsoft.com/en-us/wdsi/filesubmission ->clicking Software developer button -> then under file download button

I saw following note:

"Submit only the specific files you want analyzed. Submitting an installer package or an archive with a large number of files may delay the analysis and cause your submission to be deprioritized"

So it means that it is also not the right way to get rid of this warning message.

Does anyone any other idea?

Thanks a lot in advance.

Windows 10 Security
Windows 10 Security
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
2,926 questions
Microsoft Defender for Identity
Microsoft Defender for Identity
A Microsoft service that helps protect enterprise hybrid environments from multiple types of advanced, targeted cyberattacks and insider threats.
210 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Reza-Ameri 16,981 Reputation points
    2024-04-10T08:57:14.05+00:00

    As a workaround, whenever it detect is as a threat, you may add it to allow list.
    However, as it has been said, you may submit sample of the file to Microsoft:
    https://www.microsoft.com/en-us/wdsi/filesubmission
    And explain about your issue and report as false-positive or incorrect detection.

    0 comments No comments

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.