N
N
New_account2018-08-09 18:10:27
Python
New_account, 2018-08-09 18:10:27

How to make the antivirus not react to my program as a virus?

I wrote a Python3 program, compiled it, wrote an installer. In general, everything is as it should. But when I (or any other user with Avast) try to run the program, Avast runs a virus scan. There are other programs on the computer, but it reacts absolutely calmly to them (even if the publisher of the product is unknown). What is this problem and how to solve it?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
N
New_account, 2018-08-10
@New_account

I asked the question myself and will answer. You need to compile python code to c code using cython. And then compile the c-code into .exe. I found the information here - python-3.ru/page/python-code-compile . Only there the method of compilation to .pyd is considered, but it doesn’t matter. Indeed, on the Internet, I think there is infa how to compile C code into .exe (Here is a link to the C to EXE tutorial - https://msdn.microsoft.com/ru-ru/library/bb384838.aspx ). Thank you all for your replies and your time. I hope this topic will help not only me.

F
Fixid, 2018-08-09
@Fixid

First, find out how the "virus" is classified and it remains to find out what signatures the antivirus reacts to. It is quite possible that the program climbs into many unwanted places at startup.

S
Sergey Gornostaev, 2018-08-09
@sergey-gornostaev

Due to the fact that Python scripts don't actually compile. The executable file you received is a "packer", which, when launched, reads a piece from itself at some offset, unpacks it into a temporary directory contained inside the Python interpreter, its libraries, and your scripts themselves, and then runs the scripts on this interpreter. That's just the sequence of actions "cut off from the end, unpack, run" is typical for viruses.

A
Alexander Taratin, 2018-08-09
@Taraflex

Avast swears at all about any self-written program (because nothing like this has ever been seen in its databases before), this is not a python problem.
The solution is to stupidly score and explain the situation to the customer, if the software is not for itself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question