encoded command

A PowerShell command passed as Base64 text, which hides what it does from a quick read of the command line.

Encoding is a common way to slip malicious scripts past people and simple rules.

In more detail

powershell.exe -EncodedCommand accepts a Base64 string of UTF-16LE text; any unique prefix of the parameter, such as -enc or -ec, also works. Legitimate tools use it too, so rules match on the parameter in all its forms and then decode the payload for triage.

Related terms

Taught in

References