CSCI283 Fall 2005 GWU All slides from Bishop’s slide set Public Key Infrastructure (PKI)

Slides:



Advertisements
Similar presentations
Chapter 14 – Authentication Applications
Advertisements

Key Management. Shared Key Exchange Problem How do Alice and Bob exchange a shared secret? Offline – Doesnt scale Using public key cryptography (possible)
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.
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.
Digital Signatures Dan Fleck CS 469: Security Engineering These slides are modified with permission from Bill Young (Univ of Texas) Coming up: Digital.
Computer Security Key Management. Introduction We distinguish between a session key and a interchange key ( long term key ). The session key is associated.
Computer Security Key Management
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.
8-1 What is network security? Confidentiality: only sender, intended receiver should “understand” message contents m sender encrypts message m receiver.
Chap 3: Key exchange protocols In most systems, we distinguish the short term keys from the long term ones: –A short term key (session key) is used to.
Chapter 9: Key Management
Presented by Xiaoping Yu Cryptography and PKI Cosc 513 Operating System Presentation Presented to Dr. Mort Anvari.
1 Key Management CSSE 490 Computer Security Mark Ardis, Rose-Hulman Institute April 1, 2004.
Computer Security1 Bishop: Chapter 9 Key Management.
Key Distribution CS 470 Introduction to Applied Cryptography
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.
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.
Cryptography and Network Security Chapter 14 Fifth Edition by William Stallings Lecture slides by Lawrie Brown.
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 IS 2150 / TEL 2810 Information Security & Privacy James Joshi Associate Professor, SIS Lecture 2 Sept 4, 2013 Key Management Network Security.
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,
1 IS 2150 / TEL 2810 Introduction to Security James Joshi Assistant Professor, SIS Lecture 10 Nov 8, 2007 Hash Functions Key Management.
Key Management. Session and Interchange Keys  Key management – distribution of cryptographic keys, mechanisms used to bind an identity to a key, and.
23-1 Last time □ P2P □ Security ♦ Intro ♦ Principles of cryptography.
1 Digital Certificates (X.509, OpenPGP), Security Protocols James Joshi, Associate Professor University of Pittsburgh.
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
Network Security7-1 CIS3360: Chapter 8: Cryptography Application of Public Cryptography Cliff Zou Spring 2012 TexPoint fonts used in EMF. Read the TexPoint.
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.
Digital Signatures, Message Digest and Authentication Week-9.
Protocols for public-key management. Key management –two problems Distribution of public keys (for public- key cryptography) Distribution of secret keys.
Merkle trees Introduced by Ralph Merkle, 1979 An authentication scheme
31.1 Chapter 31 Network Security Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Fall, Privacy&Security - Virginia Tech – Computer Science Click to edit Master title style Cryptographic Security Identity-Based Encryption.
Computer and Network Security - Message Digests, Kerberos, PKI –
Lecture 11 Overview. Digital Signature Properties CS 450/650 Lecture 11: Digital Signatures 2 Unforgeable: Only the signer can produce his/her signature.
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.
Lecture 9 Overview. Digital Signature Properties CS 450/650 Lecture 9: Digital Signatures 2 Unforgeable: Only the signer can produce his/her signature.
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.
Cryptography and Network Security Chapter 14 Fifth Edition by William Stallings Lecture slides by Lawrie Brown.
1 Key Management CS461/ECE422 Fall Reading Handbook of Applied Cryptography
Key management issues in PGP
Contents Introduction. 9.1 Session and Interchange Keys.
Chapter 9. Key management
Key Management October 26, 2006 Lecture 7
CSC 482/582: Computer Security
CS480 Cryptography and Information Security
Public Key Infrastructure
Public Key Infrastructure (PKI)
CSC 482/582: Computer Security
Protocol ap1.0: Alice says “I am Alice”
Overview Key exchange Cryptographic key infrastructure Key storage
Chapter 9: Key Management
Presentation transcript:

CSCI283 Fall 2005 GWU All slides from Bishop’s slide set Public Key Infrastructure (PKI)

6/3/2015CS283/Fall05/GWU/Vora/PKI All slides from Bishop's set2 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)

6/3/2015CS283/Fall05/GWU/Vora/PKI All slides from Bishop's set3 Session, Interchange Keys Alice wants to send a message m to Bob She 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

6/3/2015CS283/Fall05/GWU/Vora/PKI All slides from Bishop's set4 Benefits Limits amount of traffic enciphered with single key –Standard practice, to decrease the amount of traffic an attacker can obtain Prevents some attacks –Example: Alice will send Bob 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

6/3/2015CS283/Fall05/GWU/Vora/PKI All slides from Bishop's set5 Classical Key Exchange (without PKI) Bootstrap problem: how do Alice, Bob begin? –Alice can’t send key 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

6/3/2015CS283/Fall05/GWU/Vora/PKI All slides from Bishop's set6 Simple Protocol Alice Cathy { request for shared key with Bob } k A Alice Cathy { k s } k A || { k s } k B Alice Bob { k s } k B

6/3/2015CS283/Fall05/GWU/Vora/PKI All slides from Bishop's set7 Problems How does Bob know he is talking to Alice? –Replay attack: Eve records message from Alice to Bob, later replays it; Bob may think he’s talking to Alice, but he isn’t –Session key reuse: Eve replays message from Alice to Bob, so Bob re-uses session key Protocols must provide authentication and defense against replay, these are problems even when cryptography used is asymmetric Numerous solutions, we will consider ones based on the PKI

6/3/2015CS283/Fall05/GWU/Vora/PKI All slides from Bishop's set8 Public Key Key Exchange 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 owner Simple protocol –k s is desired session key Alice Bob { k s } e B

6/3/2015CS283/Fall05/GWU/Vora/PKI All slides from Bishop's set9 Problem and Solution Vulnerable to forgery or replay –Because e B known to anyone, Bob has no assurance that Alice sent message Simple fix uses Alice’s private key –k s is desired session key Alice Bob { { k s } d A } e B

6/3/2015CS283/Fall05/GWU/Vora/PKI All slides from Bishop's set10 Notes Can include message enciphered with k s Assumes Bob has Alice’s public key, and vice versa –If not, each must get it from public server –If keys not bound to identity of 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)

6/3/2015CS283/Fall05/GWU/Vora/PKI All slides from Bishop's set11 Man-in-the-Middle Attack 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

6/3/2015CS283/Fall05/GWU/Vora/PKI All slides from Bishop's set12 Cryptographic Key Infrastructure Goal: bind identity to key Classical: not possible as all keys are shared –Use protocols to agree on a shared key (see earlier) Public key: bind identity to public key –Crucial as people will use key to communicate with principal whose identity is bound to key –Erroneous binding means no secrecy between principals –Assume principal identified by an acceptable name

6/3/2015CS283/Fall05/GWU/Vora/PKI All slides from Bishop's set13 Certificates Create token (message) containing –Identity of principal (here, Alice) –Corresponding public key –Timestamp (when issued) –Other information (perhaps identity of signer) signed by trusted authority (here, Cathy) C A = { e A || Alice || T } d C

6/3/2015CS283/Fall05/GWU/Vora/PKI All slides from Bishop's set14 Use Bob gets Alice’s certificate –If he knows Cathy’s public key, he can decipher the certificate When was certificate issued? Is the principal Alice? –Now Bob has Alice’s public key Problem: Bob needs Cathy’s public key to validate certificate –Problem pushed “up” a level –Two approaches: Merkle’s tree, signature chains

6/3/2015CS283/Fall05/GWU/Vora/PKI All slides from Bishop's set15 Merkle’s Tree Scheme Keep certificates in a file –Changing any certificate changes the file –Use crypto hash functions to detect this Define hashes recursively –h is hash function –C i is certificate i Hash of file (h(1,4) in example) known to all h(1,4) h(1,2) h(3,4) h(1,1) h(2,2) h(3,3) h(4,4) C 1 C 2 C 3 C 4

6/3/2015CS283/Fall05/GWU/Vora/PKI All slides from Bishop's set16 Validation To validate C 1 : –Compute h(1, 1) –Obtain h(2, 2) –Compute h(1, 2) –Obtain h(3, 4) –Compute h(1,4) –Compare to known h(1, 4) Need to know hashes of children of nodes on path that are not computed h(1,4) h(1,2) h(3,4) h(1,1) h(2,2) h(3,3) h(4,4) C 1 C 2 C 3 C 4

6/3/2015CS283/Fall05/GWU/Vora/PKI All slides from Bishop's set17 Problem File must be available for validation –Otherwise, can’t recompute hash at root of tree –Intermediate hashes would do Not practical in most circumstances –Too many certificates and users –Users and certificates distributed over widely separated systems

6/3/2015CS283/Fall05/GWU/Vora/PKI All slides from Bishop's set18 Certificate Signature Chains Create certificate –Generate hash of certificate –Encipher hash with issuer’s private key Validate –Obtain issuer’s public key –Decipher enciphered hash –Recompute hash from certificate and compare Problem: getting issuer’s public key

6/3/2015CS283/Fall05/GWU/Vora/PKI All slides from Bishop's set19 X.509 Chains Some certificate components in X.509v3: –Version –Serial number –Signature algorithm identifier: hash algorithm –Issuer’s name; uniquely identifies issuer –Interval of validity –Subject’s name; uniquely identifies subject –Subject’s public key –Signature: enciphered hash

6/3/2015CS283/Fall05/GWU/Vora/PKI All slides from Bishop's set20 X.509 Certificate Validation Obtain issuer’s public key –The one for the particular signature algorithm Decipher signature –Gives hash of certificate Recompute hash from certificate and compare –If they differ, there’s a problem Check interval of validity –This confirms that certificate is current

6/3/2015CS283/Fall05/GWU/Vora/PKI All slides from Bishop's set21 Issuers Certification Authority (CA): entity that issues certificates –Multiple issuers pose validation problem –Alice’s CA is Cathy; Bob’s CA is Don; how can Alice validate Bob’s certificate? –Have Cathy and Don cross-certify Each issues certificate for the other

6/3/2015CS283/Fall05/GWU/Vora/PKI All slides from Bishop's set22 Validation and Cross-Certifying Certificates: –Cathy > –Dan –Cathy > –Dan > Alice validates Bob’s certificate –Alice obtains Cathy > –Alice uses (known) public key of Cathy to validate Cathy > –Alice uses Cathy > to validate Dan >

6/3/2015CS283/Fall05/GWU/Vora/PKI All slides from Bishop's set23 PGP Chains OpenPGP certificates structured into packets –One public key packet –Zero or more signature packets Public key packet: –Version (3 or 4; 3 compatible with all versions of PGP, 4 not compatible with older versions of PGP) –Creation time –Validity period (not present in version 3) –Public key algorithm, associated parameters –Public key

6/3/2015CS283/Fall05/GWU/Vora/PKI All slides from Bishop's set24 OpenPGP Signature Packet Version 3 signature packet –Version (3) –Signature type (level of trust) –Creation time (when next fields hashed) –Signer’s key identifier (identifies key to encipher hash) –Public key algorithm (used to encipher hash) –Hash algorithm –Part of signed hash (used for quick check) –Signature (enciphered hash) Version 4 packet more complex

6/3/2015CS283/Fall05/GWU/Vora/PKI All slides from Bishop's set25 Signing Single certificate may have multiple signatures Notion of “trust” embedded in each signature –Range from “untrusted” to “ultimate trust” –Signer defines meaning of trust level (no standards!) All version 4 keys signed by subject –Called “self-signing”

6/3/2015CS283/Fall05/GWU/Vora/PKI All slides from Bishop's set26 Validating Certificates Alice needs to validate Bob’s OpenPGP cert –Does not know Fred, Giselle, or Ellen Alice gets Giselle’s cert –Knows Henry slightly, but his signature is at “casual” level of trust Alice gets Ellen’s cert –Knows Jack, so uses his cert to validate Ellen’s, then hers to validate Bob’s Bob Fred Giselle Ellen Irene Henry Jack Arrows show signatures Self signatures not shown

6/3/2015CS283/Fall05/GWU/Vora/PKI All slides from Bishop's set27 Identity Based Encryption (Boneh et al) New cryptographic technique to generate public key from address, or any identifier.