Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
611 views
in Technique[技术] by (71.8m points)

python - Compiled .py to .exe files detected to have a virus (Win64:Trojan-gen)

Two days ago I finally managed to compile my python program into an .exe. It turned out, that I needed to update the python version and install pyinstaller once more. Everything worked fine, I ran the program and it actually worked! But, when I tried to move it to my USB-Disc, Avast warning popped up, saying that the file is infected with Win64:Trojan-gen. It happened with every file I compiled, however when I move the .py files from folder to folder, they don't get detected as corrupted. I installed the Malwarebytes antivirus, and when scanned the computer, deleted all the files that it found. But, whenever I try again to compile my programs, the exact same thing happens, except that Malvarebytes does not detect any 'bad' files. I reinstalled python and pyinstaller, but it didn't change anything. When running in the safe mode, I did not notice any suspicious processes. So, what is the problem? What should I do? I really would not like to format my laptop. Is it possible that the virus isn't or something? Please Help me I would really appreciate all the help.

EDIT: Already got the answer, thanks a lot! ;) It appears to be a false positive (comments).

EDIT#2: Well, it appears that it is not a false positive. About 20 minutes after putting one of the .exe files into the recycling bin, avast quarantined a file from the bin, which was said to be infected with the virus. The file appeared from 'nowhere', probably from the .exe file, because I dod not empty the bin. Help again.

question from:https://stackoverflow.com/questions/65853024/compiled-py-to-exe-files-detected-to-have-a-virus-win64trojan-gen

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...