Bottom Page

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
Quote
#2
No one is able to answer?
Quote
#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).
Feel like you're not getting the answers you want? Checkout the help/rules for things like what to include/not include in a post, how to use code tags, how to ask smart questions, and more.

Pro-tip - there's an inverse correlation between the number of lines of code posted and my enthusiasm for helping with a question :)
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Use of Python in field of cyber Security and Ethical Hacking sumandas89 6 1,322 May-08-2018, 01:42 PM
Last Post: sumandas89
  migrating from R to Python: specific questions pth1123 1 898 Apr-04-2018, 09:36 PM
Last Post: Larz60+
  Python Challenge online - 30 Questions JulienC 1 851 Mar-02-2018, 02:51 AM
Last Post: Skaperen
  the profusion of Python 2 questions offsite league55 3 1,052 Jan-25-2018, 10:08 PM
Last Post: Gribouillis

Forum Jump:


Users browsing this thread: 1 Guest(s)