Single sign-on and how Kerberos does it

9 min 5 sections 5 practice questions 6 sources citedISC2 objective 5.2

In most offices a person types one password in the morning and then opens email, shared files and printers without typing it again. That is single sign-on, and inside many organisations it is done by a ticket system called Kerberos. No background is assumed. A security professional has to know how the tickets work, why the clocks matter, and why one sign-in that opens everything is also one target that opens everything.

By the end of this unit you will be able to:

  • Explain what single sign-on gains and what risk it concentrates
  • Put the steps of a Kerberos sign-in in order, naming the KDC, AS, TGS, TGT and service ticket
  • Explain why Kerberos needs synchronised clocks and what a realm is
  • Tell apart pass the ticket, the golden ticket and password guessing as attacks on Kerberos

Right passwords, refused files

An illustrative example

A dental group has six branches that share one network. After a power cut at the Leeds branch, staff there can still sign in to their laptops, but every attempt to open shared files or print fails with an error.

Head office checks the obvious things. The passwords are right, the accounts are enabled, and the file server is running. Then an engineer notices that the Leeds laptops show a time ten minutes behind everyone else's.

The passwords were right. How could a clock that is ten minutes wrong stop people opening files?

One sign-in for many systems, and one target

Single sign-on (SSO) lets a user authenticate once and then use many systems without authenticating again to each. One trusted service checks the user, and the other systems accept its word.

  • Users have one password to remember instead of many, so there is less pressure to write passwords down or reuse them.
  • Administrators disable one account to remove access everywhere it reaches.
  • Sign-in , such as , is set and logged in one place.
  • Fewer forgotten passwords means fewer resets at the help desk.

The same design concentrates . A stolen credential, or a stolen session with the service, opens every system behind it. The SSO service is also a single point of failure: one component whose loss stops everything that depends on it. If it is down, nobody signs in to anything.

The sign-in to the SSO service is therefore where the strongest authentication pays for itself. The SSO service itself needs redundancy and the closest monitoring.

Common misconception

“Single sign-on weakens security because one password opens everything.”

It moves risk rather than simply adding it. Fewer, stronger, centrally controlled credentials are easier to protect. The cost is that the one credential and the SSO service must be protected far more strongly.

The named parts of Kerberos

Kerberos is a network authentication protocol that gives single sign-on through tickets: small records that let a user prove identity to a service without sending a password. Windows domains use it by default.

A hotel guest card

A guest shows a passport at reception once and receives a guest card for the stay. At the spa desk the guest shows the card and receives a spa pass for this afternoon. The spa never sees the passport.

Kerberos works the same way: one proof at the start, a pass for the stay, and a separate ticket for each service.

Principal
Any user, computer or service that Kerberos knows by name.
Key distribution centre (KDC)
The trusted server at the centre. It holds a for every principal and contains the next two services.
Authentication service (AS)
The part of the KDC that checks the user at the start and issues the ticket-granting ticket.
Ticket-granting service (TGS)
The part of the KDC that exchanges a ticket-granting ticket for a ticket to a particular service.
Ticket-granting ticket (TGT)
The guest card. It proves the user has already authenticated and is used to obtain service tickets.
Service ticket
The spa pass. It admits the user to one service, such as a file server.
Session key
A temporary key the KDC creates for two parties to share, sent inside a ticket and inside the reply to the user.
Authenticator
A short record of the user's name and the current time, encrypted with a session key. It proves the ticket is being presented now, by its owner.

Kerberos uses : the same key encrypts and . A user's key is derived from the password. The KDC listens on port 88. A port is a number that tells a server which of its programs a message is for, like a flat number added to a street address.

A Kerberos sign-in, step by step

A user signs in at the start of the day and later opens a shared folder. Six messages pass, in three exchanges.

  1. To the AS: the workstation sends the user's name and the current time encrypted with the user's key. This is pre-authentication: the AS answers only if it can decrypt the time and the time is within a few minutes of its own clock. The password itself is not sent.
  2. From the AS: it returns the TGT, encrypted with the TGS's own key so that the user cannot read or alter it. With it comes a session key for talking to the TGS, encrypted with the user's key. The workstation turns the typed password into that key. If it decrypts the reply, the password was right.
  3. To the TGS: when the user opens the shared folder, the workstation sends the TGT, an authenticator encrypted with the TGS session key, and the name of the file server.
  4. From the TGS: it decrypts the TGT with its own key, finds the session key and checks the authenticator and its time. It issues a service ticket encrypted with the file server's key. A new session key for the user and the file server comes with it.
  5. To the file server: the workstation presents the service ticket and a fresh authenticator.
  6. From the file server: it decrypts the ticket with its own key, checks the authenticator, and admits the user. It can reply with proof of its own identity, so that both sides are authenticated.

Kerberos trades one sign-in for service tickets

Kerberos trades one sign-in for service ticketsThe authentication service and the ticket-granting service sit inside the key distribution centre. The workstation sends a pre-authenticated request, receives a ticket-granting ticket, trades it for a service ticket and presents that to a file server outside the centre.Key distributioncentre (KDC)Authenticationservice (AS)Ticket-grantingservice (TGS)User'sworkstationno passwordis sentTicket-grantingticket (TGT)sealed for TGSServiceticketsealed for thefile serverFile servernever contacts KDCpre-authenticationwith authenticatorwith authenticatorKerberos trades one sign-in for service ticketsThe authentication service and the ticket-granting service sit inside the key distribution centre. The workstation sends a pre-authenticated request, receives a ticket-granting ticket, trades it for a service ticket and presents that to a file server outside the centre.Key distributioncentre (KDC)Authenticationservice (AS)Ticket-grantingservice (TGS)User'sworkstationno passwordis sentTicket-grantingticket (TGT)sealed for TGSServiceticketsealed for thefile serverFile servernever contacts KDC
Read this figure as text

Kerberos gives single sign-on with tickets. Six messages pass in three exchanges, the password never crosses the network, and the file server never talks to the key distribution centre during the visit.

  1. One: the workstation turns the typed password into the user's key and sends the user's name and the current time encrypted with that key. This is pre-authentication: the authentication service answers only if it can decrypt the time and the time is within a few minutes of its own clock.
  2. Two: the authentication service returns the ticket-granting ticket, encrypted with the ticket-granting service's own key so that the user cannot read or alter it, with a session key for the ticket-granting service encrypted with the user's key.
  3. Three: when the user opens a shared folder, the workstation sends the ticket-granting ticket, an authenticator encrypted with that session key, and the name of the file server to the ticket-granting service.
  4. Four: the ticket-granting service decrypts the ticket with its own key, checks the authenticator and its time, and returns a service ticket encrypted with the file server's key, with a new session key for the user and the file server.
  5. Five: the workstation presents the service ticket and a fresh authenticator to the file server, which decrypts the ticket with its own key, checks the authenticator and admits the user.
  6. Six: the file server can reply with proof of its own identity, so that both sides are authenticated. Exchanges three to five repeat for each new service, without the password.

The password never crosses the network, and the file server never talks to the KDC during the visit. The ticket, which only the KDC could have made, carries the KDC's word.

The two tickets compared
PointTicket-granting ticketService ticket
Issued byAuthentication serviceTicket-granting service
Encrypted withThe TGS's keyThe target service's key
Presented toThe TGSOne service, such as a file server
Used forGetting service tickets without the passwordGetting into that service

Why the clocks must agree, and what a realm is

Every authenticator carries a timestamp: the time it was made, read from the sender's clock. The receiver accepts it only if that time is close to its own clock. An authenticator copied off the network and sent again later is then stale and refused. This is how Kerberos defeats replay.

The permitted difference is the clock skew, typically five minutes. Clocks must be kept in step, usually by a time service that every computer follows.

In the opening case the Leeds laptops ran ten minutes behind. The laptops let staff sign in using a copy of their password check kept on each laptop, so sign-in looked fine. Every request they then sent to the KDC and the file server carried a time outside the skew and was refused.

A realm is the set of principals that one KDC is responsible for, usually one organisation or one part of it. Two realms can agree to trust each other by sharing an inter-realm key. A user in one realm can then obtain tickets for services in the other.

Where Kerberos is weak, and the attacks on it

KDC unavailable
No new tickets can be issued, so no new access starts. Organisations run several KDCs that hold copies of the same data.
KDC compromised
The KDC holds every principal's key. Whoever controls it can become anyone. It needs the strongest physical and logical protection in the organisation.
Password guessing
A user's key comes from a password. An attacker who captures a reply from the AS can try guesses offline until one decrypts it. Kerberos does not prevent this; strong passwords do. Accounts without pre-authentication let anyone request such a reply.
Pass the ticket
An attacker copies a user's tickets out of a workstation's memory and presents them from another computer. A stolen TGT opens any service the user may reach, and no password is needed while it lasts.
Golden ticket
An attacker who obtains the key the TGS uses to encrypt TGTs can forge a TGT for any user. The recovery is to change that key twice, letting the change reach every KDC in between, and to find how it was taken.
Silver ticket
An attacker who obtains one service's key forges service tickets for that service alone, without contacting the KDC.
Kerberoasting
Any user requests a service ticket, which is encrypted with the key of the account the service runs under, and guesses that account's password offline. Long random passwords on such accounts defeat it.

Time is a dependency too. An attacker who can shift a server's clock can stop Kerberos for everyone who relies on it.

SESAME is a European design of the 1990s that extended Kerberos. It added and carried each user's privileges in a signed Privilege Attribute . It appears in older study material as an alternative to Kerberos.

A question, worked through

A county council is moving 40 applications behind single sign-on, so that staff sign in once each morning with a password. The chief executive approves the project and asks the security manager which one control the council must add because of single sign-on.

Which control does single sign-on make MOST necessary?

  1. Phishing-resistant multi-factor authentication at the single sign-on
  2. Separate passwords kept for the five most sensitive applications
  3. Longer session lifetimes, so that staff sign in less often
  4. Activity logging inside each of the forty applications
Decide on your answer, then open the reasoning
  1. The question asks which control single sign-on itself makes necessary. Single sign-on puts 40 doors behind one sign-in, so a stolen password now opens all of them.
  2. Rule out c: longer sessions make a stolen session useful for longer. That increases the concentrated risk.
  3. Rule out d: logging records misuse after it happens. It is good practice with or without single sign-on, and it prevents nothing.
  4. Between a and b: separate passwords for five applications partly undo single sign-on and bring back password reuse. They leave the other 35 behind one password.
  5. Strengthening the one sign-in protects every application behind it, and a phishing-resistant method defeats the most common way passwords are stolen. Option a is the best answer.

Answer: A. Phishing-resistant multi-factor authentication at the single sign-on

Choosing between good answers

A question asks for the main disadvantage of single sign-on
choose the concentration of risk: one compromised credential opens everything, and the sign-on service is a single point of failure.
Users can sign in but cannot reach services, and the times on their machines differ
the cause is clock skew beyond the Kerberos limit, typically five minutes. Fix the time synchronisation.
A question asks which Kerberos part issues tickets for individual services
it is the ticket-granting service. The authentication service issues only the ticket-granting ticket.
An attacker uses stolen tickets without knowing any password
it is pass the ticket. A forged TGT made with the TGS's own key is a golden ticket.

Check your understanding

5 questions on this unit, easiest first. Confirm an answer to see the reasoning for it, then the right answer, the other options and the rule to reuse. Your answers are kept in this browser and feed readiness and review.

These questions are drafts that no named reviewer has approved yet.

Question 1 of 5

In Kerberos, which part exchanges a user's ticket-granting ticket for a ticket to one particular file server?

What to remember

  • Single sign-on means fewer, stronger, centrally controlled credentials, and concentrates risk on one credential and one service.
  • The KDC contains the authentication service, which issues the ticket-granting ticket, and the ticket-granting service, which issues service tickets.
  • Kerberos uses symmetric keys, never sends the password across the network, and listens on port 88.
  • Authenticators carry timestamps, so clocks must agree within the permitted skew, typically five minutes. This is Kerberos's defence against replay.
  • The KDC is a single point of failure and the most valuable target. Its compromise allows forged tickets for anyone.

Say it from memory

  1. What does single sign-on give, what risk does it concentrate, and how does Kerberos provide it?

    Single sign-on lets a user authenticate once and use many systems: fewer passwords, one place to disable access and set policy. It makes one credential and one service a single point of failure. In Kerberos the authentication service issues a ticket-granting ticket, the ticket-granting service exchanges it for service tickets, and timestamped authenticators stop replay.

    Read this part again

  2. What does the Kerberos key distribution centre hold and contain, and what kind of keys does Kerberos use?

    The KDC holds a secret key for every principal. It contains the authentication service, which checks the user and issues the ticket-granting ticket, and the ticket-granting service, which exchanges that for service tickets. Kerberos uses symmetric keys, with a user's key derived from the password. The KDC listens on port 88.

    Read this part again

  3. Whose key encrypts a ticket-granting ticket and whose encrypts a service ticket, and is the password sent?

    The TGT is encrypted with the TGS's own key, so the user cannot read or alter it. A service ticket is encrypted with the target service's key. The password never crosses the network; pre-authentication sends the current time encrypted with the user's key.

    Read this part again

  4. How does Kerberos defeat replay, what is the usual clock skew, and what is a realm?

    Every authenticator carries a timestamp, accepted only if close to the receiver's clock, so a copied authenticator sent later is stale and refused. The permitted clock skew is typically five minutes. A realm is the set of principals one KDC is responsible for; two realms can trust each other by sharing an inter-realm key.

    Read this part again

  5. How do pass the ticket, a golden ticket, a silver ticket and Kerberoasting differ?

    Pass the ticket copies a user's tickets from memory and presents them from another computer. A golden ticket forges a TGT for any user with the key the TGS uses to encrypt TGTs. A silver ticket forges service tickets for one service with that service's key. Kerberoasting requests a service ticket and guesses the service account's password offline.

    Read this part again

Sources