MITRE ATT&CK Technique
T1033System Owner/User Discovery
- First Reported
- Aug 12, 2021
- Latest Reported
- Nov 17, 2026
Official Description
Adversaries may attempt to identify the primary user, currently logged in user, set of users that commonly uses a system, or whether a user is actively using the system. They may do this, for example, by retrieving account usernames or by using [OS Credential Dumping](https://attack.mitre.org/techniques/T1003). The information may be collected in a number of different ways using other Discovery techniques, because user and username details are prevalent throughout a system and include running process ownership, file/directory ownership, session information, and system logs. Adversaries may use the information from [System Owner/User Discovery](https://attack.mitre.org/techniques/T1033) during automated discovery to shape follow-on behaviors, including whether or not the adversary fully infects the target and/or attempts specific actions.
Various utilities and commands may acquire this information, including <code>whoami</code>. In macOS and Linux, the currently logged in user can be identified with <code>w</code> and <code>who</code>. On macOS the <code>dscl . list /Users | grep -v '_'</code> command can also be used to enumerate user accounts. Environment variables, such as <code>%USERNAME%</code> and <code>$USER</code>, may also be used to access this information.
On network devices, [Network Device CLI](https://attack.mitre.org/techniques/T1059/008) commands such as `show users` and `show ssh` can be used to display users currently logged into the device.(Citation: show_ssh_users_cmd_cisco)(Citation: US-CERT TA18-106A Network Infrastructure Devices 2018)
Various utilities and commands may acquire this information, including <code>whoami</code>. In macOS and Linux, the currently logged in user can be identified with <code>w</code> and <code>who</code>. On macOS the <code>dscl . list /Users | grep -v '_'</code> command can also be used to enumerate user accounts. Environment variables, such as <code>%USERNAME%</code> and <code>$USER</code>, may also be used to access this information.
On network devices, [Network Device CLI](https://attack.mitre.org/techniques/T1059/008) commands such as `show users` and `show ssh` can be used to display users currently logged into the device.(Citation: show_ssh_users_cmd_cisco)(Citation: US-CERT TA18-106A Network Infrastructure Devices 2018)
- Tactics
- Discovery
- Platforms
- Linux, macOS, Network Devices, Windows
- MITRE Version
- 1.6
- Last Modified
- May 12, 2026
Reported Context (108)
- The agent reports user and domain names and can report existing user accounts and who logged in last. Analysis Finds EV-Signed “Adobe” Installer Deploys Nyx RMM Agent
- GraphDoor collects the username and the process-listing plug-in records domain and user account names. Operation ShadowCloud’s GraphDoor Backdoor Uses SharePoint and Ably for C2
- Commands run through the IIS worker process used whoami to identify the execution context. Researchers Link AntiFox Platform to Intrusions Accessing AWS Production Secrets
- The backdoor reports the computer name and user name to its operator. Fake Microsoft-Branded DUI70.dll Uses BITS to Relaunch a Backdoor
- The attacker ran the id command during reconnaissance through SSH. SSHole OpenSSH Flaw Exploited Within Hours; Alpine Honeypot Saw Root Access
CVE (51)
Malware (179)
People (47)
Threat Actors (100)
MITRE ATT&CK (271)
Vendors (107)
Products (416)
Tools (249)
Industries (92)
Countries (79)
Note: Related entities, including threat actors, malware, CVEs, MITRE ATT&CK techniques, vendors, products, tools, countries, and industries, are shown when they appear in the same reporting. Their presence does not necessarily mean they were targeted, compromised, vulnerable, responsible for the activity, or directly involved in the incident.
