Hidden Users

T1564.002

Sub-technique of T1564 Hide Artifacts.View on attack.mitre.org

About this technique

Adversaries may use hidden users to hide the presence of user accounts they create or modify. Administrators may want to hide users when there are many user accounts on a given system or if they want to hide their administrative or other management accounts from other users.

In macOS, adversaries can create or modify a user to be hidden through manipulating plist files, folder attributes, and user attributes. To prevent a user from being shown on the login screen and in System Preferences, adversaries can set the userID to be under 500 and set the key value Hide500Users to TRUE in the /Library/Preferences/com.apple.loginwindow plist file. Every user has a userID associated with it. When the Hide500Users key value is set to TRUE, users with a userID under 500 do not appear on the login screen and in System Preferences. Using the command line, adversaries can use the dscl utility to create hidden user accounts by setting the IsHidden attribute to 1. Adversaries can also hide a user’s home folder by changing the chflags to hidden.

Adversaries may similarly hide user accounts in Windows. Adversaries can set the HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList Registry key value to 0 for a specific user to prevent that user from being listed on the logon screen.

On Linux systems, adversaries may hide user accounts from the login screen, also referred to as the greeter. The method an adversary may use depends on which Display Manager the distribution is currently using. For example, on an Ubuntu system using the GNOME Display Manger (GDM), accounts may be hidden from the greeter using the gsettings command (ex: sudo -u gdm gsettings set org.gnome.login-screen disable-user-list true). Display Managers are not anchored to specific distributions and may be changed by a user or adversary.

Detection rules4

Rules on DetectionCode tagged with T1564.002.

Sigma4

RuleLevelLog source
Hiding User Account Via SpecialAccounts Registry Keyhighwindows / registry_set
Hidden User Creationmediummacos / process_creation
Hiding User Account Via SpecialAccounts Registry Key - CommandLinemediumwindows / process_creation
Potential Suspicious Activity Using SeCEditmediumwindows / process_creation

Splunk0

No Splunk rules are mapped to this technique yet.

Groups2

Software1

Campaigns0

None recorded.

Procedure examples3

Groups2

Used byProcedure example
GroupDragonfly

Dragonfly has modified the Registry to hide created user accounts.

GroupKimsuky

Kimsuky has run reg add ‘HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList’ /v to hide a newly created user.

Software1

Used byProcedure example
MalwareSMOKEDHAM

SMOKEDHAM has modified the Registry to hide created user accounts from the Windows logon screen.

References5

  1. Apple Support Hide a User Account Open source
    Apple. (2020, November 30). Hide a user account in macOS. Retrieved December 10, 2021.
  2. Cybereason OSX Pirrit Open source
    Amit Serper. (2016). Cybereason Lab Analysis OSX.Pirrit. Retrieved December 10, 2021.
  3. FireEye SMOKEDHAM June 2021 Open source
    FireEye. (2021, June 16). Smoking Out a DARKSIDE Affiliate’s Supply Chain Software Compromise. Retrieved September 22, 2021.
  4. Hide GDM User Accounts Open source
    Ji Mingkui. (2021, June 17). How to Hide All The User Accounts in Ubuntu 20.04, 21.04 Login Screen. Retrieved March 15, 2022.
  5. US-CERT TA18-074A Open source
    US-CERT. (2018, March 16). Alert (TA18-074A): Russian Government Cyber Activity Targeting Energy and Other Critical Infrastructure Sectors. Retrieved June 6, 2018.

Data from MITRE ATT&CK® (Enterprise). ATT&CK® is a registered trademark of The MITRE Corporation.