Skip to main content
Mallory
Malware

dsquery

Tracked since Mar 18, 2026 · Updated 5 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
Vulns0Associated
Actors0Associated
ATT&CK8Techniques
IOCs0Tracked

dsquery is a Windows/Active Directory command-line utility used for domain discovery. The provided content specifically describes its use to gather information on user accounts within a domain and to gather information on permission groups within a domain. It is referenced in ATT&CK-style reporting as being used during account and group enumeration in AD environments, including in Operation CuckooBees where threat actors used dsquery together with dsget to obtain domain environment information and query users in administrative groups. High-confidence behavior from the content is limited to AD/domain reconnaissance and enumeration of domain users and groups; no additional malware-specific infection vector, persistence, or payload behavior is described.

Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
MITRE ATT&CK

Techniques & procedures

8 distinct techniques documented for this family, organized by ATT&CK tactic.

Discovery

8 techniques
T1018Remote System DiscoveryEvidence2

BoomBox has the ability to execute an LDAP query to enumerate the distinguished name, SAM account name, and display name for all domain users. IceApple Active Directory Querier module can perform authenticated requests against an Active Directory server. Sandworm Team has used a tool to query Active Directory using LDAP.

T1033System Owner/User DiscoveryEvidence1

The content notes that querying different domain controllers can reveal last login information and discusses identifying users tied to systems and groups.

T1069Permission Groups DiscoveryEvidence1

The article shows queries for groups with *admin* in the name, listing members of Domain Admins, and using the memberof attribute to find users in one or multiple groups.

T1069.002Domain GroupsEvidence1

Multiple tools/actors are described using Active Directory/domain group enumeration, e.g., “AdFind can enumerate domain groups”, “net group "domain admins" /domain to enumerate domain groups”, “BloodHound can collect information about domain groups and members”, and “AD Explorer tool to enumerate groups on a victim's network.”

T1082System Information DiscoveryEvidence1

For computer enumeration, the author recommends adding the operatingsystem attribute to output or filters because it provides useful information when choosing systems to target.

T1087Account DiscoveryEvidence2

Examples include enumerating all users, searching for likely privileged accounts by naming convention, checking group membership, and identifying accounts with old pwdLastSet values.

T1087.002Domain AccountEvidence2

AdFind can enumerate domain users. APT41 used built-in net commands to enumerate domain administrator users. BloodHound can collect information about domain users, including identification of domain admin accounts.

T1482Domain Trust DiscoveryEvidence1

The -d flag and host/domain options are described as useful in large domain environments and, if the environment allows, to query into other domains.

Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matchingMatch every observed IP, domain, and hash against your live telemetry.
Associated threat actorsGroups linked to this family, with evidence pinned to each claim.
Associated vulnerabilitiesCVEs linked to this family, with the reporting behind each link.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
MITRE ATT&CK mapping8Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.