Python Forum

Full Version: pyinstaller generated code gets flagged by NIS
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I just started learning python. I wrote the following source code to generate a ~1GB size file.

seed_number = 1073741824
datastring = "000000000000000000000000"
limit = int(seed_number/len(datastring))
output_file = open("datafile.txt",mode='a')


for i in range(limit,0,-1):
    output_file.write(datastring)
    
output_file.close()
I used pip to download and install pyinstaller, and 'compiled' my source. Norton Internet Security flagged the resulting executable as 'Heur.AdvML.B' I'm assuming it's a false positive, of course. I was just wondering if others using pyinstaller, have run into this.

Is there a alternate executable generator I should be using?
I had the same issue this morning (1/2/19) with a "onefile" executable I created using pyinstaller. The silly thing is that I was just creating a test program that prints two lines out.

I have used pyinstaller a few times in the past to create executables and never had this issue.

Not sure if this is simply a new false positive on Norton's side? Or if we should be worried about something going on with pyinstaller's source code???
(Jan-02-2019, 01:35 PM)jcort2171 Wrote: [ -> ]I had the same issue this morning (1/2/19) with a "onefile" executable I created using pyinstaller. The silly thing is that I was just creating a test program that prints two lines out.

I have used pyinstaller a few times in the past to create executables and never had this issue.

Not sure if this is simply a new false positive on Norton's side? Or if we should be worried about something going on with pyinstaller's source code???

I contacted Norton at the time about my code and they white listed it. It makes sense that they would flag mine, as filling up a disk drive "could" be seen as malicious activity.
(Jan-03-2018, 05:43 PM)kris44dad Wrote: [ -> ]I was just wondering if others using pyinstaller, have run into this.
yep, it's often reported as issue on GitHub:
https://github.com/pyinstaller/pyinstall...ssue+virus