Skip to content
AdminKit

Kerberos

What is Kerberos?

Kerberos is a network authentication protocol in which a trusted Key Distribution Center (KDC) issues time-limited tickets, so users prove their identity to services without sending a password across the network. AdminKit explains how Kerberos tickets work, why KDCs listen on TCP and UDP port 88, and how attackers abuse weak service-account tickets.

By AdminKit team, Netbase JSC · Updated

The MIT Kerberos project page describes Kerberos as a network authentication protocol designed to provide strong authentication for client/server applications using secret-key cryptography, with a free implementation available from MIT. Version 5 is specified in RFC 4120, published in July 2005, and Windows Server implements version 5, with Microsoft’s own extensions, for authentication in Active Directory domains.

How does Kerberos authentication work?

Three parties take part: the client acting for a user or computer, the service it wants to use, and a Key Distribution Center (KDC) that both trust. Microsoft’s Kerberos authentication overview walks through the steps:

1. Client -> KDC      prove identity, receive a
                      ticket-granting ticket (TGT)
2. Client -> KDC      present TGT, request a
                      service ticket for one service
3. Client -> service  present the service ticket

The service can verify the ticket without contacting a domain controller for every connection, and the client reuses its TGT until it expires. In Windows the KDC runs on every domain controller and uses Active Directory as its account database, which is why Kerberos and LDAP usually sit side by side.

Two properties set Kerberos apart from NTLM. Microsoft notes that Kerberos gives mutual authentication, so the client can verify the server too, while NTLM was designed for networks where servers were assumed to be genuine. And because timestamps limit replay, RFC 4120 requires loosely synchronized clocks, typically within about 5 minutes, which makes a reliable time source such as NTP part of a working Kerberos setup.

Which port does Kerberos use?

RFC 4120 section 7.2 says KDCs must accept requests over both UDP and TCP and should listen on port 88 for each. Clients may try UDP first; if a reply is too large for a datagram, the KDC returns an error that forces a retry over TCP. Clients find KDCs through DNS SRV records such as this example from the RFC:

_kerberos._tcp.EXAMPLE.COM. IN SRV 0 0 88 kdc1.example.com.

A KDC is the heart of a domain and belongs on the internal network, not the internet. AdminKit’s port check probes a fixed list of nine TCP ports on your own public IP and does not test port 88 or any UDP port.

How do attackers abuse Kerberos tickets?

MITRE ATT&CK technique T1558.003, Kerberoasting, describes an adversary with any valid TGT requesting service tickets for accounts that have a service principal name. Parts of those tickets may be encrypted with RC4 using the service account’s password hash, so they can be cracked offline. MITRE’s mitigations are to enable AES Kerberos encryption instead of RC4 where possible and to give service accounts long, complex passwords, ideally 25 or more characters, or use Group Managed Service Accounts.

Kerberos is part of AdminKit’s machine protocols cluster; the full AdminKit glossary lists other related terms.

Frequently asked questions

Which port does Kerberos use?

RFC 4120 says KDCs must accept both UDP and TCP requests and should listen on port 88 for each, unless configured for another port. A reply too large for UDP makes the client retry over TCP.

What is a ticket-granting ticket?

The ticket-granting ticket (TGT) is the credential a client receives from the KDC at sign-in. The client keeps it in a cache and presents it to get service tickets for each service, so the user does not type the password again until the TGT expires.

Why does Kerberos need synchronized clocks?

Tickets and authenticators carry timestamps that limit replay. RFC 4120 requires hosts to have loosely synchronized clocks, typically within about 5 minutes, and a request outside the allowed clock skew is rejected.

What is Kerberoasting?

MITRE ATT&CK describes Kerberoasting as requesting service tickets for accounts with a service principal name and cracking them offline, which works best when tickets are RC4-encrypted and service-account passwords are weak. MITRE's mitigations include AES encryption and long service-account passwords.