A couple weeks ago, some malicious PowerShell code was discovered in the wild, dubbed the "Power Worm" in the Trend Micro article that originally publicised the malware. Matt Graeber has done a great analysis of the code on his blog. In the comments for that blog post, we started discussing some options for locking down PowerShell, preventing it from being used in this type of attack. (Unfortunately, Execution Policy is currently no barrier at all; PowerShell.exe can simply be launched with the -Command or -EncodedCommand parameters, bypassing ExecutionPolicy entirely.) Matt's idea is to have PowerShell run in Constrained Language mode by default, similar to how it works on the Windows RT platform.
This post is to engage some community discussion on the topic; please do so in this thread: https://powershell.org/forums/topic/discussion-community-brainstorming-powershell-security-versus-malicious-code/
What are your thoughts on this topic? Do you feel that PowerShell.exe needs some additional security features to try to prevent it from being used in this sort of malware? What impact would these ideas have on your normal, legitimate uses of PowerShell (if any)? How would you suggest minimizing that impact while still making it more difficult for PowerShell malware to execute?