Chapter 8 Security Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these ppt.

Slides:



Advertisements
Similar presentations
1 Lecture 17: SSL/TLS history, architecture basic handshake session initiation/resumption key computation negotiating cipher suites application: SET.
Advertisements

1 Lecture 12 SSL/TLS (Secure Sockets Layer / Transport Layer Security) CIS CIS 5357 Network Security.
TLS Introduction 14.2 TLS Record Protocol 14.3 TLS Handshake Protocol 14.4 Summary.
SMUCSE 5349/49 SSL/TLS. SMUCSE 5349/7349 Layers of Security.
Cryptography and Network Security
Secure Socket Layer.
SSL CS772 Fall Secure Socket layer Design Goals: SSLv2) SSL should work well with the main web protocols such as HTTP. Confidentiality is the top.
SSL: Secure Sockets Layer
Socket Layer Security. In this Presentation: need for web security SSL/TLS transport layer security protocols HTTPS secure shell (SSH)
Working Connection Computer and Network Security - SSL, IPsec, Firewalls – (Chapter 17, 18, 19, and 23)
7-1 Chapter 7 – Web Security Use your mentality Wake up to reality —From the song, "I've Got You under My Skin“ by Cole Porter.
Transport Layer Security (TLS) Protocol Introduction to networks and communications(CS555) Prof : Dr Kurt maly Student:Abhinav y.
8-1 Chapter 8 Security Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these.
BASIC CRYPTOGRAPHY CONCEPT. Secure Socket Layer (SSL)  SSL was first used by Netscape.  To ensure security of data sent through HTTP, LDAP or POP3.
Lecture 24 Secure Communications CPE 401 / 601 Computer Network Systems Slides are modified from Jim Kurose & Keith Ross.
Apr 2, 2002Mårten Trolin1 Previous lecture On the assignment Certificates and key management –Obtaining a certificate –Verifying a certificate –Certificate.
Cryptography and Network Security Chapter 17
Chapter 8 Web Security.
Announcement Final exam: Wed, June 9, 9:30-11:18 Scope: materials after RSA (but you need to know RSA) Open books, open notes. Calculators allowed. 1.
SSL and https for Secure Web Communication CSCI 5857: Encoding and Encryption.
Secure Socket Layer (SSL)
SSL / TLS in ITDS Arun Vishwanathan 23 rd Dec 2003.
Behzad Akbari Spring 2012 (These slides are based on lecture slides by Lawrie Brown)
Cosc 4765 SSL/TLS and VPN. SSL and TLS We can apply this generally, but also from a prospective of web services. Multi-layered: –S-http (secure http),
Introduction to Secure Sockets Layer (SSL) Protocol Based on:
CSCE 715: Network Systems Security Chin-Tser Huang University of South Carolina.
Cryptography and Network Security (CS435) Part Fourteen (Web Security)
Web Security : Secure Socket Layer Secure Electronic Transaction.
Chapter 3 Transport Layer
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these.
Secure Sockets Layer (SSL) and Transport layer security (TLS)
8-1 Chapter 8 Security Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 part 3: Securing TCP.
1 Security Protocols in the Internet Source: Chapter 31 Data Communications & Networking Forouzan Third Edition.
8.4 – 8.5 Securing & Securing TCP connections with SSL By: Amanda Porter.
Transport Layer3-1 Chapter 3 Transport Layer Computer Networking: A Top Down Approach 4 th edition. Jim Kurose, Keith Ross Addison-Wesley, July A.
SSL/TLS How to send your credit card number securely over the internet.
8: Network Security8-1 Chapter 8 Network Security A note on the use of these ppt slides: We’re making these slides freely available to all (faculty, students,
SARVAJANIK COLLEGE OF ENGINEERING & TECHNOLOGY. Secure Sockets Layer (SSL) Protocol Presented By Shivangi Modi Presented By Shivangi ModiCo-M(Shift-1)En.No
SSL (TLS) Part 2 Generating the Premaster and Master Secrets + Encryption.
SMUCSE 5349/7349 SSL/TLS. SMUCSE 5349/7349 Layers of Security.
Secure Sockets Layer (SSL) Protocol by Steven Giovenco.
1 SSL/TLS. 2 Web security Security requirements Secrecy to prevent eavesdroppers to learn sensitive information Entity authentication Message authentication.
Encryption protocols Monil Adhikari. What is SSL / TLS? Transport Layer Security protocol, ver 1.0 De facto standard for Internet security “The primary.
Chapter 4 Network Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these.
Mar 28, 2003Mårten Trolin1 This lecture Certificates and key management Non-interactive protocols –PGP SSL/TLS –Introduction –Phases –Commands.
CSCE 715: Network Systems Security Chin-Tser Huang University of South Carolina.
8-1 CSE 4707/5850 Network Security (2) SSL/TLS. 8-2 Think about Google or YouTube  Desired properties  Indeed the other side is Google or YouTube server.
8: Network Security8-1 Chapter 8 Network Security A note on the use of these ppt slides: We’re making these slides freely available to all (faculty, students,
@Yuan Xue CS 285 Network Security Secure Socket Layer Yuan Xue Fall 2013.
Cryptography CSS 329 Lecture 13:SSL.
Page 1 of 17 M. Ufuk Caglayan, CmpE 476 Spring 2000, SSL and SET Notes, March 29, 2000 CmpE 476 Spring 2000 Notes on SSL and SET Dr. M. Ufuk Caglayan Department.
PRESENTATION ON SECURE SOCKET LAYER (SSL) BY: ARZOO THAKUR M.E. C.S.E (REGULAR) BATCH
Chapter 3 Transport Layer
Chapter 3 Transport Layer
Cryptography and Network Security
Public Key Cryptography
Secure Sockets Layer (SSL)
CSCE 715: Network Systems Security
Originally by Yu Yang and Lilly Wang Modified by T. A. Yang
Chapter 3 Transport Layer
CSE 4095 Transport Layer Security TLS, Part II
CSE 4095 Transport Layer Security TLS
Cryptography and Network Security
Encryption INST 346, Section 0201 April 3, 2018.
Security at the Transport Layer
Presentation transcript:

Chapter 8 Security Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these ppt slides: We’re making these slides freely available to all (faculty, students, readers). They’re in PowerPoint form so you see the animations; and can add, modify, and delete slides (including this one) and slide content to suit your needs. They obviously represent a lot of work on our part. In return for use, we only ask the following:  If you use these slides (e.g., in a class) that you mention their source (after all, we’d like people to use our book!)  If you post any slides on a www site, that you note that they are adapted from (or perhaps identical to) our slides, and note our copyright of this material. Thanks and enjoy! JFK/KWR All material copyright J.F Kurose and K.W. Ross, All Rights Reserved

Network Security SSL: Secure Sockets Layer  widely deployed security protocol  supported by almost all browsers, web servers  https  billions $/year over SSL  mechanisms: [Woo 1994], implementation: Netscape  variation - TLS: transport layer security, RFC 2246  provides  confidentiality  integrity  authentication  original goals:  Web e-commerce transactions  encryption (especially credit-card numbers)  Web-server authentication  optional client authentication  minimum hassle in doing business with new merchant  available to all TCP applications  secure socket interface

An example An on-line order  If no confidentiality?  Credit card # may be stolen  If no data integrity?  Order may be altered  If no server authentication?  Fake company to collect all the information  SSL enhance TCP with confidentiality, data integrity, server authentication and client authentication Network Security

SSL and TCP/IP  SSL provides application programming interface (API) with socket to applications  C and Java SSL libraries/classes readily available

Network Security Can we use PGP?  TCP wants to send byte streams & interactive data (vs. )  want set of secret keys for entire connection  want certificate exchange as part of protocol: handshake phase KAKA - H( ). K A ( ). - + K A (H(m)) - m m K S ( ). K B ( ). + + K B (K S ) + KSKS KBKB + Internet KSKS

Network Security Toy SSL: a simple secure channel  handshake: after establishing TCP connection, Alice and Bob use their certificates (public keys), private keys to authenticate each other and exchange shared secret  key derivation: Alice and Bob use shared secret to derive set of keys  data transfer: data to be transferred is broken up into series of records  connection closure: special messages to securely close connection

Toy: a simple handshake MS: master secret EMS: encrypted master secret  SSL hello: to verify that Alice is really Alice!  (CA certified) certificate contains Alice’s public key  Send Alice a encrypted master secret key (EMS) Both parties now share a master secret (for this SSL session)

Toy SSL: key derivation  considered bad to use the same key for more than one cryptographic operation  use different keys for message authentication code (MAC) and encryption  Client and server use MS to generate four keys:  K c = encryption key for data sent from client to server  M c = MAC key for data sent from client to server  K s = encryption key for data sent from server to client  M s = MAC key for data sent from server to client  keys derived from Key Derivation Function (KDF)  takes master secret and (possibly) some additional random data and creates the keys

Message Authentication Code (MAC)  Alice and Bob share secret s (termed authentication key)  Alice creates message m, create m+s, calculate H(m+s) [Message Authentication Code (MAC)]  Alice send (m, H(m+s)) to Bob  Bob receives (m, h); knowing s, Bob calculates MAC H(m+s); if H(m+s) = h, everything is fine

Toy SSL: data records  As TCP is a byte-stream protocol, how would you encrypt data?  Would like to encrypt (application) data in constant stream, on the fly, and then pass the encrypted data, on the fly, to TCP  where would we put the MAC?  If at the end, no message integrity until all data processed  instead, break stream in series of records  each record carries a MAC for integrity check  encrypt each [record + MAC]  receiver can act on each record as it arrives  issue: in record, receiver needs to distinguish MAC from data  want to use variable-length records lengthdataMAC

Toy SSL: data records Network Security data fragment data fragment MAC encrypted data and MAC encrypted data and MAC record header record header

Network Security Toy SSL: sequence numbers  problem: attacker can capture and replay record or re-order records  solution: put sequence number into MAC:  MAC = H(M x, sequence||data)  note: no sequence number field  problem: attacker could replay all records  solution: use nonce

Toy: control information  problem: truncation attack:  attacker forges TCP connection close segment  one or both sides thinks there is less data than there actually is.  solution: record types, with one type for closure  type 0 for data; type 1 for closure  MAC = MAC(M x, sequence||type||data) Type: indicates either handshake msg or data msg

Toy SSL: summary hello certificate, nonce K A + (MS) = EMS type 0, seq 1, data type 0, seq 2, data type 0, seq 1, data type 0, seq 3, data type 1, seq 4, close type 1, seq 2, close encrypted Alice.com

Network Security Toy SSL isn’t complete  how long are fields?  which encryption protocols?  want negotiation?  allow client and server to support different encryption algorithms  allow client and server to choose together specific algorithm before data transfer

Network Security SSL cipher suite  cipher suite  public-key algorithm  symmetric encryption algorithm  MAC algorithm  SSL supports several cipher suites  negotiation: client, server agree on cipher suite  client offers choice  server picks one common SSL symmetric ciphers  DES – Data Encryption Standard: block  3DES – Triple strength: block  RC2 – Rivest Cipher 2: block  RC4 – Rivest Cipher 4: stream SSL Public key encryption  RSA

Network Security Real SSL: handshake (1) Purpose 1. server authentication 2. negotiation: agree on crypto algorithms 3. establish keys 4. client authentication (optional)

Network Security Real SSL: handshake (2) 1. client sends list of algorithms it supports, along with client nonce 2. server chooses algorithms from list; sends back: choice + certificate + server nonce 3. client verifies certificate, extracts server’s public key, generates pre_master_secret, encrypts with server’s public key, sends to server 4. client and server independently compute encryption and MAC keys from pre_master_secret and nonces 5. client sends a MAC of all the handshake messages 6. server sends a MAC of all the handshake messages

Network Security Real SSL: handshaking (3) last 2 steps protect handshake from tampering  client typically offers range of algorithms, some strong, some weak  man-in-the middle could delete stronger algorithms from list  last 2 steps prevent this  last two messages are encrypted

Network Security Real SSL: handshaking (4)  why two random nonces?  suppose Trudy sniffs all messages between Alice & Bob  next day, Trudy sets up TCP connection with Bob, sends exact same sequence of records  Bob (Amazon) thinks Alice made two separate orders for the same thing  solution: Bob sends different random nonce for each connection. This causes encryption keys to be different on the two days  Trudy’s messages will fail Bob’s integrity check

Network Security SSL record protocol data fragment data fragment MAC encrypted data and MAC encrypted data and MAC record header record header record header: content type; version; length MAC: includes sequence number, MAC key M x fragment: each SSL fragment 2 14 bytes (~16 Kbytes)

Network Security SSL record format content type SSL version length MAC data 1 byte 2 bytes3 bytes data and MAC encrypted (symmetric algorithm)

Network Security Real SSL handshake  The client sends a list of cryptographic algorithms it supports, along with a client nonce  From the list, the server chooses a symmetric algorithm (for example, AES), a public key algorithm (for example, RSA with a specific key length), and a MAC algorithm. It sends back to the client its choices, as well as a certificate and a server nonce  The client verifies the certificate, extracts the server’s public key, generates a Pre-Master Secret (PMS), encrypts the PMS with the server’s public key, and sends the encrypted PMS to the server.  Using the same key derivation function (as specified by the SSL standard), the client and server independently compute the Master Secret (MS) from the PMS and nonces. The MS is then sliced up to generate the two encryption and two MAC keys. Furthermore, when the chosen symmetric cipher employs CBC (such as 3DES or AES), then two Initialization Vectors (IVs)—one for each side of the connection—are also obtained from the MS. Henceforth, all messages sent between client and server are encrypted and authenticated (with the MAC).  The client sends a MAC of all the handshake messages.  The server sends a MAC of all the handshake messages.  Why nonces???  Prevent connection replay attack: Trudy sniffs all messages and replay them the next day

Network Security handshake: ClientHello handshake: ServerHello handshake: Certificate handshake: ServerHelloDone handshake: ClientKeyExchange ChangeCipherSpec handshake: Finished ChangeCipherSpec handshake: Finished application_data Alert: warning, close_notify Real SSL connection TCP FIN follows everything henceforth is encrypted

Network Security Key derivation  client nonce, server nonce, and pre-master secret input into pseudo random-number generator.  produces master secret  master secret and new nonces input into another random-number generator: “key block”  because of resumption: TBD  key block sliced and diced:  client MAC key  server MAC key  client encryption key  server encryption key  client initialization vector (IV)  server initialization vector (IV)

Network Security Connection Closure  Using TCP FIN alone is not secure  Allow truncation attack where anyone else could end the SSL session  Indicate in the type field of record whether the record serves to terminate the SSL session (termed closure SSL record)  Although SSL type is sent in the clear, it is authenticated at receiver using the record’s MAC  If a TCP FIN were received earlier, something funny is going on

Network Security Questions  Without sequence # in SSL, Trudy (a woman-in-the- middle) can wreak havoc in an SSL session by interchanging TCP segments. Can Trudy do something similar by deleting a TCP segment? What does she need to do to succeed at the deletion attack? What effect will it have?  Alice and Bob are communicating over an SSL session. Suppose an attacker, who does not have any of the shared keys, inserts a bogus TCP segment into a packet stream with correct TCP checksum and sequence numbers (and correct IP addresses and port numbers). Will SSL at the receiving side accept the bogus packet and pass the payload to the receiving application? Why or why not?