Query.exe
Remote Desktop Services MultiUser Query Utility
Full path
c:\windows\system32\query.exe
c:\windows\syswow64\query.exeCommands
Execute an arbitrary executable via trusted system executable.
query.exe userOnce executed,
query.exewill executequser.exein the same folder. Thus, ifquery.exeis copied to a folder and an arbitrary executable is renamed toquser.exe,query.exewill spawn it. Instead ofuser, it is also possible to usesession,termsessionorprocessas command-line option.os: Windows 10, Windows 11
Detection
- IOCquery.exe being executed and executes a child process outside of its normal path of c:\windows\system32\ or c:\windows\syswow64\
acknowledgement: Idan Lerman @IdanLerman