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
- PowerShell — Microsoft's command-line shell and scripting language, built into Windows and also available on macOS and Linux.
- Base64 — A way to write any bytes using only 64 safe text characters, so binary data can travel in places that expect text.
- Sigma — An open, vendor-neutral format for writing SIEM detection rules in YAML, which tools convert into each SIEM's own query language.
Taught in
- Detection as Code: Authoring & Testing Sigma Rules — Security Operations & Threat Hunting (SOC)
- Cyber Kill Chain vs MITRE ATT&CK Framework — Security Operations & Threat Hunting (SOC)