I am looking for guidance on how to run a user script downloaded from a server in a secure fashion. The script itself will be signed to ensure that it has not been modified.
Can we run the script (bash, perl, zsh, etc) from memory in Swift or do we need to write it to a file and then use NSUserUnixTask to run the script?
If we write it to the file, how can we ensure that the script has not been modified between writing to disk and running it?
Can we run the script (bash, perl, zsh, etc) from memory in Swift or do we need to write it to a file and then use NSUserUnixTask to run the script?
If we write it to the file, how can we ensure that the script has not been modified between writing to disk and running it?