Knowing which accounts exist helps them plan what to do next. MITRE ATT&CK lists it as a Discovery technique.
How it works
Once inside a network, an attacker often does not know who the users are or which accounts matter. Listing accounts answers that. MITRE says this can help with later steps such as brute-forcing, spear-phishing and account takeover.
Attackers can use existing tools, built-in system commands, or misconfigurations that leak account names, roles or permissions. Cloud environments usually offer easy ways to get a list of users. On a device, default command line features can show accounts, and email addresses can also be found by searching files on an infected system.
MITRE splits the technique into four sub-techniques: local accounts, domain accounts, email accounts and cloud accounts.
A real example
MITRE ATT&CK lists these procedure examples:
- Havoc can identify privileged user accounts on infected systems.
- ShimRatReporter listed all privileged and non-privileged accounts available on the machine.
- TONESHELL included a function to retrieve a list of user accounts.
- Woody RAT can identify administrator accounts on an infected machine.
- XCSSET tries to discover accounts from data of apps such as Evernote, Telegram, Skype and WeChat.
Seen in incidents
- Incident Bankshot implant attacks on the Turkish financial sector In March 2018, McAfee Advanced Threat Research reported the Bankshot implant, linked to North Korean Hidden Cobra activity, at five Turkish financial and government-finance organizations. March 2018 · Financial services
- Incident ConecteSUS and Ministry of Health systems attack, Brazil, 2021 On 10 December 2021 the Brazilian Ministry of Health website, the ConecteSUS app and several national health systems went offline after an attack on the ministry's cloud environment. December 2021 · Government and public sector
How to detect
-
Account listing commands and queries
Watch for processes that query account directories or security interfaces and then produce a list of accounts soon after.
-
Directory and system lookups
Look for unusual access to system account stores, or directory service queries run by utilities that normally do not do that.
-
Cloud and identity API activity
Flag a principal that pulls account or role details in quick succession through cloud or identity provider interfaces.
-
Detection strategy MITRE lists
DET0587, Enumeration of User or Account Information Across Platforms.
How to defend
-
Manage user accounts
Control how accounts are created, changed, used and what permissions they hold, so there is less to find and less to abuse.
-
Harden operating system settings
Configure systems so administrator account names are not revealed during actions such as elevation prompts.
Frequently Asked Questions
What is Account Discovery?
Account Discovery is when an attacker builds a list of valid accounts, usernames or email addresses on a system or inside a compromised environment. Knowing which accounts exist helps them plan what to do next.
Why do attackers list accounts?
Once inside a network, an attacker often does not know who the users are or which accounts matter. MITRE says a list can help with later steps such as brute-forcing, spear-phishing and account takeover.
What are the types of Account Discovery?
MITRE splits the technique into four sub-techniques: local accounts, domain accounts, email accounts and cloud accounts. Each covers a different place where an attacker can list accounts, from a single device to cloud services.
How can I detect and reduce Account Discovery?
Watch for processes that query account directories and then produce a list of accounts, and for principals that pull account details quickly through cloud or identity interfaces. Manage how accounts are created and used, so there is less to find and abuse.
