Presentation is loading. Please wait.

Presentation is loading. Please wait.

The Authentication Service Kerberos and Its Limitations.

Similar presentations


Presentation on theme: "The Authentication Service Kerberos and Its Limitations."— Presentation transcript:

1 The Authentication Service Kerberos and Its Limitations

2 OUTLINE n What is Kerberos ? n How does it work ? n Kerberos infrastructure and Cross-realm Authentication n Kerberos Encryption n Attacks on Kerberos ? n Limitations of Kerberos n Future Work

3 Definition : In Greek mythology, Kerberos was a three headed dog that guards the entrance to Hades. An authentication service developed as part of Project Athena at MIT to enable network applications to securely identify their peers. It was intended to have three components to guard a networks gate: authentication, accounting, and audit. The last two were never implemented. Versions 1 through 3 were internal development versions. Version 4 is the original Kerberos. Motivation : In an open environment, in which network connections 1. What Is Kerberos ?

4 to other machines are supported, there is a need to protect user information and resources stored at the server. To do this : Require the user to prove identity for each service invoked. Also require that servers prove their identity to clients. These are supported by Kerberos. It should be : Secure: opponent does not find it to be the weak link Reliable: it should employ a distributed server architecture, with one system able to back up another. Transparent : user should not be aware that authentication is taking place. Scalable : supporting large numbers of clients and servers.

5 Kerberos AuthenticationServer Ticket - granting Server (TGS) Request ticket-granting ticket Ticket + session key Request Service Provide server authenticator Request service-granting ticket Ticket+session key Once per user logon session Once per type of service Once per service session (1) (2) (3) (4) (5) (6)

6 1. User logs on to workstation and request service on host. 2. AS verifies users access rights in database, creates TGT and session key. Results are encrypted using key derived from users password. 3. Workstation prompts user for password and uses pass- word to decrypt incoming message, then sends ticket and authenticator that contains users name, network address, and time to TGS. 4. TGS decrypts ticket and authenticator, verifies request, then creates ticket for requested server. 5. Workstation sends ticket and authenticator to server. 6. Server verifies that ticket and authenticator match, then grants access to service. If mutual authentication is required, server returns an authenticator.

7 How does it work ? 1. C -----> AS : ID C, P C, ID V 2. AS----> C : Ticket 3. C------> ID C, Ticket Ticket = E Kv [ ID C, AD C, ID V ] Where C = Client AS = Authentication Server V = Server ID C = Identifier of user on C ID V = Identifier of V P C = Password of user on C AD C = Network address of C K V = Secret encrytion key shared by AS and V

8 A more secure Authentication The first scenario does not solve the followings: 1. The number of times that a user has to enter a password. 2. It involved a plaintext transmission of the password (mess1) To solve these problems, we introduce ticket-granting server. The new scenario: Once per user logon session : 1. C -----> AS : ID C, ID tgs 2. AS----> C : E kc [ Ticket tgs ] Once per type of service: 3. C------> TGS : ID C, ID V, Ticket tgs 4. TGS--> C : Ticket V

9 Once per service session : 5. C------>V : ID C, Ticket V Ticket tgs = E Ktgs [ID C, AD C, ID tgs, TS 1, Lifetime 1 ] Ticket V = E Kv [ ID C, AD C, ID V, TS 2, Lifetime 2 ] TS = Timestamp This new scenario satisfies the two requirements of only one password query per user session and protection of the user password. We still have two additional problems : 1. The lifetime associated with the ticket-granting ticket. If it is short (e.g., minutes), the user will be repeatedly

10 asked for a password. If it is long, then an opponent has a greater opportunity for replay. 2. There might be a need for server to authenticate itself to users. Solution : Session Keys The threat : Opponent will steal the ticket and use it before it expires. The solution : AS provide both the C and TGS with a secret piece of information in a secure manner. Then, C can prove its ID to the TGS by revealing the secret. An encryption key ise used as the secure info., this is referred to as a session key. So the actual Kerberos protocol :

11 Summary of Kerberos Version 4 Message Exchanges a) Authentication Service Exchange : to obtain TGT C > AS : ID C, ID tgs,TS 1 2. AS-----> C : E Kc [ K C,tgs, ID tgs,TS 2, Lifetime 2, Ticket tgs ] Ticket tgs = E Ktgs [ K C,tgs, ID C, AD C, ID tgs,TS 2, Lifetime 2 ] b) Ticket-Granting Service Exchange : to obtain service- granting ticket C > TGS : ID V, Ticket tgs,Authenticator C 4. TGS---> C : E Kc [ K C,V, ID V,TS 4, Ticket V ] Ticket tgs = E Ktgs [ K C,tgs, ID C, AD C, ID tgs,TS 2, Lifetime 2 ] Ticket V = E Kv [ K C,V, ID C, AD C, ID V,TS 4, Lifetime 4 ]

12 Authenticator C = E Kc,tgs [ID C, AD C, TS 3 ] c) Client/Server Authentication Exchange : to obtain service C------> TGS : Ticket V, Authenticator C 6. K------> C : E Kc,v [ TS 5 +1] (for mutual authentication) Ticket V = E Kv [ K C,V, ID C, AD C, ID V,TS 4, Lifetime 4 ] Authenticator C = E Kc,v [ID C, AD C, TS 5 ]

13 Kerberos Realms A full-service Kerberos environment consisting of a Kerberos server, a number of clients, and a number of application servers, requires the following : 1. The Kerberos server must have the UID and hashed pass- word of all participating users in its database. All users are registered with the Kerberos server. 2. The Kerberos server must share a secret key with each server. All servers are registered with the Kerberos server. For inter-realm authentication; 3. The Kerberos server in each interoperating realm shares a secret key with the server in the other realm. The two Kerberos servers are registered with each other. This means that the Kerberos server in one realm trust the Kerberos server in the other realm to authenticate its users

14 AS TGS Kerberos Client AS TGS Kerberos Server Request ticket for local TGS 2. Ticket for local TGS 3. Request ticket for remote TGS 4. Ticket for remote TGS 5. Request ticket for remote server 6. Ticket for remote server 7. Request remote service Realm A Realm B

15 Encryption for Privacy and Integrity The data structures that Kerberos encrypts need to be protected from both disclosure and modification. Kerberos uses DES algorithm for encryption. For a long message CBC (Cipher Block Chaining) could be used and it does a good job on privacy. Problem :However, there is no integrity check. If an intruder were to modify block c n,then m n and m n+1 would be garbage. No way for kerberos to detect this. Solution: Plaintext Cipher Block Chaining (PCBC). It has the property that modifying any c i will result in garbling plaintext blocks starting with m i all the way to the end. There is a recognizable data at the end of a message so that it will decrypt to see whether the final block is proper. Question: What if we swap two adjacent blocks of ciphertext?

16 IV m1m1m1m1 c1c1c1c1 E m2m2m2m2 c2c2c2c2 E m3m3m3m3 c3c3c3c3 E m4m4m4m4 c4c4c4c4 E Plaintext Cipher Block Chaining Encrypt with secret key

17 Attacks on Kerberos 1. Replay Attacks 2. Secure Time Services 3. Password-Guessing Attacks 4. Spoofing Login 5. Inter-Session Chosen Plaintext attacks 6. Exposure of Session Keys 7. The Scope of Tickets

18 Limitations of Version 4 Environmental Shortcomings : 1. Encryption system dependence (it uses only DES) 2. Internet protocol dependence (requires the use of IP addr. 3. Message byte ordering 4. Ticket Lifetimes (a maximum lifetime of 211/4 hours). 5. Authentication Forwarding ( an intermediate server may need to accsess some resource with the rights of the client for example a print server) 6. Principal naming. ( principals are named with three compo- nents: name, instance, and realm, each of which may be up to 39 charactres long which are too short for some applicati- ons and installation environments 7. Inter-realm authentication. (The pairwise key exchange requires a lot of key exchanges for n realms).

19 Technical Deficiencies : 1. Double Encryption: The ticket is encrypted twice when transmitted to the client, and only once when sent to the application server. If encryption is computationally intensive this is unneccesary use of processing time. 2. PCBC encryption:This mode was an attempt to provide data encryption and integrity protection in one operation. But, an intruder can modify a message with a special block- exchange attack which may not be detected by the receiver. 3. Authenticators and replay detection 4. Password attacks 5. Session keys 6. Cryptographic checksum : The MIT implementation does not perform this algorithm as described; the suitability of the modified version as a CCF is unknown.

20 Future Work Version 5 of Kerberos is a step toward the design of an authentication system that is widely applicable.The framework is flexible enough to accommodate future requirements.Some items expected to add to Kerberos in the near future include: 1.Public-key cryptosystems: It will give the ability to interope- rate with the Privacy Enhanced Mail (PEM) infrastructure. 2.Smartcards: Hand-held devices can be used to augment normal password security methods. 3.Remote administration : Remote extraction of server key tables, password quality checks, and a provision for servers to change their secret keys automatically often. 4.Validation suites: To verify that the protocol is properly imp- lemented. It could prevent future problems. 5. Applications : , Usenet, distributed file systems.


Download ppt "The Authentication Service Kerberos and Its Limitations."

Similar presentations


Ads by Google