Skip to main content

Active Directory — Overview

Status: Scaffold — content in progress

Active Directory Domain Services (AD DS) is Microsoft's on-premises directory service, deployed in the vast majority of enterprise environments. It is the single most attacked identity system in enterprise security, with a mature and well-documented attack surface.

Architecture

Core Components

ComponentRole
Domain Controller (DC)Hosts the directory database (NTDS.dit), handles authentication (Kerberos/NTLM), and enforces policy
NTDS.ditThe AD database — stores all objects, attributes, password hashes
SYSVOLShared folder on all DCs — stores Group Policy files and scripts
Global Catalog (GC)Partial replica of all objects in the forest; used for cross-domain queries
DNSAD depends on DNS for DC location (SRV records)

Logical Structure

Forest (trust boundary)
└── Domain Tree
└── Domain (security boundary)
└── Organizational Units (OUs)
└── Objects (users, computers, groups)

Physical Structure

  • Site: group of well-connected IP subnets
  • Domain Controller: physical/virtual server hosting AD
  • Replication: DCs replicate changes via AD replication (RPC/IP or SMTP)

Key Identity Objects

Object TypeSecurity Relevance
User accountAuthentication principal, password hash stored in NTDS.dit
Computer accountHas a password hash too (used for Kerberos machine tickets)
Service accountOften high-privilege, infrequently rotated — primary Kerberoasting target
GroupUsed for authorization; nested group membership is an escalation path
GPO (Group Policy Object)Applies security settings, startup scripts, mapped drives

Security Model & Trust Boundaries

  • Domain: primary security boundary in AD
  • Forest: trust boundary — separate forests have no implicit trust
  • Domain Admin: has full control of the domain; Domain Admins of child domains cannot compromise the parent by default
  • Enterprise Admin: forest-wide privilege; lives in the forest root domain

Common Misconfigurations

MisconfigurationAttack
SPN on user accountsKerberoasting
Unconstrained delegation on non-DCPass-the-Ticket / TGT theft
Writable adminSDHolder ACLPersistent backdoor on protected accounts
Over-permissive ACLs on AD objectsACL abuse for privilege escalation
Weak ADCS template permissionsCertificate-based privilege escalation
LM/NTLMv1 enabledPass-the-Hash with weaker hashes

Telemetry This System Emits

Event IDDescriptionAttack relevance
4624Successful logonLogon type, source address
4625Failed logonPassword spray detection
4648Explicit credential usePass-the-Hash, runas
4672Special privileges assignedPrivileged logon tracking
4768Kerberos TGT requestAS-REP Roasting, Golden Ticket detection
4769Kerberos service ticket requestKerberoasting detection
4776NTLM authenticationNTLM relay tracking
4662AD object access (requires audit)DCSync, ACL abuse
4742Computer account changedMachine account password reset
5136AD object modifiedACL changes, attribute modification
TopicLink
Kerberoskerberos.md
NTLMntlm.md
ADCSadcs.md
AD AttacksAD Attacks
AD Lablab-ad-setup