defender_decode_command
Decode PowerShell -EncodedCommand payloads from command lines or bare base64, converting UTF-16LE, and decode nested encoded commands up to five rounds, reporting layers removed and encoding state.
Instructions
Decode a PowerShell -EncodedCommand payload (base64 of UTF-16LE) exactly. Accepts the full
command line, any spelling of the flag (-e, -enc, -ec, ...), or the bare base64. Use it
instead of decoding by hand. A decoding that is itself an encoded command is decoded again,
up to five rounds: rounds is how many layers were removed and capped says the command was
still encoded when they ran out. The evidence inventory already carries decoded_command,
decode_rounds and decode_capped on process rows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command_line | Yes | A command line containing -EncodedCommand, or the bare payload. |