Active Directory & Windows Security Basics
Active Directory Domain Services (AD DS) provides centralized identity management, authentication, and policy enforcement across enterprise Windows environments.
Kerberos Authentication Protocol
Section titled “Kerberos Authentication Protocol”Kerberos operates via a trusted third party, the Key Distribution Center (KDC), typically hosted on a Domain Controller (DC).
3-Step Ticket Exchange Process
Section titled “3-Step Ticket Exchange Process”- Authentication Service (AS) Exchange:
- Client sends
AS-REQcontaining timestamp encrypted with user password hash. - KDC verifies and returns
AS-REPcontaining Ticket Granting Ticket (TGT) and session key.
- Client sends
- Ticket Granting Service (TGS) Exchange:
- Client presents TGT via
TGS-REQrequesting access to a Service Principal Name (SPN). - KDC issues a Service Ticket (
TGS-REP).
- Client presents TGT via
- Application Exchange (AP):
- Client presents Service Ticket (
AP-REQ) to target application server.
- Client presents Service Ticket (
Common Attack Vectors
Section titled “Common Attack Vectors”Kerberoasting
Section titled “Kerberoasting”- Mechanism: Any valid domain user can request a TGS ticket for any service account configured with a Service Principal Name (SPN).
- Impact: The TGS ticket is encrypted with the service account’s password hash. Attackers extract this ticket offline and perform brute-force attacks to recover the plaintext password.
AS-REP Roasting
Section titled “AS-REP Roasting”- Mechanism: If a user account has the attribute
DONT_REQ_PREAUTHenabled, anyone can request anAS-REPmessage without presenting pre-authentication data. - Impact: The response contains data encrypted with the user’s password hash, crackable offline.