Powershell.exe
Powershell.exe is a a task-based command-line shell built on .NET.
Full path
C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exeCommands
Execute PowerShell cmdlets, .NET code, and just about anything else your heart desires
powershell.exe -ep bypass -file c:\path\to\a\script.ps1Set the execution policy to bypass and execute a PowerShell script without warning
os: Windows 7 and up
Execute PowerShell cmdlets, .NET code, and just about anything else your heart desires
powershell.exe -ep bypass -command "Invoke-AllTheThings..."Set the execution policy to bypass and execute a PowerShell command
os: Windows 7 and up
Execute PowerShell cmdlets, .NET code, and just about anything else your heart desires
powershell.exe -ep bypass -ec IgBXAGUAIAA8ADMAIABMAE8ATABCAEEAUwAiAA==Set the execution policy to bypass and execute a very malicious PowerShell encoded command
os: Windows 7 and up
Detection
Resources
acknowledgement: Everyone @alltheoffensivecyberers