Which protocol does what
Windows apps ask the Negotiate package to authenticate. Negotiate tries Kerberos first and falls back to NTLM when Kerberos cannot work, for example when you connect by IP address, to a workgroup machine or when an SPN is missing.
| Protocol | Role | Port |
|---|---|---|
| Kerberos v5 | Default authentication in a domain; mutual authentication with tickets. | 88 TCP/UDP, 464 (password change) |
| NTLM (v2) | Legacy challenge-response fallback. Deprecated. | Inside SMB, HTTP, RPC |
| LDAP / LDAPS | Directory queries and simple or SASL binds. | 389, 636; GC 3268, 3269 |
| DNS | Locate DCs and services through SRV records. | 53 |
| RPC / SMB | Replication, Netlogon, SYSVOL and GPO download. | 135, 49152–65535, 445 |
| NTP (W32Time) | Keeps clocks within Kerberos' 5-minute tolerance. | 123 UDP |
| AD Web Services | Used by the AD PowerShell module and ADAC. | 9389 |
Kerberos in six steps
- AS-REQ: the client asks the Key Distribution Center (KDC, on every DC) for a Ticket Granting Ticket, with a timestamp encrypted using a key derived from the user's password (pre-authentication).
- AS-REP: the KDC returns a TGT encrypted with the
krbtgtaccount's key, plus a session key. The TGT carries the PAC, the list of the user's group SIDs. - TGS-REQ: to reach a service, the client presents the TGT and asks for a service ticket for that service's SPN.
- TGS-REP: the KDC returns a service ticket encrypted with the service account's key.
- AP-REQ: the client sends the service ticket to the server.
- AP-REP (optional): the server proves its own identity back. That is mutual authentication.
- Default ticket lifetime is 10 hours, renewable for 7 days. Clock skew tolerance is 5 minutes.
- Encryption: AES-256 and AES-128. RC4 is deprecated, and Windows Server 2025 KDCs no longer issue TGTs with RC4.
- Kerberos armoring (FAST) and compound claims protect pre-authentication and enable Dynamic Access Control.
- Windows Server 2025 and Windows 11 introduce IAKerb and a local KDC so Kerberos can replace NTLM in cases like local accounts and no line of sight to a DC.
Kerberos delegation
| Type | How it works | Risk |
|---|---|---|
| Unconstrained | The server receives users' TGTs and can impersonate them anywhere. | High. Remove it from everything except DCs. |
| Constrained (KCD) | The front-end may get tickets only to listed SPNs (msDS-AllowedToDelegateTo). | Medium. Set on the front-end account by Domain Admins. |
| Resource-based constrained (RBCD) | The back-end lists which accounts may delegate to it (msDS-AllowedToActOnBehalfOfOtherIdentity). | Lower, and the resource owner controls it. Watch who can write that attribute. |
Protect sensitive accounts with Account is sensitive and cannot be delegated or membership in Protected Users.
Service principal names (SPNs)
An SPN tells the KDC which account runs a service, so it knows which key to encrypt the ticket with. Format: service/host:port, for example HTTP/intranet.corp.contoso.com or MSSQLSvc/sql01.corp.contoso.com:1433.
- Computer accounts get
HOST/and other SPNs automatically. Services under a user or gMSA account need SPNs registered on that account. - Duplicate SPNs break Kerberos (KRB_AP_ERR_MODIFIED) and push clients to NTLM.
- A user account with an SPN can be Kerberoasted: any user can request its ticket and crack the password offline. Use gMSAs with long random passwords.
setspn -L CORP\svc-web # list SPNs on an account
setspn -S HTTP/intranet.corp.contoso.com CORP\svc-web # add, checking for duplicates first
setspn -Q HTTP/intranet* # who owns this SPN?
setspn -X -F # find duplicates forest-wide
Get-ADUser -Filter 'servicePrincipalName -like "*"' -Properties servicePrincipalName
NTLM and its retirement
NTLM proves you know the password hash through a challenge-response, often passing through the server to a DC (pass-through authentication). It has no mutual authentication and is exposed to relay and pass-the-hash attacks.
- NTLMv1 is removed starting with Windows 11 24H2 and Windows Server 2025. LANMAN and NTLMv2 are deprecated and will be removed in a future release.
- Plan the move: audit with Network security: Restrict NTLM: Audit incoming NTLM traffic and Audit NTLM authentication in this domain, read event 8004 and 4624 details, fix the apps, then restrict.
- Typical fixes: use names instead of IP addresses, register missing SPNs, replace hard-coded NTLM calls with Negotiate.
- Mitigate relay while you wait: SMB signing (required by default for outbound connections in Windows Server 2025), LDAP signing and channel binding, Extended Protection for Authentication on IIS and AD CS.
- SMB clients on Windows Server 2025 and Windows 11 24H2 can block outbound NTLM:
Set-SmbClientConfiguration -BlockNTLM $true.
LDAP security
- LDAP signing: DCs should require it (Domain controller: LDAP server signing requirements). New Windows Server 2025 deployments require signing (sealing) after SASL binds by default. Events 2887 and 2889 show who still binds unsigned.
- Channel binding ties LDAPS sessions to the TLS channel to stop relays. Audit with events 3074 and 3075, then enforce.
- LDAPS needs a DC certificate with Server Authentication EKU, typically from AD CS autoenrollment. Windows Server 2025 supports TLS 1.3 for LDAP.
- Confidential attributes can only be read or written over encrypted connections in Windows Server 2025.