Skip to content
WETNav

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.

Worst caseMedium

Switches

/server

Queries a remote server instead of the local one.

Medium
/mode

Shows the line settings of each session.

Info
/counter

Shows session counters.

Info

Where 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.

  • High
    Suspicious 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)

  • Low
    Local 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.