Re:Dimnie: Malware targeting open-source developers
by SCHiM on Saturday April 01, 2017 @11:07AM
(#14012471)
This is not a security feature, and should not be relied upon.
For example, unelevated users can run the following command:
'PS> Set-ExecutionPolicy Bypass -Scope Process' to allow script execution in the current powershell process.
Also, you can pass complete powershell scripts over the command line which bypasses the script restriction (because you can just input your entire script over the command line).
This is done with the -E (-EncodedCommand) flag. Which takes a base64 encoded string with statements separated by semi-colons.
Also, you can pass complete powershell scripts over the command line which bypasses the script restriction (because you can just input your entire script over the command line).
This is done with the -E (-EncodedCommand) flag. Which takes a base64 encoded string with statements separated by semi-colons.