| rex field=CommandLine "(?(?i)net\\s+view)" | eval CommandLineCondition=if(isnotnull(CommandLineMatch), "true", "false") | rex field=CommandLine "(?(?i)sc\\s+query)" | eval CommandLineCondition2=if(isnotnull(CommandLineMatch2), "true", "false") | search (((Image IN ("*\\powershell_ise.exe", "*\\powershell.exe", "*\\pwsh.exe", "*\\cmd.exe")) (CommandLine IN ("*curl *", "*Invoke-RestMethod*", "*Invoke-WebRequest*", "*irm *", "*iwr *", "*wget *")) CommandLine="* -ur*" CommandLine="* -me*" CommandLine="* -b*" CommandLine="* POST *") OR (Image="*\\curl.exe" CommandLine="*--ur*" (CommandLine IN ("* -d *", "* --data *"))) OR (Image="*\\wget.exe" (CommandLine IN ("*--post-data*", "*--post-file*")))) (CommandLineCondition="true" OR CommandLineCondition2="true" OR CommandLine IN ("*Get-Content*", "*GetBytes*", "*hostname*", "*ifconfig*", "*ipconfig*", "*netstat*", "*nltest*", "*qprocess*", "*systeminfo*", "*tasklist*", "*ToBase64String*", "*whoami*") OR (CommandLine="*type *" CommandLine="* > *" CommandLine="* C:\\*"))