Python Forum
Questions about Python executable and security
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Questions about Python executable and security
#1
Hi,

My latest project is a little bug script that does some harmless things like copy some random text files to desktop. This project is for educational purposes.
And will be written and installed to a windows 10 system.

Being an amateur 'developer' I have some questions of the deployment of this script.

I assume I will use pyinstaller to compile to .exe.

Let's say the user will install this program and execute it. I am unfamiliar with how app signing works and so forth. After the user clicks the .exe, I assume windows will ask for permission to run an unknown program? When the user clicks yes, and allows permission to execute, are there any other measures of protection in a typical windows environment that could prevent the execution of such script? Anti-virus would not detect such script, I assume.

What might be missing from my assumptions that would prevent a python script compiled via pyinstaller to execute for security reasons?

Thank you
Reply
#2
No one is able to answer?
Reply
#3
(Jan-09-2020, 07:47 PM)ironfelix717 Wrote: When the user clicks yes, and allows permission to execute, are there any other measures of protection in a typical windows environment that could prevent the execution of such script? Anti-virus would not detect such script, I assume.
I don't use Windows anymore, but I wouldn't assume that Python is invisible to an anti-virus.

(Jan-09-2020, 07:47 PM)ironfelix717 Wrote: What might be missing from my assumptions that would prevent a python script compiled via pyinstaller to execute for security reasons?
You might find more help on this topic on a Windows security forum.

If you have the flexibility, I suggest you dive in and run experiments, software is often magical in how easily and quickly you can test things, especially in an iterative fashion (you can keep compiling more aggressive Python code, seeing at what point an AV notices it).
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Use of Python in field of cyber Security and Ethical Hacking sumandas89 7 7,157 Mar-17-2023, 03:13 AM
Last Post: ColemanNielsen
  Continuous improvement for Python security ganncamp 1 56,739 Jun-09-2020, 02:49 PM
Last Post: DeaD_EyE
  migrating from R to Python: specific questions pth1123 1 2,846 Apr-04-2018, 09:36 PM
Last Post: Larz60+
  Python Challenge online - 30 Questions JulienC 1 2,811 Mar-02-2018, 02:51 AM
Last Post: Skaperen
  the profusion of Python 2 questions offsite league55 3 3,012 Jan-25-2018, 10:08 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020