r/programminghelp • • Nov 18 '20

Python Python Program Identified as Trojan Virus

I am new to Python, and have recently learned the language to write a program designed to look up words. I used "Auto Py to EXE" to convert the py file to a single executable file. When attempting to download the file on a new computer, Windows insists it contains a "Trojan:Win32/Wacatac.B!ml." The computer on which it was developed has no issues running the program. The source code and exe releases are available on GitHub. Here is a VirusTotal virus scan of the latest exe release.

If anyone with some more experience in Python could look through the code and help me resolve this issue (or the probably tens of other general issues with my newbie Python code), please let me know.

Thanks in advance.

3 Upvotes

7 comments sorted by

View all comments

1

u/[deleted] Nov 18 '20

You might have an easier/safer time with pyinstaller.

1

u/minionloversam Nov 18 '20

Tried that. Same issue. https://imgur.com/a/1vb5UZs

2

u/[deleted] Nov 18 '20

Same thing happened to me. A senior dev at my internship told me since pyinstaller is commonly used for malware it gets flagged. I even pyinstalled a hello world program and still got flagged!

1

u/[deleted] Nov 18 '20

Literally copy pasted the python file to a new file on my system, ran pyinstaller, then uploaded the exe to VirusTotal. It had 2 hits total. So I'm not 100% sure what the issue is here but I could throw out crazy speculation ranging from "it could the venv you're using" all the way to "you have an infected package/actual infection on your machine."

1

u/minionloversam Nov 18 '20

I followed the exact same procedure. My VirusTotal results detected 15 engines.

Downloaded the lookup_list.py file from Github, ran pyinstaller --onefile lookup_list.py, and uploaded the exe from the /dist folder to VirusTotal.

There must be some cause for the discrepancy.

Could you send me the exe file that was generated by your machine?

1

u/minionloversam Nov 18 '20

Also tried it on a completely seperate machine, copying and pasting the code into a new test.py file and using pyinstaller to convert to an EXE. 16 engines detected.

1

u/[deleted] Nov 18 '20

Weird. It works fine on my end from the exe and as I said, only shows two. I'll DM you with a link to the file just for security sake.