Key Distribution and User Authentication Flashcards
What is a KDC?
A Key Distribution Centre is a trusted third party who will help us to distribute symmetric keys. There will usually be a permanent key between the KDC and individual users.
Why is key distribution necessary?
We need to be able to make sure that both participants are using the same symmetric key, but also ensure that nobody else knows this key.
What is authentication by nonce?
This is used to prevent replay attacks. Essentially, when Alice introduces herself to Bob, he sends back a challenge nonce. Alice will encrypt this nonce with the shared secret key and send it back. Bob can then decrypt this and prove that Alice knows the secret key.
Note that a current timestamp could be used instead of a nonce, meaning only Alice would need to send.
What is a reflection attack?
The attacker sends a nonce RA, and gets a reply back with RB, K(RA). The attacker then pretends to be Alice, and sends RB to Bob. Bob will reply with RC,K(RB). Then, the attacker can resume the initial handshake, by sending K(RB) back to Bob.
What is mutual authentication via nonce?
Alice sends RA, Bob replies with RB, K(RA), Alice replies with K(RB).
True or false, Alice has a shared secret key with her KDC, and so does Bob?
True, if they both use the same KDC.
How does a KDC request work?
Alice to KDC: Ka-k(A, B)
KDC generates ticket: Kb-k(A, Ka-b)
KDC to Alice: Ka-k(Ka-b, ticket)
Alice to Bob: ticket
How does Needham-Schroeder protect against replay attacks?
It uses nonces.
What problem does Kerberos address?
How do we restrict access to servers on a distributed system?
True or false, Kerberos uses symmetric encryption for bulk data transfer, and asymmetric encryption for the exchange of keys?
False, it only uses symmetric encryption.
What are the different servers involved in Kerberos?
Authentication Server, Ticket Granting Server, Server which we are trying to access.
How many times do you need to log in with Kerberos?
Only once. The Ticket Granting Ticket provided by the authentication server will last a day usually.
How does the Authentication Server in Kerberos send the user’s password?
It does not. The authentication server will use the user’s password to encrypt a session key for the TGS, the ID of the TGS, the TGS ticket itself, and a few other bits of information.
In Kerberos, what is an authenticator?
An authenticator contains the ID of the user, their address, and a timestamp, encrypted with the session key given by the Authentication server or TGS.
What is the purpose of the authentication server?
To provide users with Ticket Granting Tickets.