Public Key Infrastructure (PKI)

Slides:



Advertisements
Similar presentations
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.
Advertisements

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.
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
CSCI283 Fall 2005 GWU All slides from Bishop’s slide set Public Key Infrastructure (PKI)
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
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.
Computer Science Public Key Management Lecture 5.
Csci5233 Computer Security1 Bishop: Chapter 10 Key Management: Digital Signature.
Cryptography Encryption/Decryption Franci Tajnik CISA Franci Tajnik.
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,
1 IS 2150 / TEL 2810 Introduction to Security James Joshi Assistant Professor, SIS Lecture 10 Nov 8, 2007 Hash Functions Key Management.
23-1 Last time □ P2P □ Security ♦ Intro ♦ Principles of cryptography.
Week 4 - Wednesday.  What did we talk about last time?  RSA algorithm.
Key Management and Identity CS461/ECE422 Spring 2012.
Courtesy of Professors Chris Clifton & Matt Bishop INFSCI 2935: Introduction of Computer Security1 Nov 4, 2003 Introduction to Computer Security Lecture.
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.
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.
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.
Key management issues in PGP
Contents Introduction. 9.1 Session and Interchange Keys.
Chapter 5 Network Security Protocols in Practice Part I
Chapter 9. Key management
Key Management October 26, 2006 Lecture 7
CSC 482/582: Computer Security
Key Management Session and Interchange Key Key Exchange
Digital Signatures Cryptographic technique analogous to hand-written signatures. sender (Bob) digitally signs document, establishing he is document owner/creator.
Protocol Analysis.
Computer Communication & Networks
Cryptography and Network Security
Public Key Encryption Systems
CS480 Cryptography and Information Security
Basic Network Encryption
Chapter 9: Key Management
Information Security message M one-way hash fingerprint f = H(M)
Digital Signatures Cryptographic technique analogous to hand-written signatures. sender (Bob) digitally signs document, establishing he is document owner/creator.
Message Security, User Authentication, and Key Management
IS 2150 / TEL 2810 Introduction to Security
Key Management CS461/ECE422.
Chapter 10: Key Management
Public Key Infrastructure
Digital Certificates and X.509
CSC 482/582: Computer Security
Protocol ap1.0: Alice says “I am Alice”
刘振 上海交通大学 计算机科学与工程系 电信群楼3-509
Overview Key exchange Cryptographic key infrastructure Key storage
Digital Signatures Cryptographic technique analogous to hand-written signatures. sender (Bob) digitally signs document, establishing he is document owner/creator.
Computer Security: Art and Science, 2nd Edition
Bishop: Chapter 10 Key Management: Digital Signature
Secure How do you do it? Need to worry about sniffing, modifying, end-user masquerading, replaying. If sender and receiver have shared secret keys,
Digital Signatures Cryptographic technique analogous to hand-written signatures. sender (Bob) digitally signs document, establishing he is document owner/creator.
Chapter 9: Key Management
Digital Signatures Cryptographic technique analogous to hand-written signatures. sender (Bob) digitally signs document, establishing he is document owner/creator.
Chapter 10: Key Management
刘振 上海交通大学 计算机科学与工程系 电信群楼3-509
Security: Integrity, Authentication, Non-repudiation
Public Key Encryption Systems
Digital Signatures Cryptographic technique analogous to hand-written signatures. sender (Bob) digitally signs document, establishing he is document owner/creator.
Chapter 8 roadmap 8.1 What is network security?
Presentation transcript:

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

CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set Notation X  Y : { Z || W } kX,Y X sends Y the message produced by concatenating Z and W enciphered by key kX,Y, which is shared by users X and Y A  T : { Z } kA || { W } kA,T A sends T a message consisting of the concatenation of Z enciphered using kA, A’s key, and W enciphered using kA,T, the key shared by A and T r1, r2 nonces (nonrepeating random numbers) 11/24/2018 CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set

Session, Interchange Keys Alice wants to send a message m to Bob She generates a random cryptographic key ks and uses it to encipher m To be used for this message only Called a session key She enciphers ks with Bob’s public key kB kB enciphers all session keys Alice uses to communicate with Bob Called an interchange key Alice sends { m } ks { ks } kB 11/24/2018 CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set

CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set 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” } kB and { “SELL” } kB. Eve intercepts enciphered message, compares, and gets plaintext at once 11/24/2018 CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set

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 kA Bob and Cathy share secret key kB Use this to exchange shared key ks 11/24/2018 CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set

CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set Simple Protocol { request for shared key with Bob } kA Alice Cathy { ks } kA || { ks } kB Alice Cathy { ks } kB Alice Bob 11/24/2018 CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set

CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set 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 11/24/2018 CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set

Public Key Key Exchange Here interchange keys known eA, eB Alice and Bob’s public keys known to all dA, dB Alice and Bob’s private keys known only to owner Simple protocol ks is desired session key { ks } eB Alice Bob 11/24/2018 CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set

CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set Problem and Solution Vulnerable to forgery or replay Because eB known to anyone, Bob has no assurance that Alice sent message Simple fix uses Alice’s private key ks is desired session key { { ks } dA } eB Alice Bob 11/24/2018 CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set

CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set Notes Can include message enciphered with ks 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) 11/24/2018 CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set

Man-in-the-Middle Attack send Bob’s public key Eve intercepts request Alice Cathy send Bob’s public key Eve Cathy eB Eve Cathy eE Alice Eve { ks } eE Eve intercepts message Alice Bob { ks } eB Eve Bob 11/24/2018 CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set

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 11/24/2018 CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set

CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set 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) CA = { eA || Alice || T } dC 11/24/2018 CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set

CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set 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 11/24/2018 CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set

CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set 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 Ci 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) C1 C2 C3 C4 11/24/2018 CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set

CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set Validation To validate C1: 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) C1 C2 C3 C4 11/24/2018 CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set

CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set 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 11/24/2018 CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set

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 11/24/2018 CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set

CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set 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 11/24/2018 CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set

CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set X.509 Certificate Extensions include:KeyUsage, AlternativeNames 11/24/2018 CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set

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 11/24/2018 CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set

CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set 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 11/24/2018 CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set

Validation and Cross-Certifying Certificates: Cathy<<Alice>> Dan<<Bob> Cathy<<Dan>> Dan<<Cathy>> Alice validates Bob’s certificate Alice obtains Cathy<<Dan>> Alice uses (known) public key of Cathy to validate Cathy<<Dan>> Alice uses Cathy<<Dan>> to validate Dan<<Bob>> 11/24/2018 CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set

CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set 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 11/24/2018 CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set

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 11/24/2018 CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set

CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set 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” 11/24/2018 CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set

Validating Certificates Arrows show signatures Self signatures not shown 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 Jack Henry Ellen Irene Giselle Fred Bob 11/24/2018 CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set

Ten Risks of PKI – Ellison and Schneier Who do we trust, and for what? Who is using my key? How secure is the verifying computer? Which John Robinson is he? Is the CA an authority? Is the user part of the security design? Was it one CA or a CA plus a Registration Authority? How did the CA identify the certificate holder? How secure are the certificate practices? Why are we using the CA process, anyway? 11/24/2018 CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set

Identity Based Encryption (Boneh et al) New cryptographic technique to generate public key from email address, or any identifier. 11/24/2018 CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set

CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set Further Reading, PKI X.509 page http://www.ietf.org/html.charters/pkix-charter.html Ten Risks of PKI - http://www.counterpane.com/pki-risks.html 11/24/2018 CS283-172/Fall06/GWU/Vora/PKI All slides from Bishop's set