Practice library / Windows, Active Directory and macOS
Workbook · Hard · 5 hoursFree account
Windows Active Directory for Pentesters
Deep dive into AD administration, enumeration, and attack paths.
On this page 10 sections
- ·Chapter 1 — AD Fundamentals
- ·Chapter 2 — Kerberos Authentication
- Locked: Chapter 3 — AD Enumeration
- Locked: Chapter 4 — BloodHound
- Locked: Chapter 5 — Kerberoasting
- Locked: Chapter 6 — ASREPRoasting
- Locked: Chapter 7 — Pass the Hash (PtH)
- Locked: Chapter 8 — DCSync Attack
- Locked: Chapter 9 — Lateral Movement
- Locked: Chapter 10 — AD Defence
Active Directory is the central identity system of most corporate Windows networks, and it is the main target for an attacker who has gained access. The workbook covers the architecture (domains, forests, trusts, OUs), the protocols that attackers abuse (Kerberos, NTLM, LDAP, SMB), and the three stages that follow a foothold: enumerate the domain, find a path, move to the key assets. BloodHound maps the graph of permissions; PowerView and CrackMapExec enumerate from a shell; Rubeus and Mimikatz work with Kerberos tickets. Kerberoasting, AS-REP roasting, Pass-the-Hash and DCSync each exploit a different weakness, but they share one lesson: a strong domain depends on good secrets, tight privileges and clean trusts.
New to Active Directory? AD is the central authentication and authorisation system in most corporate Windows networks. It is a high-value asset and a frequent target in real-world attacks. This workbook is a starting point. Practise on TryHackMe's AD labs.
Chapter 1 — AD Fundamentals
# Active Directory = Microsoft's directory service for managing Windows networks
# Key components:
Domain Controller (DC) → server running AD DS; manages authentication
Domain → e.g. CORP.LOCAL — logical boundary for AD
Forest → collection of domains sharing schema
OU (Org Unit) → container for organising objects (like folders)
GPO → Group Policy Object — settings pushed to all machines
# AD objects:
Users → People + service accounts (svc_sql, svc_web)
Computers → Domain-joined workstations and servers
Groups → Collection of users/computers
→ Security groups: grant permissions
→ Distribution groups: email lists
# Privileged groups (pentest targets):
Domain Admins → full control of domain
Enterprise Admins → full control of forest
Schema Admins → can modify AD schema
Administrators → local admin on DCChapter 2 — Kerberos Authentication
# Kerberos = ticket-based auth protocol (port 88)
# Understanding it is crucial to understanding AD attacks
1. Authentication Service (AS) Exchange:
User → DC: "I'm Alice, here's my password hash (AS-REQ)"
DC → User: "Here's your TGT" (Ticket Granting Ticket)
2. Ticket Granting Service (TGS) Exchange:
User → DC: "I want to access the SQL server" (TGS-REQ with TGT)
DC → User: "Here's a service ticket for SQL" (TGS-REP)
3. Application Request:
User → SQL Server: "Here's my ticket" (AP-REQ)
SQL Server verifies ticket → grants access
# Key attack points:
# TGT encrypted with KRBTGT hash → Golden Ticket attack
# Service ticket encrypted with SERVICE ACCOUNT HASH → Kerberoasting
# AS-REQ can be made without pre-auth → ASREPRoastingSign in to continue
8 more sections are for signed-in members. It is free: sign in with Google.