Command Line
dsquery user -limit 0
Description
Utilize DSQuery to retrieve information about users in Active Directory.
Risk
Low
Risk Reason
On it's own this command doesn't have immediate negative consequences but it's use should be audited if possible to detect potential threats.
Fidelity
Medium
Fidelity Reason
Depending on the organization, it's possible that this is an infrequently used command and it's use may be regularly audited.
Operating Systems
Killchain Phases
References
MITRE ATT&CK TECHNIQUES
URL: https://attack.mitre.org/techniques/T1087/002
Description: Adversaries may attempt to get a listing of domain accounts. This information can help adversaries determine which domain accounts exist to aid in follow-on behavior.
Commands such as net user /domain and net group /domain of the [Net](https://attack.mitre.org/software/S0039) utility, dscacheutil -q groupon macOS, and ldapsearch on Linux can list domain users and groups.
Tactics: