Skip to content

Latest commit

 

History

History
44 lines (23 loc) · 1.38 KB

T1564.002.md

File metadata and controls

44 lines (23 loc) · 1.38 KB

T1564.002 - Hidden Users

Adversaries may use hidden users to mask the presence of user accounts they create. Every user account in macOS has a userID associated with it. When creating a user, you can specify the userID for that account.

There is a property value in /Library/Preferences/com.apple.loginwindow called Hide500Users that prevents users with userIDs 500 and lower from appearing at the login screen. When using the Create Account technique with a userID under 500 (ex: sudo dscl . -create /Users/username UniqueID 401) and enabling this property (setting it to Yes), an adversary can conceal user accounts. (Citation: Cybereason OSX Pirrit).

Atomic Tests


Atomic Test #1 - Hidden Users

Add a hidden user on MacOS

Supported Platforms: macOS

Inputs:

Name Description Type Default Value
user_name username to add string APT

Attack Commands: Run with sh! Elevation Required (e.g. root or admin)

sudo dscl . -create /Users/#{user_name} UniqueID 333

Cleanup Commands:

sudo dscl . -delete /Users/#{user_name}