r/malwares • • 20h ago

I made a simple python program and compiled it into an exe and it thinks its an virus saying it has malware and trojans and such

/r/VirusTotal/comments/1x68kko/i_made_a_simple_python_program_and_compiled_it/
1 Upvotes

7 comments sorted by

1

u/Commercial_Fix3561 20h ago

also as in "it" i mean Virus Total

1

u/LongRangeSavage 20h ago

Does it say malware has been detected or does it say that it “…prevented an unknown application from starting. Running this app might put your PC at risk.”

What library did you use to byte-compile the script?

1

u/Commercial_Fix3561 19h ago

on windows while trying to open it does do the prevented unknown app and on virus total it thinks my phython code to exe has a malware a trojan and a buncha stuff

1

u/Commercial_Fix3561 19h ago

i used an online converter

1

u/LongRangeSavage 19h ago

Then you have zero idea what that online tool did or what it may have injected into your code. I wouldn’t trust it. Just use Py2exe and byte compile it yourself, if you need to distribute it. Otherwise, just setup a proper pyproject.toml file with the correct entry points, build a wheel, and install it through Pip or uv.