Discovery · Windows
qwinsta.exe
Query Session
Lists Remote Desktop and console sessions on a host. Used to find logged-on users and sessions that could be taken over.
Legitimate use
Admins use it to see who is connected to a terminal server.
Switches
Queries a remote server instead of the local one.
MediumShows the line settings of each session.
InfoShows session counters.
InfoWhere it is recorded
- Security4688Process creation with the full command line, when command-line auditing is enabled.
- Sysmon1Process creation with command line, hashes and parent process.
Community detections
2 SigmaHQ rules for qwinsta.exe. The explainer checks every pasted command line against all of them.
- HighSuspicious Process By Web Server Process
Detects potentially suspicious processes being spawned by a web server process which could be the result of a successfully placed web shell or exploitation
T1505.003T1190by Thomas Patzke, Florian Roth (Nextron Systems), Zach Stanford @svch0st, Tim Shelton, Nasreddine Bencherchali (Nextron Systems)
- LowLocal Accounts Discovery
Local accounts, System Owner/User discovery using operating systems utilities
T1033T1087.001by Timur Zinniatullin, Daniil Yugoslavskiy, oscd.community
Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.