Kerberos is a network authentication protocol that uses tickets to allow nodes communicating over a non-secure network to prove their identity to one another in a secure manner. It was developed in the 1980s by the Massachusetts Institute of Technology (MIT) as a method of authenticating users on a network without sending passwords in plain text.
Here's a simplified explanation of how Kerberos works:
Key Distribution Center (KDC): The Kerberos system relies on a trusted third party called the Key Distribution Center (KDC). The KDC consists of two components: the Authentication Server (AS) and the Ticket Granting Server (TGS).
User Authentication: When a user wants to access a service, they first contact the Authentication Server (AS) with their username and password. The AS verifies the user's credentials and generates a session key for that user. This session key is encrypted using the user's password (which is known only to the user and the KDC) and sent back to the user. This ensures that even if the communication is intercepted, the session key cannot be deciphered without the user's password.
Ticket Granting Service (TGS): The user then contacts the Ticket Granting Service (TGS) using the session key received from the AS. The TGS grants a ticket, called a Ticket Granting Ticket (TGT), which contains information about the user and the session key. This TGT is encrypted using the KDC's key, ensuring that only the KDC can decrypt it.
Service Request: When the user wants to access a specific service, they present the TGT to the TGS. The TGS verifies the TGT and generates a new session key for the requested service. This session key is encrypted using the service's key and sent back to the user along with a ticket for the service, called a Service Ticket (ST). Both the ST and the session key are encrypted using the user's session key.
Service Access: The user presents the Service Ticket and the session key to the service. The service can verify the authenticity of the Service Ticket using its own key and establish a secure session with the user using the shared session key.
Secure Communication: Once the service has verified the Service Ticket, it can use the session key to securely communicate with the user without needing to exchange any further authentication information.
Kerberos provides mutual authentication, meaning that both parties in a communication can be sure of each other's identities. It also ensures that passwords are never transmitted over the network, reducing the risk of eavesdropping attacks. Additionally, the use of session keys means that even if an attacker manages to intercept a session, they cannot use that information to impersonate the user in future sessions.
“Explain how kerberos works.” Conversation with qwen2-72b-instruct, from the LMArena Human Preference 100K dataset. The Chat Archive, 2026. https://thechatarchive.com/c/01m8507rk6nyw73p877z8rtzre