from * metadata _id, _index, _version | where ends_with(process.parent.executable, "\\sqlservr.exe") and (ends_with(process.executable, "\\bash.exe") or ends_with(process.executable, "\\bitsadmin.exe") or ends_with(process.executable, "\\cmd.exe") or ends_with(process.executable, "\\netstat.exe") or ends_with(process.executable, "\\nltest.exe") or ends_with(process.executable, "\\ping.exe") or ends_with(process.executable, "\\powershell.exe") or ends_with(process.executable, "\\pwsh.exe") or ends_with(process.executable, "\\regsvr32.exe") or ends_with(process.executable, "\\rundll32.exe") or ends_with(process.executable, "\\sh.exe") or ends_with(process.executable, "\\systeminfo.exe") or ends_with(process.executable, "\\tasklist.exe") or ends_with(process.executable, "\\wsl.exe")) and not (starts_with(process.parent.executable, "C:\\Program Files\\Microsoft SQL Server\\") and ends_with(process.parent.executable, "DATEV_DBENGINE\\MSSQL\\Binn\\sqlservr.exe") and process.executable=="C:\\Windows\\System32\\cmd.exe" and starts_with(process.command_line, "\"C:\\Windows\\system32\\cmd.exe\" "))