T1087.001
Account Discovery Local Account
Description from ATT&CK
Adversaries may attempt to get a listing of local system accounts. This information can help adversaries determine which local accounts exist on a system to aid in follow-on behavior.
Commands such as net user and net localgroup of the Net utility and id and groups on macOS and Linux can list local users and groups.(Citation: Mandiant APT1)(Citation: id man page)(Citation: groups man page) On Linux, local users can also be enumerated through the use of the /etc/passwd file. On macOS, the dscl . list /Users command can be used to enumerate local accounts. On ESXi servers, the esxcli system account list command can list local user accounts.(Citation: Crowdstrike Hypervisor Jackpotting Pt 2 2021)
Tests
Test #1 - Enumerate Local Accounts
Adversaries may attempt to get a listing of local system accounts.
⚠️ TCC Requiredtell application "System Events" to get name of every userDownload Files
Download .scpt Download .swift Download Binary Download Application Bundle