powershell-version-2.0-execution
Description
Find the execution of PowerShell Version 2.0, eather to discover legacy scripts using version 2 or to find attackers trying to hide from script logging and AMSI.
Query · kql
DeviceProcessEvents
| where FileName in~ ("powershell.exe", "powershell_ise.exe")
| where ProcessCommandLine has "-v 2"
or ProcessCommandLine has "-v 2.0"
or ProcessCommandLine has "-version 2"
or ProcessCommandLine has "-version 2.0"