Cross-source coverage

T1564.002 / ATT&CK

Hide Artifacts: Hidden Users

10 rules across 4 sources.

From MITRE ATT&CK 19.2

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.

Tactics
Stealth
Platforms
Linux · macOS · Windows
Telemetry
WinEventLog:SecurityWinEventLog:Sysmonauditd:EXECVEauditd:FILEmacos:unifiedlog

How MITRE says to detect it DET0353

Detection Strategy for Hidden User Accounts

Windows Analytic 1001

Registry modifications to HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList setting user visibility to 0, or creation of user accounts not shown on login screen. Defender view: correlation of account creation with registry edits that mark users hidden.

  • WinEventLog:Security EventCode=4720
  • WinEventLog:Sysmon EventCode=13, 14

Linux Analytic 1002

Use of gsettings or direct Display Manager modifications to hide users from greeter login screen. Defender view: anomalous command execution modifying org.gnome.login-screen or other greeter configurations.

  • auditd:EXECVE Execution of gsettings set org.gnome.login-screen disable-user-list true
  • auditd:FILE Modification of Display Manager configuration files (/etc/gdm3/*, /etc/lightdm/*)

macOS Analytic 1003

User creation or modification via dscl with IsHidden=1, UID<500, or plist edits to com.apple.loginwindow Hide500Users flag. Defender view: correlation of hidden account attributes with login screen exclusion.

  • macos:unifiedlog Execution of dscl . create with IsHidden=1
  • macos:unifiedlog Modification of /Library/Preferences/com.apple.loginwindow plist
  • macos:unifiedlog Creation of user account with UID <500

SigmaHQ/sigma

4 rules
Detection Severity Format
Hiding User Account Via SpecialAccounts Registry Key High Sigma
Hidden User Creation Medium Sigma
Hiding User Account Via SpecialAccounts Registry Key - CommandLine Medium Sigma
Potential Suspicious Activity Using SeCEdit Medium Sigma

elastic/detection-rules

4 rules
Detection Severity Format
Creation of a Hidden Local User Account High Elastic TOML
Potential Hidden Local User Account Creation Medium Elastic TOML
Unusual Interactive Shell Launched from System User Medium Elastic TOML
Unusual Login via System User Medium Elastic TOML

elastic/protections-artifacts

1 rule
Detection Severity Format
Potential Nologin SSH Backdoor Undefined Elastic TOML

socfortress/Wazuh-Rules

1 rule
Detection Severity Format
Suspicious registry modification detected: Hiding user accounts via Userlist key (T1564.002 - Hidden Users) High Wazuh XML

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.