1
0
mirror of https://github.com/LOLBAS-Project/LOLBAS synced 2025-09-14 23:01:21 +02:00
LOLBAS/yml/OSBinaries/Query.yml
idabian 6d07c2dee1
Add RDS Binaries (#453)
Co-authored-by: Wietze <wietze@users.noreply.github.com>
2025-09-10 19:08:49 +01:00

25 lines
1.0 KiB
YAML

---
Name: Query.exe
Description: Remote Desktop Services MultiUser Query Utility
Author: Idan Lerman
Created: 2025-07-31
Commands:
- Command: query.exe user
Description: Once executed, `query.exe` will execute `quser.exe` in the same folder. Thus, if `query.exe` is copied to a folder and an arbitrary executable is renamed to `quser.exe`, `query.exe` will spawn it. Instead of `user`, it is also possible to use `session`, `termsession` or `process` as command-line option.
Usecase: Execute an arbitrary executable via trusted system executable.
Category: Execute
Privileges: User
MitreID: T1218
OperatingSystem: Windows 10, Windows 11
Tags:
- Execute: EXE
- Requires: Rename
Full_Path:
- Path: c:\windows\system32\query.exe
- Path: c:\windows\syswow64\query.exe
Detection:
- IOC: query.exe being executed and executes a child process outside of its normal path of c:\windows\system32\ or c:\windows\syswow64\
Acknowledgement:
- Person: Idan Lerman
Handle: '@IdanLerman'