Courses3 levels
Level 1 · Foundations11 courses
Level 2 · Core5 courses
Level 3 · Advanced5 courses
Labs8 topics
Library Practice exams AI Range Pricing Start free

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.

  • active-directory
  • kerberoasting
  • pass-the-hash
  • bloodhound
  • windows
On this page 10 sections
  1. ·Chapter 1 — AD Fundamentals
  2. ·Chapter 2 — Kerberos Authentication
  3. Locked: Chapter 3 — AD Enumeration
  4. Locked: Chapter 4 — BloodHound
  5. Locked: Chapter 5 — Kerberoasting
  6. Locked: Chapter 6 — ASREPRoasting
  7. Locked: Chapter 7 — Pass the Hash (PtH)
  8. Locked: Chapter 8 — DCSync Attack
  9. Locked: Chapter 9 — Lateral Movement
  10. 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 DC

Chapter 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 → ASREPRoasting

Sign in to continue

8 more sections are for signed-in members. It is free: sign in with Google.

Related