Docsity

Kerberos - Computer and Network Security - Lecture Slides, Slides of Computer Science

Partial preview of the text

Download Kerberos - Computer and Network Security - Lecture Slides and more Slides Computer Science in PDF only on Docsity!

Part 3  Protocols 1

Kerberos

Part 3  Protocols 2

Kerberos

 In Greek mythology, Kerberos is 3-headed dog that guards entrance to Hades o “Wouldn’t it make more sense to guard the exit?”

 In security, Kerberos is an authentication system based on symmetric key crypto o Originated at MIT o Based on work by Needham and Schroeder o Relies on a trusted third party (TTP)

Part 3  Protocols 4

Kerberos KDC

 Kerberos Key Distribution Center or KDC

o Acts as a TTP o TTP must not be compromised! o KDC shares symmetric key KA with Alice, key KB with Bob, key KC with Carol, etc. o Master key KKDC known only to KDC o KDC enables authentication and session keys o Keys for confidentiality and integrity o In practice, the crypto algorithm used is DES

Part 3  Protocols 5

Kerberos Tickets

 KDC issues a ticket containing info needed to access a network resource

 KDC also issues ticket-granting tickets or TGTs that are used to obtain tickets

 Each TGT contains

o Session key o User’s ID o Expiration time

 Every TGT is encrypted with KKDC

o TGT can only be read by the KDC

Part 3  Protocols 7

Kerberized Login

Alice

Alice’s

Alice wants

password

a TGT E(SA,TGT,KA)

KDC

 Key KA derived from Alice’s password  KDC creates session key SA  Workstation decrypts SA, TGT, forgets KA  TGT = E(“Alice”,SA, KKDC)

Computer

Part 3  Protocols 8

Alice Requests Ticket to Bob

Alice

Talk to Bob

I want to talk to Bob REQUEST REPLY KDC  REQUEST = (TGT, authenticator) where authenticator = E(timestamp,SA)  REPLY = E(“Bob”,KAB,ticket to Bob, SA)  ticket to Bob = E(“Alice”,KAB,KB)  KDC gets SA from TGT to verify timestamp

Computer

Part 3  Protocols 10

Kerberos

 Session key SA used for authentication

 Can also be used for confidentiality/integrity

 Timestamps used for mutual authentication

 Recall that timestamps reduce number of messages o Acts like a nonce that is known to both sides o Note: time is a security-critical parameter!

Part 3  Protocols 11

Kerberos Questions

 When Alice logs in, KDC sends E(SA,TGT,KA) where TGT = E(“Alice”,SA,KKDC) Q: Why is TGT encrypted with KA? A: Extra work and no added security!

 In Alice’s Kerberized login to Bob, why can Alice remain anonymous?

 Why is “ticket to Bob” sent to Alice?

 Where is replay prevention in Kerberos?

Part 3  Protocols 13

Kerberos Keys

 In Kerberos, KA = h(Alice’s password)

 Could instead generate random KA and o Compute Kh = h(Alice’s password) o And workstation stores E(KA, Kh)

 Then KA need not change (on workstation or KDC) when Alice changes her password

 But E(KA, Kh) subject to password guessing

 This alternative approach is often used in applications (but not in Kerberos)