SECURE SOCKETS LAYER (SSL) SECURE SOCKETS LAYER (SSL) SSL ARCHITECTURE SSL/TLS DIFFERENCES SSL ARCHITECTURE. INFS 766 Internet Security Protocols



Similar documents
SECURE SOCKETS LAYER (SSL)

Secure Socket Layer. Security Threat Classifications

CSC Network Security

CSC 474 Information Systems Security

SSL Secure Socket Layer

SSL Secure Socket Layer

Outline. Transport Layer Security (TLS) Security Protocols (bmevihim132)

Overview of SSL. Outline. CSC/ECE 574 Computer and Network Security. Reminder: What Layer? Protocols. SSL Architecture

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.

Communication Systems SSL

Communication Systems 16 th lecture. Chair of Communication Systems Department of Applied Sciences University of Freiburg 2009

The Secure Sockets Layer (SSL)

Web Security Considerations

Transport Level Security

Communication Security for Applications

Lecture 4: Transport Layer Security (secure Socket Layer)

Network Security Essentials Chapter 5

Secure Socket Layer/ Transport Layer Security (SSL/TLS)

Chapter 7 Transport-Level Security

Security Protocols and Infrastructures. h_da, Winter Term 2011/2012

Network Security Part II: Standards

IxLoad TM : Data HTTP, SSL, and FTP

SSL/TLS. What Layer? History. SSL vs. IPsec. SSL Architecture. SSL Architecture. IT443 Network Security Administration Instructor: Bo Sheng

Chapter 27 Secure Sockets Layer (SSL)

Chapter 51 Secure Sockets Layer (SSL)

Real-Time Communication Security: SSL/TLS. Guevara Noubir CSU610

Chapter 17. Transport-Level Security

3.2: Transport Layer: SSL/TLS Secure Socket Layer (SSL) Transport Layer Security (TLS) Protocol

Transport Layer Security Protocols

How To Understand And Understand The Ssl Protocol ( And Its Security Features (Protocol)

Chapter 34 Secure Sockets Layer (SSL)

Network Security Web Security and SSL/TLS. Angelos Keromytis Columbia University

Security Engineering Part III Network Security. Security Protocols (I): SSL/TLS

WEB Security & SET. Outline. Web Security Considerations. Web Security Considerations. Secure Socket Layer (SSL) and Transport Layer Security (TLS)

Cryptography and Network Security Sicurezza delle reti e dei sistemi informatici SSL/TSL

ms-help://ms.technet.2005mar.1033/winnetsv/tnoffline/prodtechnol/winnetsv/plan/ssl...

Managing and Securing Computer Networks. Guy Leduc. Chapter 4: Securing TCP. connections. connections. Chapter goals: security in practice:

Information Security

Secure Socket Layer. Carlo U. Nicola, SGI FHNW With extracts from publications of : William Stallings.

Transport Layer Security (TLS)

Web Security (SSL) Tecniche di Sicurezza dei Sistemi 1

Interested in learning more about security? SSL/TLS: What's Under the Hood. Copyright SANS Institute Author Retains Full Rights

Lecture 7: Transport Level Security SSL/TLS. Course Admin

HTTPS: Transport-Layer Security (TLS), aka Secure Sockets Layer (SSL)

ISA 562 Information System Security

CS 356 Lecture 27 Internet Security Protocols. Spring 2013

Secure Socket Layer (SSL) and Transport Layer Security (TLS)

Chair for Network Architectures and Services Department of Informatics TU München Prof. Carle. Network Security. Chapter 5

Security Protocols HTTPS/ DNSSEC TLS. Internet (IPSEC) Network (802.1x) Application (HTTP,DNS) Transport (TCP/UDP) Transport (TCP/UDP) Internet (IP)

Secure Sockets Layer

Secure Sockets Layer (SSL ) / Transport Layer Security (TLS) Network Security Products S31213

Lab Exercise SSL/TLS. Objective. Step 1: Open a Trace. Step 2: Inspect the Trace

Web Security. Mahalingam Ramkumar

Secure Socket Layer (TLS) Carlo U. Nicola, SGI FHNW With extracts from publications of : William Stallings.

Three attacks in SSL protocol and their solutions

INF3510 Information Security University of Oslo Spring Lecture 9 Communication Security. Audun Jøsang

Secure Socket Layer (SSL) and Trnasport Layer Security (TLS)

SSL A discussion of the Secure Socket Layer

SSL and TLS. An Overview of A Secure Communications Protocol. Simon Horman aka Horms. horms@valinux.co.jp horms@verge.net.au horms@debian.

Security Protocols/Standards

Lecture 10: Network Security Protocols

Network Security [2] Plain text Encryption algorithm Public and private key pair Cipher text Decryption algorithm. See next slide

Security. Contents. S Wireless Personal, Local, Metropolitan, and Wide Area Networks 1

TLS and SRTP for Skype Connect. Technical Datasheet

Authentication applications Kerberos X.509 Authentication services E mail security IP security Web security

, ) I Transport Layer Security

Overview. SSL Cryptography Overview CHAPTER 1

SSL/TLS/X.509. Aggelos Kiayias

Overview SSL/TLS HTTPS SSH. TLS Protocol Architecture TLS Handshake Protocol TLS Record Protocol. SSH Protocol Architecture SSH Transport Protocol

As enterprises conduct more and more

Network Security - Secure upper layer protocols - Background. Security. Question from last lecture: What s a birthday attack? Dr.

Introduction. Haroula Zouridaki Mohammed Bin Abdullah Waheed Qureshi

, SNMP, Securing the Web: SSL

SSL: Secure Socket Layer

Network Security Protocols

Lab Exercise SSL/TLS. Objective. Requirements. Step 1: Capture a Trace

mod_ssl Cryptographic Techniques

Using etoken for SSL Web Authentication. SSL V3.0 Overview

Learning Network Security with SSL The OpenSSL Way

Chapter 10. Network Security

Some solutions commonly used in order to guarantee a certain level of safety and security are:

Lab 7. Answer. Figure 1

Differences Between SSLv2, SSLv3, and TLS

T Cryptography and Data Security

Secure Socket Layer. Introduction Overview of SSL What SSL is Useful For

ERserver. iseries. Securing applications with SSL

SSL Handshake Analysis

Network Security. Chapter 12 Security Protocols of the Transport Layer

Authenticity of Public Keys

Einführung in SSL mit Wireshark

Computer and Network Security

SECURE SOCKET LAYER PROTOCOL SIMULATION IN JAVA. A Research Project NAGENDRA KARRI

Overview of CSS SSL. SSL Cryptography Overview CHAPTER

Embedded SSL. Christophe Kiennert, Pascal Urien. Embedded SSL - Christophe Kiennert, Pascal Urien 1

Lecture 9 - Network Security TDTS (ht1)

Outline. INF3510 Information Security. Lecture 10: Communications Security. Communication Security Analogy. Network Security Concepts

Lecture 10: Communications Security

Part III-b. Universität Klagenfurt - IWAS Multimedia Kommunikation (VK) M. Euchner; Mai Siemens AG 2001, ICN M NT

SSL/TLS: The Ugly Truth

Vulnerabilità dei protocolli SSL/TLS

Transcription:

INFS 766 Internet Security s Lecture 5 SSL Prof. Ravi Sandhu SECURE SOCKETS LAYER (SSL) layered on top of TCP SSL versions 1.0, 2.0, 3.0, 3.1 Netscape protocol later refitted as IETF standard TLS (Transport Layer Security) TLS 1.0 very close to SSL 3.1 2 SECURE SOCKETS LAYER (SSL) SSL ARCHITECTURE application protocol independent does not specify how application protocols add security with SSL how to initiate SSL handshaking how to interpret certificates left to designers of upper layer protocols to figure out SSL Handshake SSL Change Cipher Spec SSL Alert HTTP SSL TCP IP Other Application s 3 4 SSL ARCHITECTURE SSL/TLS DIFFERENCES Handshake protocol: complicated embodies key exchange & authentication 10 message types protocol: straightforward fragment, compress, MAC, encrypt Change Cipher Spec protocol: straightforward single 1 byte message with value 1 could be considered part of handshake protocol Alert protocol: straightforward 2 byte messages 1 byte alert level- fatal or warning; 1 byte alert code TLS uses HMAC, SSL uses a precursor TLS MAC covers compression version field in addition to what SSL MAC covers TLS defines additional alert codes other minor differences TLS has a mode to fall back to SSL 5 6

SSL SERVICES SSL SESSIONS AND CONNECTIONS peer entity authentication data confidentiality data authentication and integrity compression/decompression generation/distribution of session keys integrated into protocol security parameter negotiation Every connection is associated with one session Session can be reused across multiple secure connections Handshake protocol establishes new session and connection together uses existing session for new connection 7 8 SSL SESSION SSL CONNECTION STATE SSL session negotiated by handshake protocol session ID chosen by server X.509 public-key certificate of peer possibly null compression algorithm cipher spec encryption algorithm message digest algorithm master secret 48 byte shared secret is resumable flag can be used to initiate new connections connection end: client or server client and server random: 32 bytes each keys generated from master secret, client/server random client_write_mac_secret server_write_mac_secret client_write_key server_write_key client_write_iv server_write_iv compression state cipher state: initially IV, subsequently next feedback block sequence number: starts at 0, max 2 64-1 9 10 SSL CONNECTION STATE SSL RECORD 4 parts to state current read state current write state pending read state pending write state handshake protocol initially current state is empty either pending state can be made current and reinitialized to empty 4 steps by sender (reversed by receiver) Fragmentation Compression MAC Encryption 11 12

SSL RECORD each SSL record contains content type: 8 bits, only 4 defined change_cipher_spec alert handshake application_data protocol version number: 8 bits major, 8 bits minor length: max 16K bytes (actually 2 14 +2048) data payload: optionally compressed and encrypted message authentication code (MAC) initially SSL session has null compression and cipher algorithms both are set by the handshake protocol at beginning of session handshake protocol may be repeated during the session 13 14 Type: 1 byte 10 message types defined length: 3 bytes content Hello KeyExchange* HelloDone KeyExchange 15 16 Hello KeyExchange* HelloDone Phase 3 KeyExchange : Establish security capabilities : authentication and key exchange Phase 3: authentication and key exchange : Finish 17 18

SSL 1-WAY HANDSHAKE WITH RSA SSL 2-WAY HANDSHAKE WITH RSA Hello KeyExchange* HelloDone Phase 3 KeyExchange Hello KeyExchange* HelloDone Phase 3 KeyExchange 19 20 these 9 handshake messages must occur in order shown optional messages can be eliminated 10th message explained later hello_request message change_cipher_spec is a separate 1 message protocol functionally it is just like a message in the handshake protocol Hello Fig. 2 - Message flow for an abbreviated handshake 21 22 hello_request (not shown) can be sent anytime from server to client to request client to start handshake protocol to renegotiate session when convenient can be ignored by client if already negotiating a session don t want to renegotiate a session client may respond with a no_renegotiation alert Hello KeyExchange* HelloDone Phase 3 KeyExchange 23 24

: PHASE 1 ESTABLISH SECURITY CAPABILITIES : PHASE 1 ESTABLISH SECURITY CAPABILITIES client hello 4 byte timestamp, 28 byte random value session ID: non-zero for new connection on existing session zero for new connection on new session client version: highest version cipher_suite list: ordered list compression list: ordered list server hello 32 byte random value session ID: new or reuse version lower of client suggested and highest supported cipher_suite list: single choice compression list: single choice 25 26 : PHASE 1 ESTABLISH SECURITY CAPABILITIES : PHASE 1 ESTABLISH SECURITY CAPABILITIES cipher suite key exchange method RSA: requires receiver s public-key certificates Fixed DH: requires both sides to have public-key certificates Ephemeral DH: signed ephemeral keys are exchanged, need signature keys and public-key certificates on both sides Anonymous DH: no authentication of DH keys, susceptible to man-in-the-middle attack Fortezza: Fortezza key exchange we will ignore Fortezza from here on cipher suite cipher spec CipherAlgorithm: RC4, RC2, DES, 3DES, DES40, IDEA, Fortezza MACAlgorithm: MD5 or SHA-1 CipherType: stream or block IsExportable: true or false HashSize: 0, 16 or 20 bytes Key Material: used to generate write keys IV Size: size of IV for CBC 27 28 : PHASE 2 SERVER AUTHENTICATION & KEY EXCHANGE Hello KeyExchange* HelloDone Phase 3 KeyExchange Certificate message server s X.509v3 certificate followed by optional chain of certificates required for RSA, Fixed DH, Ephemeral DH but not for Anonymous DH Key Exchange message not needed for RSA, Fixed DH needed for Anonymous DH, Ephemeral DH needed for RSA where server has signature-only key server sends temporary RSA public encryption key to client 29 30

: PHASE 2 SERVER AUTHENTICATION & KEY EXCHANGE Key Exchange message signed by the server signature is on hash of Hello.random, Hello.random Key Exchange parameters Certificate Request message request a certificate from client specifies Certificate Type and Certificate Authorities certificate type specifies public-key algorithm and use Done message ends phase 2, always required Hello KeyExchange* HelloDone Phase 3 KeyExchange 31 32 : PHASE 3 CLIENT AUTHENTICATION & KEY EXCHANGE : PHASE 3 CLIENT AUTHENTICATION & KEY EXCHANGE Certificate message send if server has requested certificate and client has appropriate certificate otherwise send no_certificate alert Key Exchange message content depends on type of key exchange (see next slide) Certificate Verify message can be optionally sent following a client certificate with signing capability signs hash of master secret (established by key exchange) and all handshake messages so far provides evidence of possessing private key corresponding to certificate Key Exchange message RSA client generates 48-byte pre-master secret, encrypts with server s RSA public key (from server certificate or temporary key from Key Exchange message) Ephemeral or Anonymous DH client s public DH value Fixed DH null, public key previously sent in Certificate Message 33 34 : POST PHASE 3 CRYPTOGRAPHIC COMPUTATION : POST PHASE 3 CRYPTOGRAPHIC COMPUTATION 48 byte pre master secret RSA DH generated by client sent encrypted to server both sides compute the same value each side uses its own private value and the other sides public value master_secret = PRF(pre_master_secret, "master secret", Hello.random + Hello.random) [0..47]; pre_master_secret: 48 bytes PRF is composed of a sequence and nesting of HMACs 35 36

: PHASE 4 FINISH Hello KeyExchange* HelloDone Phase 3 KeyExchange Change Cipher Spec message not considered part of handshake protocol but in some sense is part of it message sent under new algorithms and keys content is hash of all previous messages and master secret 37 38 : PHASE 4 FINISH : PHASE 4 FINISH Change Cipher Spec message 1 byte message protected by current state copies pending state to current state sender copies write pending state to write current state receiver copies read pending state to read current state immediately send finished message under new current state message verify_data PRF(master_secret, finished_label, MD5(handshake_messages)+ SHA-1(handshake_messages)) [0..11]; finished_label For messages sent by the client, the string "client finished". For messages sent by the server, the string "server finished". handshake_messages All of the data from all handshake messages up to but not including this message. This is only data visible at the handshake layer and does not include record layer headers. 39 40 SSL ALERT SSL ALERT MESSAGES Warning or fatal 2 byte alert messages 1 byte level fatal or warning 1 byte alert code 41 close_notify(0), unexpected_message(10), bad_record_mac(20), decryption_failed(21), record_overflow(22), decompression_failure(30), handshake_failure(40), bad_certificate(42), unsupported_certificate(43), certificate_revoked(44), certificate_expired(45), certificate_unknown(46), illegal_parameter(47), unknown_ca(48), access_denied(49), decode_error(50), decrypt_error(51), export_restriction(60), protocol_version(70), insufficient_security(71), internal_error(80), user_canceled(90), no_renegotiation(100), 42

SSL ALERT MESSAGES APPLICATIONS AND SSL always fatal unexpected_message bad_record_mac decompression_failure handshake_failure illegal_parameter use dedicated port numbers for every application that uses SSL de facto what is happening use normal application port and negotiate security options as part of application protocol negotiate use of SSL during normal TCP/IP connection establishment 43 44 APPLICATION PORTS OFFICIAL AND UNOFFICIAL https 443 ssmtp 465 snntp 563 sldap 636 spop3 995 ftp-data 889 ftps 990 imaps 991 telnets 992 ircs 993 45