Temporary solution to the problem that the exe file created by PyInstaller is mistaken as a Trojan horse virus by AVAST or AVG

Virus recognition problem when exe of Python with PyInstaller

It is a convenient PyInstaller when easily converting Python to an exe, but it seems that the exed version is now recognized as a Trojan horse by some virus software.

Virus recognized procedure (not used)

environment

Windows 10 64-bit Python3.8

The one that was converted to an exe by the following procedure had quite a lot of virus judgments.

  1. Install pip at the command prompt
  1. Make an exe at the command prompt

image.png

Solution

1) Perform a Git clone at the command prompt

//github.com/pyinstaller/pyinstaller


▼ If you do not have Git, please refer to the link below. https://git-scm.com/book/ja/v2/%E4%BD%BF%E3%81%84%E5%A7%8B%E3%82%81%E3%82%8B-Git%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB

2) At the command prompt, go to the boot loader under PyInstaller

3) Enter the following at the command prompt

python ./waf distclean all


In the case of Linux system, Python 3 is used instead of Python. I get an error here, but Ignore the error because the purpose is to clean it.

4) Enter the following at the command prompt to build the boot loader

python setup.py install


5) Confirmation of installation of pyinstaller

Check the pyinstaller command by typing the following at the command prompt

6) Make an exe at the command prompt

Move to the folder where you created the python code with the cd command and enter the following

Improvement result

Misidentification of the target AVAST, AVG, etc. can be improved, and virus detection by other software has decreased considerably, but virus detection still appears. I searched a lot, but found only an overseas article saying that PyInstaller is used frequently for virus creation, so it can't be helped. Although it is a temporary solution, it is described as a memorandum. image.png

reference

how to recompile the bootloader of Pyinstaller

Recommended Posts

Temporary solution to the problem that the exe file created by PyInstaller is mistaken as a Trojan horse virus by AVAST or AVG
Get the location of the file where the exe is placed when the exe created by PyInstaller is executed
Solution to the problem that the display is corrupted when the .exe command is included in the while loop in wsl2
Normalize the file that converted Excel to csv as it is.
The NVM Checksum Is Not Valid, a solution to the problem that Intel's wired LAN is not recognized on Linux
A solution to the problem that the Python version in Conda cannot be changed
Solution to the problem that you can't activate by putting conda in pyenv
[Python] Solution to the problem that elements are linked when copying a list
A solution to the problem that kernel restarting frequently occurs when running PyQt system with jupyter or Spyder IDE
A solution to the problem that files containing [and] are not listed in glob.glob ()