Skip to content

Directories, zones and shares

These analyzers map the structure behind a name service, a directory or a file server. The first two describe what is there and need the Engineering tier. The other three look at a directory or a file server the way an attacker would and need the Security tier.

AnalyzerProtocolTierWhat you get
DNS zone mapDNSEngineeringThe records at a zone’s apex, grouped by type
Directory treeLDAPEngineeringThe directory as a tree you can browse, with each entry’s object classes and attributes
Directory enumerationLDAPSecurityWhat the probe’s bind (or an anonymous one) can list: naming contexts, users and groups
AD enumerationLDAPSecurityActive Directory accounts with their Kerberos and delegation risks, groups and the password policy
SharesSMBSecurityEvery share with its type and the access control list on it

None of the five writes to the server it reads.

The three LDAP analyzers connect the way the probe does: over LDAPS when the probe uses TLS (or names port 636 with no TLS setting), in the clear otherwise. None of them uses StartTLS. Directory tree and Directory enumeration verify the server’s certificate unless the probe is set to skip that check.

The zone map asks the probe’s resolver for the records at the zone’s apex, one query per type (SOA, NS, A, AAAA, MX, TXT and CNAME). The zone is the probe’s first query name, unless you set a Zone under Analyzer options. It does not attempt a zone transfer and does not enumerate subdomains, so the map is what any resolver will answer for the apex name. (The zone transfer check belongs to DNS posture.)

DNS zone map: apex records grouped by type with TTL and value

The records are grouped in tables by type, each with Name, TTL and Value. Filter records matches on name, type or value.

FindingSeverityWhen
No records foundWarningNothing came back (the analysis is Inconclusive)
No SOA recordWarningRecords came back but no SOA, so the name is probably not a zone apex (or the server is not authoritative for it)
Query for a type failedWarningOne query failed, for example on a timeout

A resolver that does not answer at all shows as a failed query for every type plus No records found.

The directory tree binds with the probe’s credential (or anonymously when the probe has none), finds the base DN and reads everything under it in one subtree search. The base DN is the Base DN set under Analyzer options, or the probe’s base DN when it has one. Otherwise the analyzer reads the server’s naming contexts and takes the first one that is not a configuration or schema context.

For each entry it reads the object classes and a fixed set of descriptive attributes (cn, ou, dc, o, uid, mail, sn, givenName, displayName and description), so the tree describes the shape of the directory without pulling every attribute of every entry.

Directory tree: OUs, users and groups in a tree with the selected entry's attributes

The left pane is the tree, with an icon for organizational units, groups, users and containers. Filter the tree matches on the RDN or DN and keeps the path to every match open. Select an entry to see its DN, its Object classes and its Attributes.

FindingSeverityWhen
Directory tree is partialWarningThe base holds more than 1,000 entries; the tree shows the first 1,000
No base DN to walkWarningNo base DN was set and the server exposes no naming context
LDAP bind failedErrorThe server refused the bind; the detail carries its message
Directory search failed, Could not read the directoryErrorThe connection or the search failed

Directory enumeration shows what the probe’s bind can list. It uses the probe’s credential, or binds anonymously when the probe has none, then reads the naming contexts from the RootDSE and searches the base (chosen the same way as for the directory tree) for users (person, inetOrgPerson, user and posixAccount entries) and for groups (groupOfNames, groupOfUniqueNames, posixGroup and group).

Directory enumeration with an anonymous bind: the naming contexts listed, no users or groups and the RootDSE finding

The view shows whether the bind was Authenticated or Anonymous, the Naming contexts and the Users and Groups with a count and the first ten names of each. Each search reads at most 200 entries, so a count of 200 means 200 or more.

FindingSeverityWhen
Directory enumerable without authenticationCriticalAn anonymous bind could list users or groups
RootDSE readable anonymouslyInfoAn anonymous client can read the naming contexts

An authenticated bind produces no posture findings. Its counts still show how much of the directory the account can list, so bind as a service account to see what it can read.

AD enumeration reads an Active Directory domain controller over LDAP with a domain account. It needs a credential with a user name and a password. Without one the analysis stops with No domain credential, because an anonymous bind to a domain controller returns an empty directory.

It finds the domain from the RootDSE, then reads:

  • every user account, with its userAccountControl flags, service principal names, adminCount, group membership and delegation settings
  • every group with its member count
  • the domain’s password policy (minimum length, complexity, lockout threshold and maximum age)

Everything is derived from the directory, so no Kerberos ticket is requested and a roastable account is reported from its attributes. The domain controller’s certificate is not verified. Computer accounts are not read.

Users and groups are read with paged searches, 500 entries a page, so a domain larger than the server’s per-search limit is read in full. If a search still ends early (the server ignored paging and capped the result, or the search failed partway), the analysis adds The directory returned only part of the domain as a warning, naming the search and how many users and groups arrived. The counts are then lower bounds and accounts that were not read have no findings.

AD enumeration: domain summary, password policy and accounts with their risk flags

The view opens with the Domain and counts of Users, Groups, Privileged accounts (adminCount set) and accounts At risk, then the password policy. The Accounts table lists each account with an Admin marker, whether it is enabled and its risks. The SPNs and delegation targets are in the detail column. Accounts are sorted by risk. The Groups list puts the built-in privileged groups (Domain Admins, Enterprise Admins, Schema Admins, Administrators and the operator groups among them) first.

FindingSeverityWhen
Account does not require Kerberos pre-authenticationCriticalThe account is AS-REP roastable
Account is kerberoastableCriticalA user account has a service principal name
Account is trusted for unconstrained delegationCriticalTRUSTED_FOR_DELEGATION is set in userAccountControl
Account may have an empty passwordCriticalPASSWD_NOTREQD is set
Account has resource-based constrained delegation configuredWarningAnother principal may act on behalf of users to this account
Account is trusted for constrained delegationWarningThe account can impersonate users to the services listed
Weak minimum password lengthWarningThe policy allows passwords shorter than 8 characters
Password complexity is disabledWarningThe policy does not require complex passwords
No account lockoutWarningThe lockout threshold is 0
The directory returned only part of the domainWarningA user or group search ended before the directory returned everything
Enumerated usersInfoAlways: the totals of privileged, kerberoastable, AS-REP roastable and unconstrained accounts, with a button that opens the source probe

Disabled accounts are checked and flagged like enabled ones. After 60 per-account findings the remaining accounts get no finding of their own. Their AS-REP roastable, kerberoastable and unconstrained flags are counted in the summary and the accounts table lists every account that was read.

The shares analyzer opens an SMB session with the probe’s credential (or an anonymous session when the probe has none), lists the server’s shares and reads the security descriptor of each one. The domain comes from a DOMAIN\user user name when it has one, otherwise from the Domain set under Analyzer options and then from the probe’s domain field. Reading a share’s security descriptor usually needs administrative rights on the server, so a low-privileged session lists the shares and reports their access lists as Access denied.

Shares: each share with its type and access control entries, every disk share granting Everyone full control

Each share shows its type (disk, IPC, print queue or device), a special marker for administrative shares and its access control state:

  • N entries: the access list was read and its entries are listed under the share, each with the trustee, Allow or Deny and the rights
  • World-accessible: the share has no access list at all, so everyone has full control
  • No access: the access list is empty, so nobody is granted access
  • Access denied: this session is not allowed to read the security descriptor
  • Error: the share’s information could not be read

Well-known trustees (Everyone, Authenticated Users, Administrators, Domain Admins and the like) are shown by name. Any other SID is shown as it is. Select a share for its Path, Remark and Owner SID, or an entry for its Access mask and flags. Filter shares matches on the share name, its remark or a trustee.

FindingSeverityWhen
Over-permissioned share (no DACL)WarningA regular disk share has no access list, so every user has full access
Over-permissioned share (grant)WarningA regular disk share grants Everyone or Authenticated Users full or change access
No shares foundWarningThe server listed no shares to this session (the analysis is Inconclusive)
Authentication failedErrorThe server refused the session setup

IPC, print and administrative shares are never flagged. A share whose access list could not be read produces no finding; its state shows only in the view.