Computer Security1 Bishop: Chapter 9 Key Management.

Slides:



Advertisements
Similar presentations
1 Key Exchange Solutions Diffie-Hellman Protocol Needham Schroeder Protocol X.509 Certification.
Advertisements

AUTHENTICATION AND KEY DISTRIBUTION
CMSC 414 Computer (and Network) Security Lecture 22 Jonathan Katz.
Chapter 14 – Authentication Applications
Authentication Applications. will consider authentication functions will consider authentication functions developed to support application-level authentication.
Key Management. Shared Key Exchange Problem How do Alice and Bob exchange a shared secret? Offline – Doesnt scale Using public key cryptography (possible)
Key distribution and certification In the case of public key encryption model the authenticity of the public key of each partner in the communication must.
Chapter 10: Key Management
ECE454/CS594 Computer and Network Security Dr. Jinyuan (Stella) Sun Dept. of Electrical Engineering and Computer Science University of Tennessee Fall 2011.
Last Class: The Problem BobAlice Eve Private Message Eavesdropping.
CIS 725 Key Exchange Protocols. Alice ( PB Bob (M, PR Alice (hash(M))) PB Alice Confidentiality, Integrity and Authenication PR Bob M, hash(M) M, PR Alice.
Internet and Intranet Protocols and Applications Lecture 9a: Secure Sockets Layer (SSL) March, 2004 Arthur Goldberg Computer Science Department New York.
1 Security Handshake Pitfalls. 2 Authentication Handshakes Secure communication almost always includes an initial authentication handshake: –Authenticate.
Csci5233 Computer Security1 Bishop: Chapter 10 (Cont.) Key Management: Certificates.
1 IS 2150 / TEL 2810 Introduction to Security James Joshi Associate Professor, SIS Lecture 8 Nov 2, 2010 Key Management Network Security.
Chapter 14 From Cryptography and Network Security Fourth Edition written by William Stallings, and Lecture slides by Lawrie Brown, the Australian Defence.
1 Digital Signatures & Authentication Protocols. 2 Digital Signatures have looked at message authentication –but does not address issues of lack of trust.
Computer Security Key Management
CSCI283 Fall 2005 GWU All slides from Bishop’s slide set Public Key Infrastructure (PKI)
 Authorization via symmetric crypto  Key exchange o Using asymmetric crypto o Using symmetric crypto with KDC  KDC shares a key with every participant.
 Public key (asymmetric) cryptography o Modular exponentiation for encryption/decryption  Efficient algorithms for this o Attacker needs to factor large.
EEC 693/793 Special Topics in Electrical Engineering Secure and Dependable Computing Lecture 6 Wenbing Zhao Department of Electrical and Computer Engineering.
November 1, 2004Introduction to Computer Security ©2004 Matt Bishop Slide #9-1 Chapter 9: Key Management Session and Interchange Keys Key Exchange Cryptographic.
Chapter 9: Key Management
EEC 693/793 Special Topics in Electrical Engineering Secure and Dependable Computing Lecture 7 Wenbing Zhao Department of Electrical and Computer Engineering.
1 Key Management CSSE 490 Computer Security Mark Ardis, Rose-Hulman Institute April 1, 2004.
More on AuthenticationCS-4513 D-term More on Authentication CS-4513 Distributed Computing Systems (Slides include materials from Operating System.
EEC 688/788 Secure and Dependable Computing Lecture 7 Wenbing Zhao Department of Electrical and Computer Engineering Cleveland State University
Network Security – Part 2 V.T. Raja, Ph.D., Oregon State University.
Slide #9-1 Chapter 9: Key Management Session and Interchange Keys Key Exchange Cryptographic Key Infrastructure Storing and Revoking Keys Digital Signatures.
Alexander Potapov.  Authentication definition  Protocol architectures  Cryptographic properties  Freshness  Types of attack on protocols  Two-way.
Computer Science Public Key Management Lecture 5.
Chapter 31 Network Security
Csci5233 Computer Security1 Bishop: Chapter 10 Key Management: Digital Signature.
Csci5233 Computer Security1 Bishop: Chapter 10 (Cont.) Key Management: Storage & Revoking.
Digital Signatures. Public Key Cryptography Public Key Cryptography Requirements 1.It must be computationally easy to encipher or decipher a message.
1 Chapter 9: Key Management All algorithms we have introduced are based on one assumption: keys have been distributed. But how to do that? Key generation,
Security protocols  Authentication protocols (this lecture)  Electronic voting protocols  Fair exchange protocols  Digital cash protocols.
Courtesy of Professors Chris Clifton & Matt Bishop INFSCI 2935: Introduction of Computer Security1 October 2, 2003 Introduction to Computer Security Lecture.
1 IS 2150 / TEL 2810 Introduction to Security James Joshi Assistant Professor, SIS Lecture 10 Nov 8, 2007 Hash Functions Key Management.
Week 4 - Wednesday.  What did we talk about last time?  RSA algorithm.
Key Management and Identity CS461/ECE422 Spring 2012.
1 Key Management CS461/ECE422 Fall Reading Handbook of Applied Cryptography
Chapter 3 (B) – Key Management; Other Public Key Cryptosystems.
Courtesy of Professors Chris Clifton & Matt Bishop INFSCI 2935: Introduction of Computer Security1 Nov 4, 2003 Introduction to Computer Security Lecture.
Lecture 16: Security CDK4: Chapter 7 CDK5: Chapter 11 TvS: Chapter 9.
Digital Signatures, Message Digest and Authentication Week-9.
31.1 Chapter 31 Network Security Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Cryptography and Network Security Chapter 14 Fourth Edition by William Stallings Lecture slides by Lawrie Brown.
1 Chapter 10: Key Management in Public key cryptosystems Fourth Edition by William Stallings Lecture slides by Lawrie Brown (Modified by Prof. M. Singhal,
The School of Electrical Engineering and Computer Science (EECS) CS/ECE Network Security Dr. Attila Altay Yavuz Authentication Protocols (I): Secure Handshake.
Csci5233 Computer Security1 Bishop: Chapter 10 Key Management.
Slide #9-1 Chapter 9: Key Management Session and Interchange Keys Key Exchange Cryptographic Key Infrastructure Storing and Revoking Keys Digital Signatures.
1 Authentication Protocols Rocky K. C. Chang 9 March 2007.
Fall 2006CS 395: Computer Security1 Key Management.
1IS2150/TEL2810: Introduction to Computer Security Nov 1, 2005 Introduction to Computer Security Lecture 8 Key Management.
Prof. Reuven Aviv, Nov 2013 Public Key Infrastructure1 Prof. Reuven Aviv Tel Hai Academic College Department of Computer Science Public Key Infrastructure.
Tanenbaum & Van Steen, Distributed Systems: Principles and Paradigms, 2e, (c) 2007 Prentice-Hall, Inc. All rights reserved DISTRIBUTED SYSTEMS.
Fourth Edition by William Stallings Lecture slides by Lawrie Brown
1 Key Management CS461/ECE422 Fall Reading Handbook of Applied Cryptography
Contents Introduction. 9.1 Session and Interchange Keys.
Chapter 9. Key management
Key Management October 26, 2006 Lecture 7
CS480 Cryptography and Information Security
Public Key Infrastructure (PKI)
CSC 482/582: Computer Security
CDK4: Chapter 7 CDK5: Chapter 11 TvS: Chapter 9
Overview Key exchange Cryptographic key infrastructure Key storage
CDK: Chapter 7 TvS: Chapter 9
Chapter 9: Key Management
Presentation transcript:

Computer Security1 Bishop: Chapter 9 Key Management

Computer Security2 Topics Key exchange –Session vs interchange keys –Classical vs public key methods –Key generation Cryptographic key infrastructure –Certificates Key storage –Key escrow –Key revocation Digital signatures

Computer Security3 Notation X  Y : { Z || W } k X,Y –X sends Y the message produced by concatenating Z and W enciphered by key k X,Y, which is shared by users X and Y A  T : { Z } k A || { W } k A,T –A sends T a message consisting of the concatenation of Z enciphered using k A, A’s key, and W enciphered using k A,T, the key shared by A and T r 1, r 2 : nonces (nonrepeating random numbers)

Computer Security4 Session, Interchange Keys Alice wants to send a message m to Bob –Assume public key encryption –Alice generates a random cryptographic key k s and uses it to encipher m To be used for this message only Called a session key –She enciphers k s with Bob’s public key k B k B enciphers all session keys Alice uses to communicate with Bob Called an interchange key –Alice sends { m } k s { k s } k B

Computer Security5 Benefits Limits amount of traffic enciphered with single key –Standard practice, to decrease the amount of traffic an attacker can obtain Possible attacks –Example: Alice will send Bob a message that is either “BUY” or “SELL”. Eve computes possible ciphertexts { “BUY” } k B and { “SELL” } k B. Eve intercepts enciphered message, compares, and gets plaintext at once.

Computer Security6 Key Exchange Algorithms Goal: Alice, Bob get shared key –Key cannot be sent in clear Attacker can listen in Key can be sent enciphered, or derived from exchanged data plus data not known to an eavesdropper –Alice, Bob may trust third party –All cryptosystems, protocols publicly known Only secret data is the keys, ancillary information known only to Alice and Bob needed to derive keys Anything transmitted is assumed known to attacker

Computer Security7 Classical Key Exchange Bootstrap problem: how do Alice, Bob begin? –Alice can’t send it to Bob in the clear! Assume trusted third party, Cathy –Alice and Cathy share secret key k A –Bob and Cathy share secret key k B Use this to exchange shared key k s

Computer Security8 Simple Protocol 1. Alice Cathy { request for session key to Bob } k A 2. Alice Cathy { k s } k A || { k s } k B 3. Alice Bob { k s } k B Then k s can be used as the secret key between Alice and Bob. e.g., 4. Alice  Bob {M} k s

Computer Security9 Problems ? How does Bob know he is talking to Alice? –Replay attack: Eve records message from Alice to Bob (esp. messages 3 and 4), later replays it; Bob may think he’s talking to Alice, but he isn’t. e.g., Session key reuse: Eve replays message from Alice to Bob, so Bob re-uses session key. e.g., Eve replays the message {“Deposit $500 to Jack’s account” }, originally sent from Alice to Bob. Protocols must provide authentication and defense against replay.

Computer Security10 Needham-Schroeder 1. AliceCathy Alice || Bob || r 1 2. AliceCathy { Alice || Bob || r 1 || k s || { Alice || k s } k B } k A 3. AliceBob { Alice || k s } k B 4. AliceBob { r 2 } k s 5. AliceBob { r 2 – 1 } k s

Computer Security11 Argument: Alice talking to Bob Second message –Enciphered using key only she and Cathy know So Cathy must have enciphered it –Response to first message As r 1 in it matches r 1 in first message Third message –Alice knows only Bob can read it As only Bob can derive session key from that message –Any messages enciphered with that key are from Bob

Computer Security12 Argument: Bob talking to Alice Third message –Enciphered using key only he and Cathy know So Cathy must have enciphered it –Names Alice, session key Cathy provided session key, says Alice is the other party //identity associated with the session key Fourth message –Uses session key to determine if it is replay from Eve If not, Alice will respond correctly in fifth message If so, Eve can’t decipher r 2 and so can’t respond, or responds incorrectly

Computer Security13 Denning-Sacco Modification Assumption of Needham-Schroeder: All keys are secret. Question: Suppose Eve can obtain the session key. How does that affect the protocol? –In what follows, Eve knows k s. a. EveBob { Alice || k s } k B b. Alice (intercepted by Eve)Bob { r 2 } k s c. EveBob { r 2 – 1 } k s

Computer Security14 Problem & Solution In the protocol above, Eve impersonates Alice. Problem: replay in the third step of Needham- Schroeder –i.e., Step a in the previous slide Solution: use time stamp T to detect replay

Computer Security15 Needham-Schroeder with Denning-Sacco Modification 1. AliceCathy Alice || Bob || r 1 2. AliceCathy { Alice || Bob || r 1 || k s || { Alice || T || k s } k B } k A 3. AliceBob { Alice || T || k s } k B 4. AliceBob { r 2 } k s 5. AliceBob { r 2 – 1 } k s Bob will reject the message if T is too old.

Computer Security16 Needham-Schroeder with Denning-Sacco Modification Weakness: If clocks are not synchronized, Bob may either reject valid messages or accept replays. –[Denning-Sacco] Parties with slow clocks are vulnerable to replay. –[Gong] Parties with fast clocks are also vulnerable. + Resetting clock does not eliminate vulnerability.

Computer Security17 Otway-Rees Protocol Corrects the problem in the Needham-Schroeder –That is, Eve replaying the third message in the protocol Does not use timestamps –Not vulnerable to the problems that Denning-Sacco modification has Uses an integer n to associate all messages with particular exchange

Computer Security18 The Protocol 1. AliceBob n || Alice || Bob || { r 1 || n || Alice || Bob } k A 2. CathyBob n || Alice || Bob || { r 1 || n || Alice || Bob } k A || { r 2 || n || Alice || Bob } k B 3. CathyBob n || { r 1 || k s } k A || { r 2 || k s } k B 4. AliceBob n || { r 1 || k s } k A

Computer Security19 Argument: Alice talking to Bob Fourth message –If n matches the first message, Alice knows it is part of this exchange protocol. –Cathy generated k s because only she and Alice know k A. –Alice determines that the enciphered part belongs to the exchange as r 1 matches r 1 in encrypted part of the first message.

Computer Security20 Argument: Bob talking to Alice Third message –If n matches the second message, Bob knows it is part of this exchange protocol. –Cathy generated k s because only she and Bob know k B. –Bob knows that the enciphered part belongs to the exchange as r 2 matches r 2 in encrypted part of the second message.

Computer Security21 Replay Attack against the Otway- Rees Protocol ? Eve acquires a k s and the message in the third step –n || { r 1 || k s } k A || { r 2 || k s } k B Eve forwards appropriate part to Alice –Alice has no ongoing key exchange with Bob: n matches nothing, so is rejected. –Alice has ongoing key exchange with Bob: n does not match, so is again rejected. If replay is for the current key exchange, and Eve sent the relevant part before Bob did, Eve could simply listen to traffic; no replay is needed for Eve to get the information.

Computer Security22 Kerberos Authentication system –Based on Needham-Schroeder with Denning-Sacco modification –Central server plays role of trusted third party (“Cathy”) Ticket –Issuer vouches for identity of requester of service Authenticator –Identifies sender

Computer Security23 Idea User u authenticates to the Kerberos server: –Obtains ticket T u,TGS for ticket granting service (TGS) User u wants to use service s: –User u sends authenticator A u, ticket T u,TGS to the TGS asking for ticket for service s. –TGS sends ticket T u,s to user u. –User sends A u, T u,s to the server as a request to use s. Details follow

Computer Security24 Ticket Credential saying the ticket issuer (i.e., the authentication server) has identified the ticket requester (i.e., user u) Example ticket issued to user u for service s T u,s = s || { u || u’s address || valid time || k u,s } k s where: –k u,s is session key for user u and the ticket granting service s. –k s is the key shared between s and the authentication server –Valid time is interval for which the ticket is valid. –u’s address may be IP address or something else Note: more fields, but not relevant here

Computer Security25 Authenticator Credential containing identity of the sender of a ticket –Used to confirm the sender is the entity to which the ticket was issued. Example: an authenticator that user u generates for authenticating himself to service s A u,s = { u || generation time || k t } k u,s where: –k t is an alternate session key –Generation time is when authenticator generated Note: more fields, not relevant here

Computer Security26

Computer Security27 Protocol 1. userCathy user || TGS Cathy 2. user { k u,TGS } k u || T u,TGS 3. userTGS service || A u,TGS || T u,TGS 4. userTGS user || { k u,s } k u,TGS || T u,s 5. userservice A u,s || T u,s 6. userservice { t + 1 } k u,s

Computer Security28 Exercises 1.In constructing A u,s (see steps 3 and 5), the user u needs to know his session key with s, i.e., k u,s. How does u get the session key? Hint: Show details of A u,s and T u,s. 2.How is the session key between u and the TGS, i.e., k u,TGS, used in the protocol? 3.How is the session key between u and the service provider s, i.e., k u,s, used in the protocol? c.f., An alternative illustration of the Kerberos protocol: on_Steps.html on_Steps.html

Computer Security29 Analysis First two steps get user ticket to use TGS –User u can obtain session key, k u,TGS, only if u knows key shared with Cathy, K u. Next four steps show how u gets and uses ticket for service s –Service s validates request by checking sender (using A u,s ) is the same as entity ticket issued to –Step 6 optional; used when u requests confirmation

Computer Security30 Problems Relies on synchronized clocks –If not synchronized and old tickets, authenticators not cached, replay is possible. Tickets have some fixed fields –Dictionary attacks possible –Kerberos 4 session keys weak (had much less than 56 bits of randomness); researchers at Purdue found them from tickets in minutes Solutions? A potential research or survey project

Computer Security31 Key Exchange using Public Key Here interchange keys known –e A, e B : Alice and Bob’s public keys known to all –d A, d B : Alice and Bob’s private keys known only to the owner Simple protocol –k s is the desired session key Alice Bob { k s } e B

Computer Security32 Problem and Solution Vulnerable to forgery or replay –Because e B known to anyone, Bob has no assurance that it was really Alice that sent the message Simple fix uses Alice’s private key –k s is the desired session key Alice Bob { { k s } d A } e B

Computer Security33 Notes Can include message enciphered with ks Assumes Bob has Alice’s public key, and vice versa –If not, each must get it from a public server –If keys not bound to identity of the owner, attacker Eve can launch a man-in-the-middle attack (next slide; Cathy is public server providing public keys) Solution to this (binding identity to keys) discussed later as public key infrastructure (PKI)

Computer Security34 Man-in-the-Middle Attack (in key exchange using public keys) AliceCathy send Bob’s public key Eve Cathy send Bob’s public key Eve Cathy eBeB Alice eEeE Eve Alice Bob { k s } e E Eve Bob { k s } e B Eve intercepts request Eve intercepts message

Computer Security35 Key Generation Goal: generate difficult-to-guess keys Problem statement: given a set of K potential keys, choose one randomly –Equivalent to selecting a random number between 0 and K–1 inclusive Why is this hard: generating random numbers –Actually, numbers are usually pseudo-random, that is, generated by an algorithm

Computer Security36 What is “Random”? Sequence of cryptographically ransom numbers: a sequence of numbers n 1, n 2, … such that for any integer k > 0, an observer cannot predict n k even if all of n 1, …, n k–1 are known –Best: physical source of randomness Random pulses Electromagnetic phenomena Characteristics of computing environment such as disk latency Ambient background noise

Computer Security37 What is “Pseudorandom”? Sequence of cryptographically pseudorandom numbers: sequence of numbers intended to simulate a sequence of cryptographically random numbers but generated by an algorithm –Very difficult to do this well Linear congruential generators [n k = (an k–1 + b) mod n]: broken Polynomial congruential generators [n k = (a j n k–1 j + … + a 1 n k–1 a 0 ) mod n]: broken too Here, “broken” means next number in sequence can be determined

Computer Security38 Best Pseudorandom Numbers Strong mixing function: function of 2 or more inputs with each bit of output depending on some nonlinear function of all input bits –Examples: DES, MD5, SHA-1 –Use on UNIX-based systems: (date; ps gaux) | md5 where “ps gaux” lists all information about all processes on system

Computer Security39 Exercise #1 The term “session” in “session keys” may be one of the following three cases: a)A session is a fixed period of time, say 60 sec or 20 min, and so on. b)A session is the time between two events. For example, a user session is established from the time the user logs in, until the user logs off. c)A session is a message. In all three cases, a session key is created and used throughout that session. This exercise has two components: 1. Give an example of session keys for each of the three cases. Provide sufficient details for people to understand your examples. 2. What are the relative pros and cons of the three types of session keys? Justify your answer.

Computer Security40 Exercise #2 Classical Key Exchange includes a set of protocols that use only classical cryptography to generate session keys. The Needham- Schroeder protocol was proposed as a remedy against replay attacks that may be launched against the simple protocol. This exercise has two components: 1. Would the Needham-Schroeder protocol successfully mitigate the replay attacks that can be effectively launched against the simple protocol? Justify your answer. 2. Perform a vulnerability analysis on the Needham-Schroeder protocol. Can any of the five steps in that protocol be effectively replayed? Justify your answer.

Computer Security41 Exercise #3 Public Key Cryptographic Key Exchange is briefly discussed in A simple protocol was proposed. In that protocol, when entity A wants to share a session key with entity B, A first encrypts the session key with her own private key and then enciphers the resulting ciphertext with the B’s public key. A  B: { { k s } d A } e B This exercise has two components: 1. Do you agree with the author that such a simple protocol based on public key cryptography would effectively enable key exchange between A and B. Justify your answer. Hint: What security services are provided in this protocol? Is it subject to common attacks like fabrication attacks, man-in-the-middle attacks, or replay attacks? 2. Present a complete solution relaying on public key cryptography. Explain why your protocol would be an effective solution.