1. Home
  2. Explore
  3. Computer Science
  4. Kerberos Network Authentication

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Kerberos Network Authentication

  • 50Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Kerberos Model

What problem is Kerberos designed to solve in a distributed network?

50 questions

  1. 1

    What problem is Kerberos designed to solve in a distributed network?

    Model answer

    It lets users and services authenticate one another across a network without relying on the network itself to be trustworthy.

    Explanation

    Kerberos was designed for systems with many workstations and servers, where users need access to services such as file, mail, and print servers.

  2. 2

    What central role does the Kerberos server, or KDC, play?

    Model answer

    The Key Distribution Center stores shared keys for principals and issues tickets that help clients and services authenticate and communicate securely.

    Explanation

    The KDC maintains a name-to-key database and provides Kerberos and Ticket Granting Service interfaces.

  3. 3

    Which parties must be trusted in the Kerberos model, and why?

    Model answer

    The KDC and a user's workstation must be trusted. The KDC controls authentication, while a compromised workstation can capture passwords or tickets and act as the user.

    Explanation

    Kerberos protects network exchanges, but it cannot protect a password entered on a malicious workstation.

  4. 4

    Do services generally need to trust one another in Kerberos?

    Model answer

    No. Services need not trust one another unless administrators create additional trust relationships, which could let one service misuse access to another.

    Explanation

    For example, giving a mail server backend access to a file server creates a relationship that must be carefully controlled.

  5. 5

    What shared keys does the KDC maintain for a client and a service?

    Model answer

    The KDC shares a client key with the client and a service key with the service; each key should be known only to the KDC and its corresponding principal.

    Explanation

    These long-term shared keys allow the KDC to issue tickets that the client or service can use without sending the keys over the network.

  6. 6

    Why does Kerberos use both an initial authentication interface and a Ticket Granting Service interface?

    Model answer

    The client uses its password-derived key only to obtain an initial ticket, then uses that ticket to request later tickets without keeping the password-derived key.

    Explanation

    This limits the consequences of a later ticket theft: the ticket has a finite lifetime, whereas exposure of the user's long-term key can be more serious.

  7. 7

    How does Kerberos authentication differ from authorization?

    Model answer

    Authentication identifies the principal; authorization decides what that principal may do. Kerberos supports authentication, while each service typically implements authorization.

    Explanation

    A service can use the authenticated principal name with its own access-control lists, groups, or other permission rules.

  8. 8

    Why might a client need to authenticate a service as well as authenticate itself to that service?

    Model answer

    The client needs confidence that it is communicating with the intended service, not an impostor that could provide misleading information or capture data.

    Explanation

    For example, a fake file server might return an altered file while appearing to be the expected server.

  9. 9

    What is a Kerberos principal?

    Model answer

    A principal is a string name representing an entity, such as a user or service, in a Kerberos realm.

    Explanation

    The KDC associates each principal name with the key and account information for that entity.

  10. 10

    What is an instance in Kerberos naming, and what might it be used for?

    Model answer

    An instance is an additional name component that can distinguish a related but separate principal, such as a user's account for especially sensitive activity.

    Explanation

    Separate principals can have separate keys or passwords, allowing different identities to be used for different purposes.

  11. 11

    Where might a client learn or encounter principal names outside the KDC?

    Model answer

    Users may enter their own principal names, while applications and services may use principal names in connection requests or access-control rules.

    Explanation

    Kerberos maps keys to names, but other parts of the system use those names to select services and determine permissions.

  12. 12

    How can a client know which service principal it should expect when connecting to a named host?

    Model answer

    The client can derive the expected service principal from the name the user requested; for example, connecting to host foo using SSH may imply expecting the principal rcmd.foo.

    Explanation

    The client should abort if the authenticated service principal does not match the expected one, rather than silently connecting to a different service.

  13. 13

    Why can reusing a user's principal name give a new user access to an old user's data?

    Model answer

    Services may retain permissions associated with the old name. If the name is reassigned, the new principal can match those old access-control entries.

    Explanation

    Removing a principal from the KDC does not automatically remove every occurrence of its name from service access-control lists.

  14. 14

    Why should service principal names also be reused cautiously?

    Model answer

    Clients may continue to expect a known service principal to identify a particular service, so reassigning it could let a different service impersonate the expected one.

    Explanation

    The name-to-key association is important to service authentication, and other systems may retain expectations about a principal.

  15. 15

    What information is contained in a Kerberos ticket?

    Model answer

    A ticket identifies the client and service, includes the client's address and timing information, and carries a session key shared by the client and service.

    Explanation

    The service's long-term key encrypts the ticket so that the service can recover and verify its contents.

  16. 16

    What information does an authenticator contain, and which key protects it?

    Model answer

    An authenticator contains the client's name, address, and a timestamp; it is encrypted with the session key shared by the client and service.

    Explanation

    The client can create a fresh authenticator for a request because it knows that session key.

  17. 17

    How is a user's Kerberos key derived from a password?

    Model answer

    The password is processed by a password-based key derivation function to produce the key used by Kerberos.

    Explanation

    The KDC stores the corresponding key, while the user or client derives it from the password when needed.

  18. 18

    What does a client send to obtain its initial ticket from the Kerberos interface?

    Model answer

    It sends its principal name and the principal name of the service for which it wants a ticket, commonly the Ticket Granting Service.

    Explanation

    The request does not need to include the user's password or password-derived key.

  19. 19

    What does the KDC return in response to an initial ticket request?

    Model answer

    It returns a ticket encrypted with the target service's key and a copy of the client-service session key encrypted with the client's key.

    Explanation

    The client can recover its session key, while only the target service can decrypt its ticket and recover the matching copy.

  20. 20

    How can the initial Kerberos exchange avoid sending the user's password over the network?

    Model answer

    The client uses its password-derived key to decrypt the KDC's reply rather than sending the password itself.

    Explanation

    This prevents a passive listener from simply collecting the password in the request, though it does not prevent all password attacks.

  21. 21

    Why does the initial Kerberos exchange permit offline password guessing?

    Model answer

    An attacker can request a reply encrypted with a user's key and test candidate passwords offline by attempting to decrypt it.

    Explanation

    Because symmetric decryption is fast, an attacker can try many guesses without sending each guess to the KDC.

  22. 22

    What approaches can make password guessing against an initial Kerberos exchange harder?

    Model answer

    A slow password-based key derivation function, salting, and a challenge-response exchange that requires guesses to be checked online can raise the cost of guessing.

    Explanation

    Online checks can be rate-limited, whereas offline guesses against a captured encrypted reply cannot be stopped by limiting KDC requests.

  23. 23

    Why is successful decryption alone not a sound guarantee that a Kerberos message is valid?

    Model answer

    Encryption alone does not guarantee message integrity or authenticity; a message may be altered, and decryption does not prove it came from the claimed sender.

    Explanation

    Kerberos should authenticate messages separately, for example with a keyed integrity check, in addition to encrypting them.

  24. 24

    Why does the KDC provide the client-service session key both inside the ticket and separately?

    Model answer

    The client needs a copy it can decrypt, while the service needs a copy inside the ticket that only it can decrypt.

    Explanation

    The client passes the encrypted ticket to the service, allowing both parties to obtain the same session key without the KDC contacting the service directly.

  25. 25

    Why is a ticket for the Ticket Granting Service useful after the client has logged in?

    Model answer

    It lets the client request tickets for other services without reusing its long-term client key for every request.

    Explanation

    The client can discard its password-derived key after obtaining the initial ticket and retain the time-limited Ticket Granting Service ticket and session key.

  26. 26

    What is the purpose of the client and service names inside a ticket?

    Model answer

    The client name identifies who the ticket represents, and the service name ensures the ticket is intended for the service that receives it.

    Explanation

    Including the service name avoids relying only on whether a ticket happens to decrypt under a particular key.

  27. 27

    How does a client request a ticket for a service through the Ticket Granting Service?

    Model answer

    It sends the requested service principal, its existing Ticket Granting Service ticket, and an authenticator encrypted with the client-TGS session key.

    Explanation

    The TGS uses its own key to open its ticket and the session key in that ticket to check the authenticator.

  28. 28

    How does the Ticket Granting Service authenticate a client requesting another ticket?

    Model answer

    It decrypts the client's TGS ticket with the TGS key, obtains the client-TGS session key, and uses that key to verify the authenticator.

    Explanation

    The ticket and authenticator together let the TGS check the client's identity and the freshness of the request.

  29. 29

    What does the Ticket Granting Service return when a request is accepted?

    Model answer

    It returns a ticket for the requested service, encrypted with that service's key, and the client-service session key encrypted with the client-TGS session key.

    Explanation

    The client can recover the session key using its TGS session key, while the service obtains its copy by decrypting the ticket.

  30. 30

    How does a service learn the session key and identity of a client it has not previously encountered?

    Model answer

    The client presents a ticket encrypted with the service's long-term key; the service decrypts it to obtain the client's identity and the session key.

    Explanation

    The ticket carries the information the KDC prepared for both parties, so the service need not have contacted the client beforehand.

  31. 31

    How does a client use a ticket to make an authenticated request to an application service?

    Model answer

    It sends the service its ticket and a request protected with the client-service session key, typically accompanied by an authenticator.

    Explanation

    The service decrypts the ticket with its own key, obtains the session key, and uses that key to check the request.

  32. 32

    What is the purpose of a ticket's timestamp and lifetime?

    Model answer

    They limit the period during which the ticket is accepted, bounding the time an attacker can use a stolen ticket.

    Explanation

    Servers reject tickets that are too early or expired, so Kerberos requires their clocks to be reasonably synchronized.

  33. 33

    Why are client IP addresses included in tickets in the described Kerberos design?

    Model answer

    The design used the address to restrict a ticket to requests coming from the address where the client obtained it.

    Explanation

    This was intended to reduce ticket theft, but IP addresses are not a dependable substitute for cryptographic security and are largely optional in later Kerberos versions.

  34. 34

    How are authenticators intended to reduce replay attacks?

    Model answer

    A client creates a fresh, timestamped authenticator for a request; a server can reject old authenticators or ones it has already seen.

    Explanation

    Servers can keep a short-lived cache of authenticators to detect duplicate requests.

  35. 35

    Why must an authenticator be bound to the request it accompanies?

    Model answer

    Without that binding, an attacker can pair a fresh authenticator with a previously captured request and replay the old operation.

    Explanation

    Binding the authenticator to the request contents prevents a valid authenticator from being substituted alongside a different command.

  36. 36

    What is a reflection attack in the context of Kerberos application messages?

    Model answer

    It occurs when an attacker reuses a message intended in one direction as if it were a valid message in the opposite direction.

    Explanation

    If client-to-server and server-to-client messages use the same key and lack clear direction distinctions, a server's response may be replayed as a request.

  37. 37

    How can separate directional keys prevent reflection attacks?

    Model answer

    Use one key for client-to-server messages and a different key for server-to-client messages, so a message from one direction cannot be accepted as one from the other.

    Explanation

    Kerberos 5 uses separate keys for the two directions of a connection.

  38. 38

    Why should a Kerberos protocol support multiple encryption algorithms rather than mandate one fixed algorithm?

    Model answer

    Algorithm flexibility allows systems to replace an algorithm when it becomes weak or obsolete without redesigning the entire protocol.

    Explanation

    Kerberos 4 built in DES, whose short key made exhaustive search practical; Kerberos 5 supports multiple algorithms, including AES.

  39. 39

    Why is compromising a KDC especially serious?

    Model answer

    An attacker controlling the KDC can issue tickets for arbitrary services and identities, undermining authentication throughout the realm.

    Explanation

    The KDC's database and ticket-issuing capability make it a critical security target, so its software, access, and physical security matter.

  40. 40

    What happens to existing service connections if the KDC becomes unavailable?

    Model answer

    Existing connections and valid tickets can generally continue to work, but users cannot log in or obtain new tickets.

    Explanation

    Application traffic does not pass through the KDC, so it is not on the critical path for already established access.

  41. 41

    How can read-only KDC replicas improve availability?

    Model answer

    Replicas can answer login and ticket requests when the master is unavailable, though they do not accept database updates.

    Explanation

    A master retains the authoritative database, while replicas provide service from copies of it.

  42. 42

    Why is changing a compromised service's long-term key necessary during recovery?

    Model answer

    Anyone who knows the old key can decrypt tickets for that service and create new valid-looking tickets, so the replacement service must receive a new key.

    Explanation

    Patching the service while retaining its compromised key does not prevent the attacker from impersonating clients to it.

  43. 43

    Why may recovering a compromised principal require an out-of-band process?

    Model answer

    If an attacker controls the principal's key, Kerberos cannot distinguish the attacker from the legitimate key holder; a trusted administrator must verify the owner independently and install a new key.

    Explanation

    Account registration and recovery therefore depend on trusted procedures outside the ordinary Kerberos exchange.

  44. 44

    How does a user change a Kerberos password?

    Model answer

    The client obtains an authorized ticket for the password-changing service and sends the new password protected with the session key.

    Explanation

    If the request is accepted, the KDC updates the user's stored key to correspond to the new password.

  45. 45

    Why does the password-changing service require a ticket obtained directly from the Kerberos interface rather than from the TGS?

    Model answer

    A directly obtained ticket indicates that the client recently proved knowledge of its long-term key; a TGS ticket alone might have been stolen after login.

    Explanation

    A ticket flag can distinguish tickets issued by the initial Kerberos interface from those issued by the TGS.

  46. 46

    Does the user send the old password directly to the password-changing service?

    Model answer

    No. The old password-derived key is used to decrypt the initial Kerberos reply, and the client sends the new password encrypted with the password service session key.

    Explanation

    The service relies on the qualifying ticket to establish that the client recently knew the old key.

  47. 47

    What can go wrong if a Kerberos password-change request is encrypted but not integrity-protected?

    Model answer

    An attacker may alter the encrypted request so that it decrypts to a different password, potentially changing the account key and locking out the user.

    Explanation

    Encryption without authentication does not reliably detect tampering, which is why messages need integrity protection as well.

  48. 48

    Why can revealing an old password expose a newer password in the described Kerberos 4 password-change protocol?

    Model answer

    An attacker who recorded earlier exchanges can use the old key to decrypt a captured password-change exchange, recover its session key and new password, then repeat this with later exchanges.

    Explanation

    This creates a chain of recorded, encrypted password changes that can be uncovered once an earlier password is disclosed.

  49. 49

    How does Diffie-Hellman key exchange help prevent an observer from recovering a password-change session key later?

    Model answer

    The client and server exchange GXG^XGX and GYG^YGY, then independently derive GXYG^{XY}GXY; an observer who sees only the exchanged values is expected to find deriving the shared secret computationally difficult.

    Explanation

    The derived secret can protect the new password without making that password recoverable merely from a recorded exchange and a later disclosure of the old password.

  50. 50

    What is the discrete logarithm problem's relevance to Diffie-Hellman?

    Model answer

    It is a mathematical hardness assumption that helps prevent an observer from recovering the private exponents, and thus the shared secret, from the exchanged public values.

    Explanation

    In the described exchange, the public values are GXG^XGX and GYG^YGY, while the client and server derive GXYG^{XY}GXY privately.

1 of 50
Question 1 of 50

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent