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. 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 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 commands such as `show users` and `show ssh` can be used to display users currently logged into the device.12
- show_ssh_users_cmd_cisco
- US-CERT TA18-106A Network Infrastructure Devices 2018
Groups using this technique
| Group | Name | Country |
|---|---|---|
| grp_g0051 | FIN10 | — |
| grp_g1014 | LuminousMoth | China |
| grp_g1054 | MirrorFace | — |
| grp_g0038 | Stealth Falcon | — |
| grp_g0128 | ZIRCONIUM | — |
| grp_g1035 | Winter Vivern | — |
| grp_g0143 | Aquatic Panda | China |
| grp_g0032 | Lazarus Group | DPRK |
| grp_g1001 | HEXANE | — |
| grp_g0112 | Windshift | — |
| grp_g0093 | GALLIUM | — |
| grp_g0004 | Ke3chang | — |
| grp_g1051 | Medusa Group | — |
| grp_g0114 | Chimera | China |
| grp_g0035 | Dragonfly | Russia |
| grp_g0102 | Wizard Spider | Russia |
| grp_g0049 | OilRig | Iran |
| grp_g1036 | Moonstone Sleet | DPRK |
| grp_g0069 | MuddyWater | — |
| grp_g0067 | APT37 | DPRK |
| grp_g0061 | FIN8 | — |
| grp_g0073 | APT19 | China |
| grp_g1017 | Volt Typhoon | — |
| grp_g0082 | APT38 | DPRK |
| grp_g0081 | Tropic Trooper | — |
| grp_g1046 | Storm-1811 | — |
| grp_g0046 | FIN7 | — |
| grp_g0087 | APT39 | — |
| grp_g0047 | Gamaredon Group | Russia |
| grp_g0022 | APT3 | China |
| grp_g0125 | HAFNIUM | — |
| grp_g0094 | Kimsuky | DPRK |
| grp_g0059 | Magic Hound | Iran |
| grp_g0096 | APT41 | China |
| grp_g1006 | Earth Lusca | China |
| grp_g0040 | Patchwork | — |
| grp_g0121 | Sidewinder | India |
| grp_g0027 | Threat Group-3390 | China |
| grp_g0034 | Sandworm Team | Russia |
| grp_g0050 | APT32 | Vietnam |
Claims
No public claim points at this technique yet.
Auto-ingested and not human-reviewed; confidence and validity read by citation.