Module 21 · Active Directory Security · Lesson 61 of 75
How Active Directory works: domains, Group Policy and Kerberos
The parts of Active Directory, why it is the crown jewel of a Windows network, and how NTLM and Kerberos prove who you are.
In this lesson · about 40 minutes
- Describe domains, forests, OUs, groups, Group Policy and domain controllers
- Explain NTLM challenge-response and its weaknesses
- Walk through Kerberos: TGT, service tickets and the KDC
The parts
- Domain (for example
corp.example): a security boundary of users, computers and groups, managed together. - Domain controllers (DCs): servers that hold the AD database (
NTDS.dit), answer logins, and replicate with each other. - Forest: one or more domains that trust each other; the forest is the true security boundary.
- Organisational units (OUs): folders for organising objects and applying policy.
- Groups: the most powerful are Domain Admins, Enterprise Admins, Administrators and accounts that can replicate the directory.
- Group Policy Objects (GPOs): settings pushed to computers and users: password policy, firewall, software, scripts.
- Service accounts: accounts that run services such as SQL Server, often with a service principal name (SPN) registered.
- AD relies on DNS to find DCs, and LDAP (389/636) to query the directory.
NTLM
The older protocol. The server sends a random challenge, the client answers with a value computed from the challenge and the NT hash of the password. The password itself is never sent, but:
- The NT hash is as good as the password (pass-the-hash).
- Responses can be captured and cracked offline, or relayed to another server in real time.
Kerberos (the default)
- AS-REQ / AS-REP: the user proves they know their password (pre-authentication) to the Key Distribution Center on the DC and gets a Ticket Granting Ticket (TGT), encrypted with the hidden
krbtgtaccount's key. - TGS-REQ / TGS-REP: the user shows the TGT and asks for a service ticket for, say, the file server. The service ticket is encrypted with the service account's password hash.
- AP-REQ: the user presents the service ticket to the server, which decrypts it and lets them in.
Kerberos uses port 88, needs clocks within five minutes of each other, and gives single sign-on: one password at logon, tickets after that.
Whiteboard · watch and try
Kerberos in three trips
Press Play. The tutor follows Priya from logon to opening a file share.
Tip: press Pause, then use the pen to work along on the board. Space plays and pauses; Ctrl+Z undoes your last mark.
Check your understanding0 of 4 correct
Quiz score: 0 of 4
Written by Noviq Academy in its own words. All labs are simulations: no real systems are touched, and every name, address, password and hash is made up. The offensive techniques taught here are for defending systems and for authorised testing only; never scan, access or test a system without the owner's written permission. Tool and product names belong to their owners, and command output may differ slightly from yours. Read-aloud uses your device's built-in voices.