let Parameters = dynamic(["http", "https", "Encoded", "EncodedCommand", "-e", "-eC", "-enc", "-w", "://"]);
let SuspiciousChildren = dynamic(["cmd.exe", "powershell.exe", "bash.exe", "cscript.exe", "mshta.exe", "msiexec.exe", "rundll32.exe"]);
DeviceProcessEvents
| where Timestamp > ago(1d)
| where InitiatingProcessFileName =~ "explorer.exe"
| where FileName in~ (SuspiciousChildren)
| where ProcessCommandLine has_any (Parameters)
| project Timestamp, DeviceName, AccountName, FileName, ProcessCommandLine, InitiatingProcessCommandLine
| sort by Timestamp desc