quser.exe

  • File Path: C:\WINDOWS\system32\quser.exe
  • Description: Query User Utility

Hashes

Type Hash
MD5 D2A8A4D28F6329A3F1A611695201BCDC
SHA1 564F9709C580AC9AD6E14083BBC8CB7FFF2B805F
SHA256 9BD7DFF0DDC49161228AB3BABAD37FC3793173C52B873680D77182E21585AB94
SHA384 4960FB816D0BAD6AF0E6DD6A8DF242E106610A8F5CF140FEBADBB2611D2C62A8CF7A170730727CF2DC6F0972A1842600
SHA512 9632BC20031AAA1BE7BA029590317D43ABECF348E4539A511072E8DEFD82993DBF6BF4CFC7DA5FBFBF438D81E948B7C01CD0742B069F87CA7CA9197980D0E54C
SSDEEP 768:4KajdU0zRanFLjHZTvyYN3EtlZ4NTbftmo28iuAD9:4Kaq0zRanFxTx0M9bI3D9
IMP B72F14292FAC033099AD1A08D6867486
PESHA1 55E838359F1A50F55BC0590D1CE7D962C35AE0A1
PE256 FB44F869E0FF18A00B0C9D94C04501D28AFF600D475D8860021CA16823F2B172

Runtime Data

Usage (stdout):

Display information about users logged on to the system.

QUERY USER [username | sessionname | sessionid] [/SERVER:servername]

  username            Identifies the username.
  sessionname         Identifies the session named sessionname.
  sessionid           Identifies the session with ID sessionid.
  /SERVER:servername  The server to be queried (default is current).


Usage (stderr):

Invalid parameter(s)
Display information about users logged on to the system.

QUERY USER [username | sessionname | sessionid] [/SERVER:servername]

  username            Identifies the username.
  sessionname         Identifies the session named sessionname.
  sessionid           Identifies the session with ID sessionid.
  /SERVER:servername  The server to be queried (default is current).


Loaded Modules:

Path
C:\WINDOWS\System32\KERNEL32.DLL
C:\WINDOWS\System32\KERNELBASE.dll
C:\WINDOWS\SYSTEM32\ntdll.dll
C:\WINDOWS\system32\quser.exe

Signature

  • Status: Signature verified.
  • Serial: 33000002ED2C45E4C145CF48440000000002ED
  • Thumbprint: 312860D2047EB81F8F58C29FF19ECDB4C634CF6A
  • Issuer: CN=Microsoft Windows Production PCA 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
  • Subject: CN=Microsoft Windows, O=Microsoft Corporation, L=Redmond, S=Washington, C=US

File Metadata

  • Original Filename: quser.exe.mui
  • Product Name: Microsoft Windows Operating System
  • Company Name: Microsoft Corporation
  • File Version: 10.0.22000.1 (WinBuild.160101.0800)
  • Product Version: 10.0.22000.1
  • Language: English (United States)
  • Legal Copyright: Microsoft Corporation. All rights reserved.
  • Machine Type: 64-bit

File Scan

  • VirusTotal Detections: 0/73
  • VirusTotal Link: https://www.virustotal.com/gui/file/9bd7dff0ddc49161228ab3babad37fc3793173c52b873680d77182e21585ab94/detection

Possible Misuse

The following table contains possible examples of quser.exe being misused. While quser.exe is not inherently malicious, its legitimate functionality can be abused for malicious purposes.

Source Source File Example License
sigma proc_creation_win_local_system_owner_account_discovery.yml - '\quser.exe' DRL 1.0
sigma proc_creation_win_multiple_suspicious_cli.yml - quser.exe DRL 1.0
sigma proc_creation_win_webshell_detection.yml - '\quser.exe' DRL 1.0
atomic-red-team T1033.md quser /SERVER:”#{computer_name}” MIT License. © 2018 Red Canary
atomic-red-team T1033.md quser MIT License. © 2018 Red Canary

Additional Info*

*The information below is copied from MicrosoftDocs, which is maintained by Microsoft. Available under CC BY 4.0 license.


quser

Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

Displays information about user sessions on a Remote Desktop Session Host server. You can use this command to find out if a specific user is logged on to a specific Remote Desktop Session Host server. This command returns the following information:

  • Name of the user

  • Name of the session on the Remote Desktop Session Host server

  • Session ID

  • State of the session (active or disconnected)

  • Idle time (the number of minutes since the last keystroke or mouse movement at the session)

  • Date and time the user logged on

[!NOTE] This command is the same as the query user command. To find out what’s new in the latest version, see What’s New in Remote Desktop Services in Windows Server.

Syntax

quser [<username> | <sessionname> | <sessionID>] [/server:<servername>]

Parameters

Parameter Description
<username> Specifies the logon name of the user that you want to query.
<sessionname> Specifies the name of the session that you want to query.
<sessionID> Specifies the ID of the session that you want to query.
/server:<servername> Specifies the Remote Desktop Session Host server that you want to query. Otherwise, the current Remote Desktop Session Host server is used. This parameter is only required if you’re using this command from a remote server.
/? Displays help at the command prompt.
Remarks
  • To use this command, you must have Full Control permission or special access permission.

  • If you don’t specify a user using the <username>, <sessionname>, or sessionID parameters, a list of all users who are logged on to the server is returned. Alternatively, you can also use the query session command to display a list of all sessions on a server.

  • When quser returns information, a greater than (>) symbol is displayed before the current session.

Examples

To display information about all users logged on the system, type:

quser

To display information about the user USER1 on server Server1, type:

quser USER1 /server:Server1

Additional References


MIT License. Copyright (c) 2020-2021 Strontic.