1. Resources
  2. Identity Threats
  3. Active Directory

Active Directory Reconnaissance and Attack Path Mapping

Also known as: AD enumeration, Domain enumeration, BloodHound collection, Attack path mapping

Any domain user can read most of Active Directory over LDAP and map who controls what, turning group, ACL, session and trust data into a path to Domain Admin.

Platform
Active Directory
Tactic
Discovery
Impact
Low
Last updated
Attack difficulty
Low
Detection difficulty
High
Privileges required: Any authenticated identity
Any authenticated domain account for the directory inventory. A few checks (DNS SRV, rootDSE, null SMB sessions) need only network access to a domain controller.
What the attacker gains
A map of users, groups, computers, ACLs, sessions, GPOs and trusts, and the shortest chains of rights that lead to Tier 0.
Threat groups
APT41BlackByteBRONZE BUTLERChimeraDragonflyFIN13FIN6FIN7Fox KittenINC RansomKe3changLAPSUS$Lotus BlossommenuPassand 25 more in MITRE ATT&CKGroups that MITRE ATT&CK records using T1087.002, T1069.002, T1482, T1615, T1069.001.

How it works

Active Directory is built to be read. Clients need to find domain controllers, resolve group membership and locate services, so the default permissions let every authenticated account read almost every object over LDAP. Reconnaissance uses that openness in three layers:

Layer Question Sources
Exposure What answers without credentials? DNS SRV records, LDAP rootDSE, SMB and RPC null sessions, Kerberos error codes, TCP 9389 (AD Web Services)
Inventory What exists in the directory? Users, computers, groups, OUs, GPOs, trusts, certificate templates, service connection points
Relationships What grants access to what? Group nesting, ACLs, sessions, local group membership, delegation, GPO links, trusts

The third layer is where attack paths appear. A single access control entry, such as GenericAll for a help desk group on an administrator's account, can matter more than thousands of well-managed objects. Graph tools such as BloodHound store each relationship as an edge (member of, has session, admin to, GenericAll, WriteDacl, AllowedToDelegate, DCSync) and search for the shortest chain from a compromised account to Tier 0. That practice, used by defenders, is attack path management.

Collection comes in two families with different footprints:

  • Directory collection talks only to domain controllers, over LDAP (389, 636, 3268) or AD Web Services (9389). It returns users, groups, ACLs, trusts, GPOs and object properties.
  • Host collection connects to member computers over SMB and RPC to list sessions (NetSessionEnum, NetWkstaUserEnum), local group members (SAM remote protocol) and shares. It shows where privileged accounts are signed in, and it touches many hosts.

Prerequisites

  • Unauthenticated: network access to a domain controller. DNS and rootDSE answer anyone. Null SMB sessions answer only on domain controllers that still allow anonymous access.
  • Authenticated: any domain account, including a computer account. No special rights.
  • Session and local group collection: network access to the member hosts on TCP 445. Recent Windows versions restrict NetSessionEnum and remote SAM calls to administrators by default, so results depend on the hosts' settings.
  • Privileged session collection (the logged-on method): local administrator rights on the hosts queried.

Attack steps

For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.

1. Find the domain without credentials

Domain controllers advertise themselves in DNS, and rootDSE describes the domain to anyone who asks:

nslookup -type=SRV _ldap._tcp.dc._msdcs.corp.example.com
nltest /dclist:corp.example.com

Null sessions, where a domain controller still allows them, return users, groups and the password policy:

nxc smb 192.0.2.10 -u '' -p ''
nxc smb 192.0.2.10 -u '' -p '' --users
nxc smb 192.0.2.10 -u '' -p '' --pass-pol

Kerberos tells valid usernames from invalid ones before any password is tried, because the KDC answers differently for a name that does not exist:

kerbrute userenum -d corp.example.com --dc 192.0.2.10 usernames.txt

2. Inventory the directory with a domain account

The ActiveDirectory module that administrators use reads everything an attacker wants:

# Users with their risk-relevant attributes
Get-ADUser -Filter * -Properties servicePrincipalName, userAccountControl, adminCount, pwdLastSet, lastLogonTimestamp, description

# Computers with delegation settings
Get-ADComputer -Filter * -Properties operatingSystem, 'msDS-AllowedToDelegateTo', 'msDS-AllowedToActOnBehalfOfOtherIdentity'

# Privileged group membership, nested members included
Get-ADGroupMember -Identity 'Domain Admins' -Recursive

# Trusts and Group Policy objects
Get-ADTrust -Filter *
nltest /domain_trusts /all_trusts
Get-GPO -All

PowerView covers the same ground from any PowerShell session, without RSAT:

Get-DomainUser
Get-DomainTrustMapping
Get-DomainGPO
Find-InterestingDomainAcl

Find-InterestingDomainAcl lists objects on which a non-built-in principal holds modification rights, which is the fastest manual route to a shadow admin.

3. Find sessions, local administrators and shares

Find-DomainUserLocation
Find-LocalAdminAccess
Find-DomainShare
nxc smb 192.0.2.0/24 -u alice -p 'Password' --shares

4. Collect for BloodHound

SharpHound runs on a domain-joined Windows host as the current user:

# Everything: directory data plus sessions and local groups from every reachable computer
.\SharpHound.exe --CollectionMethods All --Domain corp.example.com --OutputDirectory C:\temp\

# Domain controllers only: no connection to member hosts
.\SharpHound.exe --CollectionMethods DCOnly

# Session data over time, touching only the systems most likely to hold sessions
.\SharpHound.exe --CollectionMethods Session --Stealth --Loop

BloodHound.py and NetExec collect from Linux with a password, a hash or a Kerberos ticket:

bloodhound-python -u alice -p 'Password' -d corp.example.com -ns 192.0.2.10 -c All --zip
bloodhound-python -u alice -p 'Password' -d corp.example.com -ns 192.0.2.10 -c DCOnly --zip
nxc ldap 192.0.2.10 -u alice -p 'Password' --bloodhound --collection All

5. Map the paths

Import the archive into BloodHound, mark the accounts already held as owned, and query for the shortest paths to Domain Admins, domain controllers and other Tier 0 objects. Each edge on a path names the next attack: an SPN on a user account leads to Kerberoasting, a missing preauthentication flag to AS-REP roasting, GenericAll on a user to GenericAll abuse, replication rights to DCSync. The BloodHound and Kangal attack path analysis walks through reading such a graph.

Impact

Reconnaissance gives information, not access. Its value is that it removes guesswork from everything after it: which accounts to roast, which names to use for password spraying, which host holds a Domain Admin session, which forgotten ACL makes a standard user one step from control of the domain. An attacker who has the graph usually needs far fewer noisy actions to reach Tier 0.

OPSEC and artifacts

  • Directory only. DCOnly collection keeps all traffic on LDAP to domain controllers, where it blends with normal lookups. What remains: a burst of broad LDAP searches from one client. Domain controllers record expensive and inefficient searches as Directory Service event 1644 when LDAP query logging is turned on, and write event 4662 when a queried object carries an audit SACL.
  • LDAP through ADWS. Collecting over TCP 9389 hides the LDAP filter from network sensors, because the query travels inside an encrypted SOAP session. What remains: the connection to port 9389 from a workstation, and the same 4662 events, where the client can appear as the domain controller itself because ADWS performs the LDAP search locally.
  • Session collection is loud. The session and local group methods open SMB connections to every computer in scope within minutes. What remains: a network logon (event 4624, type 3) on each host from one source, event 5145 for access to the srvsvc and samr named pipes on IPC$ where detailed file share auditing is on, and event 4799 when local group membership is enumerated.
  • Stealth and throttling. SharpHound --Stealth limits host contact to the systems most likely to hold sessions, and --Throttle with --Jitter spreads requests out. The per-host events are the same; only the rate changes.
  • Kerberos username testing leaves event 4768 failures with result code 0x6 for every name that does not exist.
  • Files. SharpHound writes a zip archive of JSON files and a cache file to its working directory. The process and its command line appear in event 4688 or EDR telemetry.

Detection

  • Fan-out from one source. One account making network logons to many hosts in a few minutes is the clearest sign of session collection. Count destination hosts per source on event 4624:
SecurityEvent
| where EventID == 4624 and LogonType == 3
| where isnotempty(IpAddress) and IpAddress != "-"
| summarize Hosts = dcount(Computer) by TargetDomainName, TargetUserName, IpAddress, bin(TimeGenerated, 10m)
| where Hosts >= 20
| order by Hosts desc
  • Privileged group lookups over SAM. With Audit SAM enabled, a domain controller logs event 4661 when Domain Admins or a similar group is opened. See the privileged group reconnaissance rules. On member hosts, event 4799 records local group enumeration.
  • Kerberos username enumeration. Many event 4768 failures with code 0x6 from one address. See the Kerberos account enumeration rules.
  • Decoy objects. Create a user or group that nothing uses, add an audit SACL for read access by Everyone, and alert on event 4662 for it. Normal clients never read it; a collector that reads everything does.
  • Named pipe access. Event 5145 with ShareName \\*\IPC$ and RelativeTargetName srvsvc or samr from a workstation to many servers.
  • LDAP query logging. Event 1644 shows the client address, the search filter and the number of entries visited. Collectors ask for filters such as (objectClass=*) across the whole domain with large result sets.

Backup jobs, inventory agents and vulnerability scanners produce the same fan-out. Baseline them by source and account before alerting.

Mitigation

Reconnaissance cannot be switched off, so the aim is to make the graph short and collection visible.

  • Remove the paths, not the visibility. Review ACLs on Tier 0 objects, nested privileged group membership, delegation settings and trusts, and remove rights nobody can justify. Run the same collectors yourself: what an attacker would find, you can find first.
  • Keep privileged sessions off ordinary hosts. Administer Tier 0 from dedicated workstations so that session data never shows a Domain Admin on a user's desktop.
  • Randomize local administrator passwords so that one host does not open the next. The Windows LAPS guide covers the rollout, including who may read the passwords.
  • Close anonymous access. Remove Anonymous Logon and Everyone from the Pre-Windows 2000 Compatible Access group and keep the default restrictions on anonymous SAM enumeration.
  • Restrict remote session and SAM enumeration to administrators with the "Network access: Restrict clients allowed to make remote calls to SAM" policy on member hosts.
  • Require LDAP signing and channel binding so that directory access cannot be relayed. See the LDAP signing and channel binding guide.
  • Turn on the audit settings the detections need: Audit SAM, Directory Service Access, Detailed File Share and Logon. The audit policy guide lists them.

Detection rules for this attack

Log events to collect

FAQ

What privileges does Active Directory reconnaissance need?

For most of it, any valid domain account. Authenticated Users can read nearly every object and most attributes by default, including group membership, SPNs, delegation settings, ACLs and trusts. Without an account, an attacker on the network can still find domain controllers through DNS, read rootDSE, and test usernames against Kerberos.

Can you block BloodHound collection?

Not the directory part: it uses the same LDAP reads that every domain member needs. You can limit the host part by restricting who may enumerate sessions and local groups remotely, and you can make collection visible with LDAP query logging, a decoy object with an audit SACL, and detection of one source touching many hosts.

Is reconnaissance alone a security incident?

It is discovery, not compromise, and inventory tools and administrators produce similar traffic. Treat directory-wide enumeration from a workstation or an account that has no reason to do it as an early warning: it usually comes before Kerberoasting, password spraying or ACL abuse.

References

Techniques, tactics and threat groups: MITRE ATT&CK® Enterprise v20.1. © The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. Last updated 2026-11-29.

Does this attack work in your environment?

Forestall maps every identity and the attack paths between them across Active Directory, Entra ID and cloud, read-only and agentless.