portfolio terminal
Identity & Access
Why Kerberos asks for proof before issuing a ticket
Why encrypted replies can still expose accounts to password guessing, and how pre-authentication changes what the KDC requires before issuing a ticket.
In my previous articles, I explorer how Kerberos tickets connect identities, services, and cryptographic keys. There is another design decision that deserves its own explanation: why does the KDS ask the client for proof before issuing a ticket, if the sensitive part of its reply is already encrypted?
At first, the requirement might seem unnecessary. If only the intended account can decrypt the protected response, why should it matter who requests it? The answer becomes clearer when we distinguish between using an encrypted response and attacking it. Someone who cannot immediately read protected data may still benefit from obtaining a copy.
This is where pre-authentication becomes important. To understand its purpose, it helps to begin with what happens when that requirement is absent.
Why an encrypted response can still be useful to an attacker
The base Kerberos protocol allows the KDC to return an AS-REP without first verifying that the requester controls the account named in the request. The client’s key protects the sensitive portion of that response. This prevents someone without the key from simply reading and using it, but it also gives the requester encrypted material associated with the account. RFC 4120 explicitly identifies the resulting exposure to password-based attacks.
Imagine someone requesting an initial response for Jamal’s account. They know his account name but do not know his password. If pre-authentication is not required, they may receive material against which they can test password guesses offline (AS-REP roasting). Each candidate password produces a candidate key, which can be checked against the captured response. Whether the attack succeeds depends on factors such as password strength and the cost of the cryptographic operations. Obtaining the response does not automatically reveal the password.
The offline part changes the security implications. Once the attacker has suitable material, individual guesses do not need to be submitted to the domain controller. Account lockout therefore does not stop those local guessing attempts, although the original request may still leave evidence. In Active Directory security discussions, collecting and attacking an AS reply for an account without required pre-authentication is known as AS-REP roasting.
This shows an important distinction: encryption can prevent immediate use of information while still leaving an opportunity to test guesses about the secret protecting it. A response can remain unreadable and still be valuable to an attacker. That is why “the response is encrypted” does not completely answer the question of whether it should be issued to an unauthenticated requester.
Requiring pre-authentication changes the condition for obtaining that response. The requester must first supply evidence acceptable to the KDC. Knowing which account to name is no longer sufficient. This places a requirement earlier in the exchange, before the KDC returns the successful AS reply.
What the KDC asks the client to prove
Consider Jamal’s computer making an initial request without pre-authentication data. If the KDC requires it, the response is KDC_ERR_PREAUTH_REQUIRED, accompanied by information that helps the client choose an appropriate method. This can be a normal step towards successful authentication. A client that already knows what to send can include the evidence immediately, avoiding that preliminary exchange.
The difference between “required” and “failed” matters here. A request without the required evidence has not necessarily supplied an incorrect password. The KDC is asking the client to continue with additional information. Interpreting every message labelled as an error as a failed sign-in would miss the role that these messages play in the protocol.
For encrypted-timestamp pre-authentication, the client supplies PA-ENC-TIMESTAMP: its current time, optionally including microseconds, encrypted with its account key. The timestamp originates with the client. It is not a random challenge generated by the KDC and returned for the client to encrypt.
The KDC uses the corresponding account key to validate the encrypted timestamp and checks whether the time is acceptable. These checks address related but separate questions: was the evidence produced using the relevant key, and is its timestamp sufficiently recent? A clock outside the permitted range can therefore prevent this method from succeeding even when the correct account secret is available.
Freshness should not be confused with a guarantee that every request is unique. Kerberos must accommodate retransmissions. RFC 4120 requires a KDC receiving an identical, recently successful AS request to return an AS reply rather than reject it as a replay. A valid timestamp consequently should not be described as a single-use token that makes all repetition impossible.
There is also a limit to what evidence of key possession tells us. If someone steals Jamal’s account key, they may be able to construct the same evidence his computer would produce. My interpretation of a successful check must therefore remain precise: the cryptographic requirement was satisfied. It does not independently establish who was sitting at the keyboard, why the request was made, or whether the endpoint was under someone else’s control.
Encrypted-timestamp pre-authentication also does not remove every opportunity for offline password guessing. An attacker who can observe a legitimate exchange may obtain attackable ciphertext from that exchange. MIT’s documentation explicitly distinguishes the passive observation scenario from requesting material for an account that does not require pre-authentication. The requirement changes what the attacker must obtain or observe; it does not make password strength irrelevant.
This leaves a more useful question than whether pre-authentication is enabled: which security properties does the chosen method provide? Requiring evidence is a policy decision. The mechanism determines how that evidence is constructed and protected. Two environments can both require pre-authentication while offering different resistance to interception or manipulation. For a security assessment, recording the setting alone therefore leaves an important part of the explanation unfinished.
The attacker’s position matters when making that assessment. Someone who can only submit requests has different opportunities from someone who can observe legitimate traffic. An attacker who can modify messages has additional possibilities. A useful way to evaluate a method is to consider these capabilities separately, then identify which information and trust relationships each attack would require. This avoids treating protection against one scenario as a guarantee against every scenario.
RFC 6113 introduces Flexible Authentication Secure Tunneling (FAST) to protect pre-authentication conversations. FAST separates protection of the exchange from the mechanism that authenticates the client inside it. The client authentication mechanism still has work to do; placing a conversation inside FAST does not itself prove the user’s identity. Its protection also needs a cryptographic foundation, called armor. One possible foundation is a ticket obtained using the computer’s own credentials. This introduces an additional trust relationship into the analysis, beyond the user’s password alone.
For me, this changes what a meaningful description of a deployment should contain. I would want to know which methods are accepted, whether the intended protection is actually used, and what happens when a client cannot use it. Supporting a stronger method and requiring it are different deployment choices. If another permitted path provides weaker properties, that path belongs in the assessment too. The effective protection depends on the authentication paths the environment accepts, so a successful login alone does not tell us which guarantees were established.
Essentially, the value of this design becomes clearer once those boundaries are explicit. Pre-authentication addresses the problem of issuing a successful response before the requester has supplied acceptable evidence. Encrypted timestamps provide one way to meet that requirement, with specific assumptions and limitations. Understanding the protection means knowing both what the KDC verifies and which risks remain after that verification succeeds.
Sources
https://www.rfc-editor.org/rfc/rfc4120.html#section-3.1
https://web.mit.edu/kerberos/krb5-latest/doc/admin/dictionary.html
https://attack.mitre.org/techniques/T1558/004/
https://www.rfc-editor.org/rfc/rfc6113.html#section-2
https://www.rfc-editor.org/rfc/rfc4120.html#section-5.2.7.2
https://learn.microsoft.com/en-us/windows/win32/secauthn/authentication-service-exchange
https://www.rfc-editor.org/rfc/rfc4120.html#section-3.1.2
https://web.mit.edu/kerberos/krb5-latest/doc/admin/dictionary.html