Powershell.exe

type: HonorableMentions
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.exe

Commands

  1. ExecuteUser T1059.001

    Execute PowerShell cmdlets, .NET code, and just about anything else your heart desires

    powershell.exe -ep bypass -file c:\path\to\a\script.ps1

    Set the execution policy to bypass and execute a PowerShell script without warning

    os: Windows 7 and up

  2. ExecuteUser T1059.001

    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

  3. ExecuteUser T1059.001

    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