Docsity

TLS and SSL: A Comprehensive Overview, Lecture notes of Data Communication Systems and Computer Networks

Partial preview of the text

Download TLS and SSL: A Comprehensive Overview and more Lecture notes Data Communication Systems and Computer Networks in PDF only on Docsity!

Transport Layer Security (TLS)

 (^) Since applications can communicate either with or without TLS (or SSL), it is necessary for the client to indicate to the server the setup of a TLS connection. One of the main ways of achieving this is to use a different port number for TLS connections.  (^) It’s also sometimes referred by its old name which was Secure Socket Layer (SSL) and this was a protocol that was invented by Netscape in 1995 with a goal of enabling clients (web browsers and web servers) to be able to communicate securely.  (^) The current version is TLSV1.3.

 Overview of TLS

 This is really the essential thing for creating e-commerce. It’s the

protocol that among other things allows people to send credit card

numbers (passwords) over the internet as well as other personal

information with some confidence that is going only to the intended

destination.

 Many businesses use TLS to secure all communications between their

Web servers and browsers regardless of whether sensitive data is being

transmitted.

Cont.…Overview of TLS

SSL 1.0, 2.0, and 3.

 (^) Netscape developed the original SSL protocols. Version 1.0 was never publicly released because of serious security flaws in the protocol.  (^) Version 2.0, released in February 1995, contained a number of security flaws.  (^) SSL version 3.0 represented a complete redesign of the protocol produced by Paul Kocher working with Netscape engineers Phil Karlton and Alan Freier.  (^) Newer versions of SSL/TLS are based on SSL 3.0.  (^) Taher Elgamal, chief scientist at Netscape Communications from 1995 to 1998, has been described as the "father of SSL".

 History and Development

 (^) TLS 1.2 was defined in RFC 5246 in August 2008. It is based on the earlier TLS 1.1 specification. Major differences include:

  • The MD5-SHA-1 combination in the pseudorandom function (PRF) was replaced with SHA256, with an option to use cipher suite specified PRFs.

 TLS 1.

TLS 1.3 was defined in RFC 8446 in August 2018. It is based on the earlier TLS 1. specification. Major differences from TLS 1.2 include: -Removing support for weak and lesser-used named elliptic curves. -Requiring digital signatures even when a previous configuration is used. -Dropping support for many insecure or obsolete features including compression, renegotiation, non-AEAD ciphers, non-PFS key exchange.  (^) TLS 1.

 (^) Transport Layer Security (TLS), and its now-deprecated predecessor, Secure Sockets Layer (SSL) are cryptographic protocols designed to provide communications security over a computer network.  (^) TLS is more efficient and secure than SSL as it has stronger message authentication, key material generation and other encryption algorithms.  (^) For example, TLS supports pre-shared keys, secure remote passwords, elliptical- curve keys and Kerberos whereas SSL does not.  (^) TLS and SSL are not interoperable, but TLS does offer backward compatibility for older devices still using SSL.

 TLS vs. SSL

1. TLS Handshake Protocol:

 (^) This protocol is used to exchange all the information required by both sides for the exchange of the actual application data by TLS.  (^) It defines the format of messages and the order of their exchange. These may vary according to the demands of the client and server.  (^) The handshake begins when a client connects to a TLS-enabled server requesting a secure connection and the client presents a list of supported cipher suites (ciphers and hash functions).  (^) Used to authenticate the server to client.  (^) Agreement on cryptographic protocols.  (^) Establish shared session key.

 TLS consist of two main layers:

 This is done after the handshake protocol to enable:

 It secure communication between the client and the server using session

key that have been established in the handshake protocol.

2. TLS Record Protocol

 Sweet32 attack

 The Sweet32 attack breaks all 64-bit block ciphers used in CBC mode as used

in TLS by: exploiting a birthday attack.

Either a man-in-the-middle attack or injection of a malicious JavaScript into a

web page.

 The purpose of the man-in-the-middle attack or the JavaScript injection is to

allow the attacker to capture enough traffic to mount a birthday attack.

Cont.….Attacks against TLS/SSL

 Truncation attack

A TLS (logout) truncation attack blocks a victim's account logout requests so

that the user unknowingly remains logged into a web service. When the

request to sign out is sent, the attacker injects an unencrypted TCP FIN

message (no more data from sender) to close the connection.

Cont.….Attacks against TLS/SSL

 (^) Database and Directory Security: Organizations deploy Transport Layer Security to encrypt server queries for databases and directories that contain sensitive data and information.  (^) Virtual Private Network Security : Transport Layer Security works to secure a virtual private network appliance by installing a digital certificate on the VPN appliance that provides an encrypted connection between the remote user and the network that they are accessing.

Cont.….Different Types of Transport Layer Security

 (^) The TLS protocol aims primarily to provide privacy and data integrity between two or more communicating computer applications. When secured by TLS, connections between a client (e.g., a web browser) and a server (e.g., wikipedia.org) should have one or more of the following properties:

1. The connection is private (or secure) : because symmetric cryptography is used to encrypt the data transmitted. The keys for this symmetric encryption are generated uniquely for each connection and are based on a shared secret that was negotiated at the start of the session. 2. The connection is reliable: because each message transmitted includes a message integrity check using a message authentication code to prevent undetected loss or alteration of the data during transmission.

  1. In addition to the properties above, careful configuration of TLS can provide additional privacy related properties such as forward secrecy, ensuring that any future disclosure of encryption keys cannot be used to decrypt any TLS communications recorded in the past.

 Advantage of Transport Layer Security (TLS) are: