Computer Security Key Management. Introduction We distinguish between a session key and a interchange key ( long term key ). The session key is associated.

Slides:



Advertisements
Similar presentations
Chapter 14 – Authentication Applications
Advertisements

Authentication Applications. will consider authentication functions will consider authentication functions developed to support application-level authentication.
Public Key Infrastructure Alex Bardas. What is Cryptography ? Cryptography is a mathematical method of protecting information –Cryptography is part of,
Cryptography and Network Security Third Edition by William Stallings Lecture slides by Lawrie Brown.
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 Network Security Outline Encryption Algorithms Authentication Protocols Message Integrity Protocols Key Distribution Firewalls.
Csci5233 Computer Security1 Bishop: Chapter 10 (Cont.) Key Management: Certificates.
COEN 350 Public Key Infrastructure. PKI Task: Securely distribute public keys. Certificates. Repository for retrieving certificates. Method for revoking.
Cryptography and Network Security Third Edition by William Stallings Lecture slides by Lawrie Brown.
CSCE 715: Network Systems Security Chin-Tser Huang University of South Carolina.
Chapter 14 From Cryptography and Network Security Fourth Edition written by William Stallings, and Lecture slides by Lawrie Brown, the Australian Defence.
Chapter 4 Authentication Applications. Objectives: authentication functions developed to support application-level authentication & digital signatures.
Computer Security Key Management
Mar 12, 2002Mårten Trolin1 This lecture Diffie-Hellman key agreement Authentication Certificates Certificate Authorities SSL/TLS.
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.
November 1, 2004Introduction to Computer Security ©2004 Matt Bishop Slide #9-1 Chapter 9: Key Management Session and Interchange Keys Key Exchange Cryptographic.
1 Key Establishment Symmetric key problem: How do two entities establish shared secret key in the first place? Solutions: Deffie-Hellman trusted key distribution.
Mar 4, 2003Mårten Trolin1 This lecture Diffie-Hellman key agreement Authentication Certificates Certificate Authorities.
8-1 What is network security? Confidentiality: only sender, intended receiver should “understand” message contents m sender encrypts message m receiver.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 30 Message Security, User Authentication, and Key Management.
Chapter 9: Key Management
1 Key Management CSSE 490 Computer Security Mark Ardis, Rose-Hulman Institute April 1, 2004.
CMSC 414 Computer and Network Security Lecture 24 Jonathan Katz.
Computer Security1 Bishop: Chapter 9 Key Management.
Introduction to Public Key Infrastructure (PKI) Office of Information Security The University of Texas at Brownsville & Texas Southmost College.
Slide #9-1 Chapter 9: Key Management Session and Interchange Keys Key Exchange Cryptographic Key Infrastructure Storing and Revoking Keys Digital Signatures.
Security Management.
1 CS 194: Distributed Systems Security Scott Shenker and Ion Stoica Computer Science Division Department of Electrical Engineering and Computer Sciences.
Computer Science CSC 774Dr. Peng Ning1 CSC 774 Advanced Network Security Topic 2. Review of Cryptographic Techniques.
Computer Science Public Key Management Lecture 5.
INTRODUCTION Why Signatures? A uthenticates who created a document Adds formality and finality In many cases, required by law or rule Digital Signatures.
31.1 Chapter 31 Network Security Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Network and Communications Network Security Department of Computer Science Virginia Commonwealth University.
Secure r How do you do it? m Need to worry about sniffing, modifying, end- user masquerading, replaying. m If sender and receiver have shared secret.
Cryptography and Network Security Chapter 14 Fifth Edition by William Stallings Lecture slides by Lawrie Brown.
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,
Chapter 21 Distributed System Security Copyright © 2008.
Key Management. Session and Interchange Keys  Key management – distribution of cryptographic keys, mechanisms used to bind an identity to a key, and.
King Mongkut’s University of Technology Faculty of Information Technology Network Security Prof. Reuven Aviv 6. Public Key Infrastructure Prof. R. Aviv,
Week 4 - Wednesday.  What did we talk about last time?  RSA algorithm.
Key Management and Identity CS461/ECE422 Spring 2012.
Network Security7-1 CIS3360: Chapter 8: Cryptography Application of Public Cryptography Cliff Zou Spring 2012 TexPoint fonts used in EMF. Read the TexPoint.
Authentication 3: On The Internet. 2 Readings URL attacks
Lecture 16: Security CDK4: Chapter 7 CDK5: Chapter 11 TvS: Chapter 9.
Upper OSI Layers Natawut Nupairoj, Ph.D. Department of Computer Engineering Chulalongkorn University.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Chapter 30 Message Security, User Authentication, and Key Management.
Matej Bel University Cascaded signatures Ladislav Huraj Department of Computer Science Faculty of Natural Sciences Matthias Bel University Banska Bystrica.
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.
Security fundamentals Topic 5 Using a Public Key Infrastructure.
Network Security Continued. Digital Signature You want to sign a document. Three conditions. – 1. The receiver can verify the identity of the sender.
Computer and Network Security - Message Digests, Kerberos, PKI –
Key Management. Authentication Using Public-Key Cryptography  K A +, K B + : public keys Alice Bob K B + (A, R A ) 1 2 K A + (R A, R B,K A,B ) 3 K A,B.
Digital Signatures and Digital Certificates Monil Adhikari.
Csci5233 Computer Security1 Bishop: Chapter 10 Key Management.
Chapt. 10 – Key Management Dr. Wayne Summers Department of Computer Science Columbus State University
Slide #9-1 Chapter 9: Key Management Session and Interchange Keys Key Exchange Cryptographic Key Infrastructure Storing and Revoking Keys Digital Signatures.
1 Public Key Infrastructure Rocky K. C. Chang 6 March 2007.
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.
Chapter 9. Key management
Key Management Session and Interchange Key Key Exchange
Computer Communication & Networks
Cryptography and Network Security
Message Security, User Authentication, and Key Management
Chapt. 10 – Key Management Dr. Wayne Summers
Public Key Infrastructure (PKI)
Presentation transcript:

Computer Security Key Management

Introduction We distinguish between a session key and a interchange key ( long term key ). The session key is associated with a session ; the long term key with a principal.

Basic key exchange C = trusted third party A  C: {request for k session for Bob}k A C  A: {k session }k A, {k session }k B A  B: {k session }k B Now A and B share k session.

Basic key exchange -- problems With whom is Bob sharing a key? Replay attacks: Eve may highjack a session.

Classical cryptography key exchange C = trusted third party A  C: { A||B|| rand 1 } C  A: { A||B||rand 1 ||k session, {A ||k session }k B } k A A  B: {A ||k session }k B B  A: {rand 2 }k session A  B: {rand 2 -1}k session rand 1 and rand 2 are called nonces.

Classical cryptography key exchange Discussion on attacks. Intercept & highjack sessions, Use of Timestamps.

Kerberos Ticket : T AB = B || { A||A’s address||valid time||k AB ||t}k B t is a timestamp, k B is a key that B shares with an authentication server, A AB = { A||generation time}k AB is an authenticator for A. 1.A  C: A || B 2.C  A: {k AB }k A || T AB 3.A  B: G || A AB || T AB 4.B  A: A || {k AG }k AB || T AG 5.A  G: A AG ||T AG 6.G  A: {t+1}k AG

Kerberos Discussion. How are principals (Alice,Bob) authenticated?

Key exchange with Public Key Cryptography First try.  A  B: { k session }e B

Key exchange with Public Key Cryptography A fix  A  B: A, { { k session }d A }e B where d A is the private key of A. Bob decrypts the received and uses the public key of A to obtain k session from { k session }d A. But how does B get to know A’s key?

A man-in-the-middle attack The attacker E succeeds in convincing A that B’s public key is e E and not e B.. 1.A  C: request for B’s public key –intercepted by E 2.E  C: request for B’s public key 3.C  E: e B 4.E  A: e E 5.A  B: {k session }e E -- intercepted by E 6.E  B: {k session }e B (we did this attack in our Midterm 2)

Public Key Infrastructures the X.509 Authentication Framework X.509 is based on certificate signature chains. Certificates are digitally signed by Certifying authorities and link a Public key to its owner. See textbook for details on X.509v3 certificates.

Public Key Infrastructures Certificate signature chains Let X > represent a certificate that X generated for the subject Y, eg X authenticated (digitally signed) the Public Key of Y. X > represents the explicit trust that X has in (the public key of) Y (he wouldn’t otherwise certify it!).

Public Key Infrastructures Certificate signature chains A certificate chain: X 1 > || X 2 > ||... || X n-1 > represents the implicit trust of X 1 in X n : X 1 trusts X 2, who in turn trusts X 3, who in turn trusts X 3,..., and X n-1 trusts X n. PKI’s are based on implicit trust.

The structure of a PKI trust graphs A PKI is determined by its:  Certifying Authorities (CAs)  Subjects  Implicit trust relationships. The trust graph of a PKI is the graph whose nodes are the CAs and the subjects and whose edges are the explicit trust relationships. Implicit trust relationships are represented by paths in the trust graph.

The structure of a PKI Trust graphs  The trust graph for the X.509 PKI is essentially a graph tree, with leafs the subjects.  The root CA is called the Root of the PKI.  The X.509 PKI is scalable : the length of a trust certificate chain is logarithmic in the size of the graph.

Trust graphs C1 David Carol C2 Alice Bob Root CA With a tree-graphs we have 1.Scalable solutions 2.Single point of failures

PKIs  Forest – cross-certifying Root CAs  Other graph solutions  PGPs  Merkle Authentication Tree

PGP certificate chains Provides privacy for electronic mail. The public key of an entity B is certified by “friends” who know him, say E,F,G. PGP certificate for A: E,F,G > PGP Suppose we have the following chain: A,J > PGP || K,J,E > PGP || E,H > PGP || I,H,G > PGP || E,F,G,B > PGP || Then A  PGP-trust B. For more details see:

Merkle Authentication Tree Time stamping  Certificates can be kept as data in files,  This reduces the problem of forging certificates to the problem of data integrity.

Merkle Authentication Tree Let  Y i be an identifier and its associated public key.  f : D  D  D a function that maps pairs of bit strings to a bit string, where D is the set of bit strings.  h : N  N  D be a cryptographic hash function, where N is the set of natural numbers.  h ( i,j ) = f ( h ( i,  i+j /2  ), h (  i+j /2  +1, j ) if i < j f ( Y i, Y ij ) otherwise.

Merkle Authenticatiomn Tree h (1,4) Y4Y4 h (4,4) h (3,3) h (2,2) h (1,1) h (3,4) h (1,2) Y2Y2 Y3Y3 Y1Y1 The root value h (1,4) must be known and the file publicly available.

Merkle Authenticatiomn Tree Suppose that Y 1,Y 2,…,Y n are in a file, and that user 3 wants to validate Y 3. Compute: h (3,3) = f ( Y 3, Y 3 ), h (3,4) = f ( h (3,3), h (4,4)), (assume that h (4,4) is available) h (1,4) = f ( h (1,2), h (3,4)). (assume that h (1,2) is available) If h (1,4) is stored in a public file then Y 3 can be validated (time-stamped).

Merkle Authentication Tree The hashes needed to validate a certificate for Y i are called the authentication path of that certificate. The authentication path for Y 3 is: C 3 = { Y 3, h (4,4), h (1,2))}.