How Kerberos Works: Log In Once, Prove It Everywhere
You type your password once in the morning — then open file shares, printers, and apps all day without typing it again. Nobody asked for your password a second time — and it never crossed the network at all, not even at login. That is Kerberos.
Kerberos is the network authentication protocol at the heart of Active Directory, defined in RFC 4120 (Kerberos v5). Instead of sending your password to every service, it uses a trusted third party to hand out encrypted, time-limited tickets — proof of who you are that each service can verify on its own.
The three parties
Every Kerberos exchange involves three parties:
- The client — the user or computer asking for access.
- The Key Distribution Center (KDC) — the trusted third party. In Active Directory, every domain controller is a KDC. It runs two services: the Authentication Service (AS), which verifies who you are, and the Ticket Granting Service (TGS), which hands out tickets for specific services.
- The service — the file server, printer, or application you want to reach.
The exchange, step by step
- Ask for a ticket-granting ticket. At login, the client asks the Authentication Service for a ticket-granting ticket (TGT), proving who it is with a timestamp encrypted using a key derived from the user's password. The password itself never travels across the network.
- Receive the TGT. The KDC checks the proof and returns the TGT, encrypted with the KDC's own secret key (the krbtgt account key) so the client cannot read or alter it. By default in Active Directory a TGT is valid for 10 hours and renewable for up to 7 days — which is why one morning login lasts the whole workday.
- Ask for a service ticket. To open a file share, the client presents its TGT to the Ticket Granting Service and names the service it wants.
- Receive the service ticket. The KDC issues a service ticket encrypted with that service account's key, plus a session key for the client and the service to use.
- Present the ticket. The client sends the service ticket to the service, along with a fresh authenticator only the real client could produce. The service decrypts the ticket, verifies it, and lets the client in — without ever talking to the KDC or seeing the password.
That sequence is what delivers single sign-on: get a TGT once, then exchange it for a service ticket for each new resource, all day, with no further password prompts.
Why time matters: the five-minute rule
Tickets carry timestamps, and that is deliberate — timestamps defeat replay attacks, because a captured ticket cannot be reused forever. The trade-off is that clocks must agree. By default, Active Directory tolerates five minutes of clock skew between a client and a domain controller.
That makes the clock a classic troubleshooting target: if a domain-joined machine suddenly cannot authenticate, check its time first. A drifting clock breaks logons even when the network path is perfectly healthy — which is why NTP is treated as security infrastructure, not a convenience. Kerberos traffic itself runs on port 88 (TCP and UDP).
Where it breaks: weak service accounts
The service ticket is encrypted with the service account's key. If that account has a weak password, an attacker who can request a service ticket can take it offline and crack it at leisure — an attack known as Kerberoasting. The fix is on the service-account side: long, random passwords for service accounts, and modern encryption types only. The protocol is sound; the weak link is usually the password behind the ticket.
Kerberos vs NTLM
NTLM is the older Windows challenge-response protocol Kerberos replaced as the default in Active Directory. The exam distinction is simple: Kerberos is the default authentication protocol for Active Directory — ticket-based, with a trusted third party, mutual authentication, and single sign-on. NTLM is the fallback for situations where Kerberos cannot work, and it is weaker. If a question describes tickets, a KDC, or port 88, the answer is Kerberos.
On the exam
For Security+ SY0-701, expect questions like these:
- “A user logs in once and accesses many resources without re-entering credentials” → Kerberos single sign-on (the TGT).
- “Which port does Kerberos use?” → 88, TCP and UDP.
- “Authentication fails on a workstation whose clock is wrong” → clock skew beyond the five-minute tolerance.
- “Which component issues the ticket-granting ticket?” → the KDC's Authentication Service.
- “A ticket is presented to a file server without the password” → the service ticket from the Ticket Granting Service.
Also remember the pieces by name — KDC, Authentication Service, Ticket Granting Service, TGT, service ticket — because the exam names them directly.
Practical takeaway
When authentication works everywhere except one machine, or stops working everywhere at once, ask two questions before touching passwords: is the KDC reachable on port 88, and is the clock right? Most Kerberos failures are one of those two — and neither one is fixed by resetting the user's password.
FAQ
Does Kerberos send my password over the network? No. At login the client proves knowledge of the password with an encrypted timestamp; after that, tickets do the proving. The password is never sent to the services you access.
What is the difference between a TGT and a service ticket? The TGT is your all-day pass from the KDC — it proves you authenticated and lets you ask for service tickets. A service ticket is for one specific service (one file server, one application), encrypted so only that service can read it.
Why does a wrong clock break login? Tickets are timestamped to stop replay attacks, and the KDC rejects requests outside the allowed clock-skew window — five minutes by default in Active Directory. Fix the time (check NTP), and authentication comes back.
Ready to prove it?
Reading about Kerberos is a start. CertCrack practice exams for Security+ test you the way the real exam does — with explanations for every answer.
Try a Free Sample Quiz