ExecuteBase64DecodedPayload
Description
Process executed from binary hidden in Base64 encoded file. Encoding malicious software is a. Technique to obfuscate files from detection. The first and second ProcessCommandLine component is looking for Python decoding base64. The third ProcesssCommandLine component is looking for the Bash/sh commandline base64 decoding tool. The fourth one is looking for Ruby decoding base64.
Query · kql
DeviceProcessEvents
| where Timestamp > ago(14d)
| where ProcessCommandLine contains ".decode('base64')"
or ProcessCommandLine contains ".b64decode("
or ProcessCommandLine contains "base64 --decode"
or ProcessCommandLine contains ".decode64("
| project Timestamp , DeviceName , FileName , FolderPath , ProcessCommandLine , InitiatingProcessCommandLine
| top 100 by Timestamp