Change PowerShell Policies to an Insecure Level

Last updated on:

About the rule

Rule Type

Standard

Rule Description

Detects changing the PowerShell script execution policy to a potentially insecure level using the "-ExecutionPolicy" flag.

Severity

Trouble

Rule Requirement

Criteria

Action1: actionname = "Process started" AND (ORIGINALFILENAME = "PowerShell.EXE,pwsh.dll" OR PROCESSNAME endswith "\powershell.exe,\pwsh.exe") AND COMMANDLINE contains "-executionpolicy , -ep , -exec " AND COMMANDLINE contains "Bypass,Unrestricted" select Action1.HOSTNAME,Action1.MESSAGE,Action1.COMMANDLINE,Action1.FILE_NAME,Action1.PROCESSNAME,Action1.USERNAME,Action1.PARENTPROCESSNAME

Detection

Execution Mode

realtime

Log Sources

Windows

Author

frack113