Why is my Python executable barred by Antivirus? And how do I fix it?

Asked

Viewed 390 times

2

I was creating an executable with pyinstaller from a simple Python file. My antivirus Avast blocked the executable claiming to have viruses, although it did not have.

So I made the following code in Python:

print("hello world")

I called the pyinstaller to create the executable of that code with the command:

pyinstaller -wF meuarquivo.py

He generated the executable: meuarquivo.exe.

When executing the meuarquivo.exe, Avast blocked the program and moved it to the virus vault. With that, my doubts are:

  • Why a simple "hello world" was considered a virus?
  • How to make my executable not be considered as virus, since it is not?
  • if you help, I have found an article on the Internet that shows the problem, but it does not help to resolve or explain why it occurs: https://www.defcon-lab.org/se-python-entao-virus/

  • It also has on Soen: https://stackoverflow.com/q/43777106/1452488

  • Our link helped me a lot, but so in one of the answers a guy said to compile them yourself on your machine, Know what he meant by that? sorry I am new in this area to compile and make executables

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.