from * metadata _id, _index, _version | where ends_with(process.parent.executable, "\\wbem\\WmiPrvSE.exe") and (ends_with(process.executable, "\\certutil.exe") or ends_with(process.executable, "\\cscript.exe") or ends_with(process.executable, "\\mshta.exe") or ends_with(process.executable, "\\msiexec.exe") or ends_with(process.executable, "\\regsvr32.exe") or ends_with(process.executable, "\\rundll32.exe") or ends_with(process.executable, "\\verclsid.exe") or ends_with(process.executable, "\\wscript.exe") or ends_with(process.executable, "\\cmd.exe") and (process.command_line like "*cscript*" or process.command_line like "*mshta*" or process.command_line like "*powershell*" or process.command_line like "*pwsh*" or process.command_line like "*regsvr32*" or process.command_line like "*rundll32*" or process.command_line like "*wscript*")) and not (ends_with(process.executable, "\\WerFault.exe") or ends_with(process.executable, "\\WmiPrvSE.exe") or ends_with(process.executable, "\\msiexec.exe") and process.command_line like "*/i *")