Security in depth · Unit 24
Active Directory
Understand directory objects, groups, domain controllers, and the relationships that produce effective access.
ATT&CK TA0006 Credential Access · TA0008 Lateral Movement
Helpful before thisWindows privilege escalationReconnaissance: building an evidence-based map
After this lesson you can
- distinguish a domain, forest, and domain controller
- interpret membership, permission, and trust relationships without treating every arrow alike
- separate Kerberos authentication from resource authorization
Lessons in this unit
Browse 14 lessons in this topic
- Reading an Active Directory environmentBuild a useful identity map without confusing what you can see with what you can change.7 min
- Understanding identity access pathsRead a chain of relationships, check its conditions, and choose a control that removes unnecessary authority.9 min
- Movement, sessions, and lasting accessSeparate reaching another system from keeping access over time, then reason about evidence and recovery.7 min
- Kerberos without the alphabet soupUnderstand the ticket office, the service ticket, and why time and naming matter.10 min
- Privilege is a responsibility with an expiry dateDesign administrative access around purpose, separation, approval, and removal.10 min
- Certificates: who gets to vouch for whom?Understand public keys, issuers, validation, and the difference between encryption and identity.11 min
- A directory describes; services enforceSeparate a recorded directory change from the decision a consuming application actually makes.4 min
- Nested groups change effective accessFollow a supported membership chain all the way to the resource permission it grants.4 min
- Delegate an operation, not a vague roleExpress administrative delegation as an operation on a defined set of directory objects.4 min
- A trust is not universal permissionRead trust direction separately from the permissions on a resource across that boundary.4 min
- Service names need accountable ownersConnect a Kerberos service name to its intended sign-in account before changing authority.3 min
- Configured policy is not applied policyUse scope, security filtering, and device evidence to distinguish policy intent from application.3 min
- Moving roles should remove old accessCompare a role-change approval with surviving access, including temporary handover exceptions.3 min
- Identity is a recovery dependencyFind circular recovery dependencies before treating a successful backup as a usable recovery plan.3 min
Active Directory Domain Services helps organizations manage accounts, computers, groups, and policy. A relationship graph is a useful model: it can show who belongs to a group, which group can access a resource, and who may change an object. The graph includes resources and policy objects as well as identities.
This overview connects the vocabulary used in the shorter lessons. The goal is to understand intended access and identify relationships that grant more authority than a job requires.
Domains, forests, and controllers
A Domain is an administrative and directory partition, commonly associated with a DNS name such as corp.example. A Domain controller hosts directory data and supports authentication and related services. It is an important server, not the whole directory environment. Multiple controllers can support the same domain.
A Forest can contain multiple domains with shared schema and configuration. In the AD DS design, the forest is the overarching security boundary; a separate domain within the same forest is not complete isolation from forest-level administration. Trusts and external relationships still require their own security design.
Organizational units help organize objects and delegate administration. They do not automatically provide isolation merely because objects appear in different folders.
Read each kind of relationship
A membership arrow is not the same as a permission grant. An ACL describes access or auditing entries on an object. Delegation, trusts, ownership, and application permissions have additional rules. A graph must retain those distinctions instead of treating every arrow as unrestricted control.
Directory information is often readable so normal authentication, discovery, and administration can work. Visibility alone is not proof of excessive access. Sensitive attributes and modification rights need protection appropriate to their purpose.
A powerful group can nevertheless deserve close review. Backup Operators in AD has significant backup and restore rights on domain controllers. The group name alone does not prove a particular data read or domain compromise; scope, effective rights, and evidence still matter.
A person leaves one team. Is removing one group membership enough?
Possibly, but nested groups, direct grants, other roles, and existing security contexts may preserve access. Review effective permissions and the lifecycle of sessions or tokens before concluding that the intended access ended.
Tickets authenticate; resources authorize
Kerberos allows authentication to services without sending those services the user’s password. A client uses a ticket-granting ticket, or TGT, to obtain an appropriate service ticket. It presents the service ticket to its intended service; the TGT is not a universal application ticket.
The service must still apply authorization. Valid authentication does not grant access to every file or administrative operation. NTLM uses a different challenge-response design and remains relevant in some environments. The protocol actually used should be identified rather than inferred from the presence of a domain.
Connect concepts to defensive review
- Enumeration explains how authorized observations describe directory structure.
- Permission paths connect relationships to their possible authority and preventive controls.
- Lateral access and persistence concepts examine where identities can be used and how access survives changes.
A useful finding identifies the object, relationship, intended job, effective authority, and supported consequence. It separates verified behavior from possibilities that remain untested. A correction might narrow membership, protect delegated administration, constrain a service identity, or improve access removal.
After a change, confirm both that necessary work still succeeds and that unintended access has ended. This makes the graph a practical tool for maintaining permissions over time.
Worked review: a job change is a relationship change
The fictional Cedar archive supplies these records. Both groups are security groups in the same domain, nesting is valid, and the exercise uses a fresh security context. No direct grant, other membership, deny, or extra access restriction affects the folder decision.
D1: Eva belongs to the global group Exhibitions. Exhibitions belongs to the domain-local group ArchiveReaders.
D2: ArchiveReaders has read permission on the Catalog folder. That permission grants no content modification.
D3: Eva has moved to Visitor Services. The owner says her new job needs the public schedule, but no Catalog access. Exhibitions colleagues still need Catalog.
PredictShould the owner remove ArchiveReaders’ folder permission to end Eva’s old access?
That would remove required access for colleagues too. Under the stated assumptions, Eva’s membership in Exhibitions is the narrower relationship to remove. The two membership links explain why the folder grant reaches her; neither membership link is itself the folder ACL.
The directory administrator should record the approved membership correction. The resource owner then checks the intended result using a fresh context: Eva cannot read Catalog, while a current Exhibitions colleague still can. The directory update and successful verification are different pieces of evidence.
Existing sessions require a separate lifecycle decision. Group information already represented in a token or application session may not change immediately, and other products may maintain their own grants. Define which sessions the removal process covers and when the owner expects access to end.
This small graph also shows why organizational charts are insufficient. Eva’s new department label expresses business intent; effective access follows implemented relationships and the resource’s policy. A controller records directory changes and participates in authentication, while the folder’s access decision still concerns its own permissions.
Terms you met
Check yourself
No timer. No penalties. Read the explanation and try again whenever you like.
This lesson’s questions have changed. Your reading progress is saved; review the updated questions.
-
Which representation correctly explains D1-D2?
Show the answer
Correct answer: Two membership relationships contribute to a separate read grant on Catalog. Keeping the edge meanings distinct explains the path without treating directory membership as an object permission.
-
Cedar has two controllers for one domain. Where is the Catalog read decision resolved?
Show the answer
Correct answer: The resource applies its permissions using the relevant security context. Controllers support the directory and authentication. The service hosting the resource still enforces its access decision.
-
Which correction is narrowest under D1-D3 and the stated assumptions?
Show the answer
Correct answer: Remove Eva from Exhibitions and verify the resulting access. This addresses her obsolete relationship while preserving the group-to-resource grant needed by colleagues.
-
A KDC record shows a ticket for Cedar’s file service. Which additional evidence best establishes whether the service accepted and authorized a specific Catalog read?
Show the answer
Correct answer: Correlated service-authentication and resource-authorization results for that read. These records address the service stages missing from ticket issuance. They must identify the relevant request rather than a different successful operation.
-
Eva’s membership was removed at 14:00. Which closure evidence is strongest?
Show the answer
Correct answer: A fresh-context denial, continued colleague access, and documented handling of existing sessions. This combines the intended permission result, preserved business function, and the important lifecycle boundary.
Try it
- WriteFor D1-D3, draw membership arrows separately from the folder permission. Mark the relationship that must change after Eva moves teams. Write one acceptance check for a fresh session and one question about existing sessions, without assuming the directory update ends every access path.