Forward Secrecy in Transport Layer Security with Ephemeral Keys

Ephemeral key pairs in SSL/TLS communications provide perfect forward secrecy by using temporary certificates signed with the server's private key, ensuring each session's security is independent.

JP7563855B2Active Publication Date: 2024-10-08INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2022526488
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-11-11
Filing Date
2020-10-29
Publication Date
2024-10-08
Estimated Expiration
2040-10-29

AI Technical Summary

Technical Problem

Existing SSL/TLS-based network communications lack perfect forward secrecy due to the static nature of server RSA keys, allowing attackers to decrypt all session data if the server's private key is compromised.

Method used

Implement ephemeral key pairs, generating a temporary certificate signed with the server's private key, using the ephemeral public key to encrypt the session key, ensuring each session uses unique keys.

Benefits of technology

Ensures complete forward secrecy by preventing compromise of one session key from affecting others, even if the server's private key is exposed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007563855000001
    Figure 0007563855000001
  • Figure 0007563855000002
    Figure 0007563855000002
  • Figure 0007563855000003
    Figure 0007563855000003
Patent Text Reader

Abstract

Establishment of a Transport Layer Security (TLS) connection for a new session between a client and a server is enabled using an ephemeral key pair. In response to a request, the server generates a temporary certificate by signing an ephemeral public key with the server private key. A certificate chain containing at least the temporary certificate containing the ephemeral public key, along with the server certificate, is output by the server to the client, which acts as a subordinate certificate authority. The client validates the certificate, generates a session key, and outputs the session key wrapped by the ephemeral public key. To complete the connection establishment, the server applies the ephemeral private key to recover the session key derived for the new session at the client. The client and server then use the session key to encrypt and decrypt data over the link. The ephemeral key pair is not reused.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates generally to information security on computer networks. [Background technology]

[0002] Due to the ever-evolving nature of network-based security threats, encryption based on Secure Sockets Layer (SSL) and / or Transport Layer Security (TLS) for network communications is now ubiquitous. In fact, it is estimated that a little over two-thirds of all business network traffic is carried over SSL / TLS. In a typical scenario, a client and server application handshake with each other to establish a secure link. During this process, the Rivest-Shamir-Adelman (RSA) public key cryptography protocol is typically used at the endpoints to share a secret (S) that is used to encrypt and decrypt data on both sides once the connection is established.

[0003] The above scenario has well-known problems. In particular, since the server's RSA key pair is static in nature, the compromise of the server's static RSA private key potentially results in a loss of confidentiality for all session data. This is because each session's data is encrypted with the secret (S) exchanged under the server's static RSA key. This type of attack is straightforward. To achieve this goal, the attacker simply records the encrypted traffic sent between the client and server for every connection. Even if the secret used for each connection is different, all secrets are protected by the server's private key. Thus, if an attacker gains access to that key, for example via brute force or other attack vectors, he or she can decrypt the shared secret (S) of all recorded connections and all application data can be recovered and viewed. This situation is known as not having perfect forward secrecy (PFS). Summary of the Invention

[0004] This disclosure describes a method, apparatus, and computer program product that prevents compromise of a set of derived session keys for a Transport Layer Security (TLS) based link between a client and a server, thereby enabling perfect forward secrecy. The server has a public key pair that includes a server public key and an associated server private key.

[0005] According to an aspect of the present disclosure, TLS connection establishment preferably operates as follows: In response to receiving at the server a request to establish a new session, an ephemeral (temporary) key pair including an ephemeral public key and an associated ephemeral private key is retrieved, preferably from a pool of pre-generated such key pairs. The server generates a temporary certificate by signing the ephemeral public key with the server private key. The server then outputs to the client a certificate chain including at least the temporary certificate including the ephemeral public key, along with a server certificate including the server public key. In this manner, the server acts as a subordinate certificate authority. The client side of the TLS connection attempts to validate the certificate, and upon such validation continues the TLS connection establishment by generating a session key (shared secret (S)) and applying the ephemeral public key (received from the server in the temporary certificate). The server then receives a message from the client, where the message was generated by the client applying the ephemeral public key to a session key derived at the client for the new session. The server then recovers the derived session key for the new session by applying the ephemeral secret key to the message. This completes the establishment of the new session, and the client and server applications then use the session key (shared secret) to encrypt and decrypt data over the TLS link. The ephemeral key pair is not reused. With this approach, perfect forward secrecy is obtained, because compromise of the key associated with the establishment of the new session does not compromise one or more of the other derived session keys in the set.

[0006] The foregoing has outlined some of the more pertinent features of the disclosed subject matter. These features should be construed as merely exemplary. Many other beneficial results may be attained by applying the disclosed subject matter in a different manner or by modifying the subject matter as described.

[0007] For a more complete understanding of the subject matter and its advantages, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which: [Brief description of the drawings]

[0008] [Figure 1] 1 is an example block diagram of a distributed data processing environment in which example aspects of the example embodiments may be implemented; [Diagram 2] 1 is an exemplary block diagram of a data processing system in which exemplary aspects of the illustrative embodiments may be implemented; [Diagram 3] FIG. 2 is a diagram showing a hierarchical structure of a certificate. [Figure 4] FIG. 2 illustrates a Transport Layer Security (TLS) connection establishment. [Diagram 5] 1 illustrates a technique of the present disclosure for providing perfect forward secrecy guarantees for a set of derived session keys for a client and a server. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] With reference to the drawings, and in particular with reference to Figures 1 and 2, exemplary diagrams of data processing environments are provided in which exemplary embodiments of the present invention may be implemented. Figures 1 and 2 are exemplary only and are not intended to assert or imply any limitation with respect to the environments in which aspects or embodiments of the disclosed subject matter may be implemented. Many changes to the depicted environments may be made without departing from the scope of the present invention. Client-Server Technology

[0010] Referring now to the drawings, Figure 1 depicts a pictorial representation of an exemplary distributed data processing system in which aspects of the exemplary embodiments may be implemented. Distributed data processing system 100 may include a network of computers in which aspects of the exemplary embodiments may be implemented. Distributed data processing system 100 includes at least one network 102, which is the medium used to provide communications links between the various devices and computers connected together within distributed data processing system 100. Network 102 may include connections such as wire, wireless communication links, or fiber optic cables.

[0011] In the illustrated embodiment, server 104 and server 106 are connected to network 102 along with storage unit 108. In addition, clients 110, 112, and 114 are also connected to network 102. These clients 110, 112, and 114 may be, for example, personal computers, network computers, and the like. In the illustrated embodiment, server 104 provides data to clients 110, 112, and 114, such as boot files, operating system images, and applications. Clients 110, 112, and 114 are clients to server 104 in the illustrated embodiment. Distributed data processing system 100 may include additional servers, clients, and other devices not shown.

[0012] In the depicted embodiment, distributed data processing system 100 is the Internet with network 102, which represents a worldwide collection of networks and gateways that use the Transmission Control Protocol / Internet Protocol (TCP / IP) suite to communicate with one another. At its core, the Internet is a backbone of high-speed data communication lines between major nodes or host computers, consisting of countless commercial, government, educational and other computer systems that route data and messages. Of course, distributed data processing system 100 may be implemented to include many different types of networks, such as, for example, an intranet, a local area network (LAN), a wide area network (WAN), etc. As noted above, FIG. 1 is intended as an example, and not as an architectural limitation for different embodiments of the disclosed subject matter, and thus the specific elements illustrated in FIG. 1 should not be construed as limitations with respect to the environments in which exemplary embodiments of the present invention may be implemented.

[0013] 2, there is shown a block diagram of an exemplary data processing system 200 in which aspects of the exemplary embodiments may be implemented. Data processing system 200 is an example of a computer, such as client 110 of FIG. 1, in which computer usable code or instructions implementing processes for the exemplary embodiments of the present disclosure may be located.

[0014] Referring now to Figure 2, a block diagram of a data processing system in which exemplary embodiments may be implemented is shown. Data processing system 200 is an example of a computer, such as server 104 or client 110 of Figure 1, in which computer usable program code or instructions implementing processes may be located for exemplary embodiments. In the illustrative example, data processing system 200 includes a communications fabric 202 that provides communications between a processor unit 204, a memory 206, a persistent storage 208, a communications unit 210, an input / output (I / O) unit 212, and a display 214.

[0015] The processor unit 204 functions to execute instructions for software that may be loaded into the memory 206. The processor unit 204 may be a set of one or more processors or may be a multi-processor core, depending on the particular implementation. Additionally, the processor unit 204 may be implemented using one or more heterogeneous processor systems with a main processor and secondary processors on a single chip. As another illustrative example, the processor unit 204 may be a symmetric multi-processor (SMP) system that includes multiple processors of the same type.

[0016] Memory 206 and persistent storage 208 are examples of storage devices. A storage device is any hardware capable of storing information on a temporary or persistent basis or both. Memory 206, in these examples, may be, for example, a random access memory or other suitable volatile or non-volatile storage device. Persistent storage 208 may take various forms depending on the particular implementation. For example, persistent storage 208 may include one or more components or devices. For example, persistent storage 208 may be a hard drive, a flash memory, a rewritable optical disk, a rewritable magnetic tape, or some combination of the above. The medium used by persistent storage 208 may also be removable. For example, a removable hard drive may be used for persistent storage 208.

[0017] Communications unit 210, in these examples, provides for communication with other data processing systems or devices. In these examples, communications unit 210 is a network interface card. Communications unit 210 may provide communications using either or both physical and wireless communications links.

[0018] Input / output unit 212 allows for the input and output of data with other devices that may be connected to data processing system 200. For example, input / output unit 212 may provide a connection for user input via a keyboard and mouse. Additionally, input / output unit 212 may provide output to a printer. Display 214 provides a mechanism for displaying information to a user.

[0019] Instructions or programs for the operating system and applications are located on persistent storage 208. These instructions may be loaded into memory 206 for execution by processor unit 204. The processes of the different embodiments may be executed by processor unit 204 using computer-implemented instructions, which may be located in a memory, such as memory 206. These instructions are referred to as program code, computer usable program code, or computer readable program code that may be read and executed by a processor in processor unit 204. The program code in the different embodiments may be embodied on different physical or tangible computer readable media, such as memory 206 or persistent storage 208.

[0020] The program code 216 may be disposed in a functional form on a computer readable medium 218, which may be selectively removable, and loaded or transferred to the data processing system 200 for execution by the processor unit 204. The program code 216 and the computer readable medium 218 form a computer program product 220, in these examples. In one example, the computer readable medium 218 may be in a tangible form, such as an optical or magnetic disk, that is inserted or placed into a drive or other device that is part of the persistent storage 208 for transfer to a storage device, such as a hard drive that is part of the persistent storage 208. In a tangible form, the computer readable medium 218 may also take the form of persistent storage, such as a hard drive, thumb drive, or flash memory, connected to the data processing system 200. The tangible form of the computer readable medium 218 may also be referred to as a computer recordable storage medium. In some examples, the computer readable medium 218 may not be removable.

[0021] Alternatively, program code 216 may be transferred to data processing system 200 from computer readable medium 218 via a communications link to communications unit 210 or via a connection to input / output unit 212, or both. The communications link or connection, or both, may be physical or wireless in the illustrative example. The computer readable medium may also take the form of non-tangible media, such as a communications link or wireless transmission that contains the program code. The different components illustrated for data processing system 200 are not meant to provide architectural limitations to the manner in which different illustrative embodiments may be implemented. Different illustrative embodiments may be implemented in a data processing system including components in addition to or in place of those illustrated for data processing system 200. Other components depicted in FIG. 2 may be changed from the illustrated illustrative example. By way of example, a storage device in data processing system 200 is any hardware apparatus capable of storing data. Memory 206, persistent storage 208, and computer readable medium 218 are examples of storage devices in tangible forms.

[0022] In another example, a bus system may be used to implement communications fabric 202 and may be comprised of one or more buses, such as a system bus or an input / output bus. Of course, the bus system may be implemented using any suitable type of architecture that provides for a transfer of data between different components or devices attached to the bus system. In addition, a communications unit may include one or more devices used for transmitting and receiving data, such as a modem or a network adapter. Further, a memory may be, for example, memory 206 or a cache such as found in an interface and memory controller hub that may be present in communications fabric 202.

[0023] Computer readable program instructions for carrying out the operations of the present invention may be written in any combination of one or more programming languages, including object oriented languages ​​such as Java, Smalltalk, C++, C#, Objective-C, and conventional procedural languages. The program code may be executed as a stand-alone software package, entirely on the user's computer, partially on the user's computer, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (e.g., through the Internet using an Internet Service Provider).

[0024] Those skilled in the art will appreciate that the hardware in Figures 1 and 2 may vary depending on the implementation. Other internal hardware or peripheral devices, such as flash memory, equivalent non-volatile memory, or optical disk drives, may be used in addition to or in place of the hardware depicted in Figures 1 and 2. Additionally, the processing of the illustrative embodiments may be applied to multiprocessor data processing systems other than the SMP systems described above without departing from the scope of the disclosed subject matter.

[0025] As shown below, the techniques described herein can operate within a standard client-server paradigm, as shown in FIG. 1, where a client machine communicates with an Internet-accessible web-based portal running on a set of one or more machines. End users operate Internet-enabled devices (e.g., desktop computers, notebook computers, Internet-enabled mobile devices, etc.) that can access and interact with the portal. Typically, each client or server machine is a data processing system, as shown in FIG. 2, including hardware and software, and these entities communicate with each other over a network, such as the Internet, an intranet, an extranet, a private network, or any other communication medium or link. A data processing system typically includes one or more processors, an operating system, one or more applications, and one or more utilities. Applications on the data processing system provide native support for web services, including, but not limited to, support for HTTP, SOAP, XML, WSDL, UDDI, and WSFL, among others. Information about SOAP, WSDL, UDDI and WSFL is available from the World Wide Web Consortium (W3C), which is responsible for developing and maintaining these standards, and further information about HTTP, FTP, SMTP and XML is available from the Internet Engineering Task Force (IETF). Familiarity with these known standards and protocols is assumed.

[0026] Public Key Cryptography Public Key Cryptography (PKC) is an encryption approach that involves the use of an asymmetric key algorithm. Unlike symmetric key algorithms, PKC does not require the initial secure exchange of one or more secret keys on both the sender and receiver side. An asymmetric key algorithm is used to create a mathematically related key pair, a private key that is kept secret and a public key that is made public. The use of these keys allows the authenticity of a message to be protected by using the private key to create a digital signature of the message that can be verified using the public key. This also allows public key cryptography to protect the confidentiality and integrity of messages; a public key is used to encrypt a message that can only be decrypted using the private key.

[0027] Key generation is the process of generating keys for encryption. Modern cryptosystems include symmetric key algorithms (e.g., DES, AES, etc.) and public key algorithms (e.g., RSA, DH, EDH, etc.). Symmetric key algorithms use a single shared key, and data remains private provided the single key is kept secret. Public key algorithms use a key pair consisting of a public key and a private key. The public key is typically available to anyone using a digital certificate. A sender encrypts data using the public key, and only the holder of the private key can decrypt this data. Typically, computers use integers for the keys. Keys can be generated randomly using a random number generator (RNG) or a pseudorandom number generator (PRNG). A PRNG is an algorithm that generates data that appears random under analysis. PRNGs that utilize the entropy of the system as seed data generally produce better results, as this makes the initial conditions of the PRNG more difficult for an attacker to predict. In other situations, the keys are derived deterministically, for example using a key derivation function (KDF), which typically uses a pseudorandom function to derive one or more private keys from a secret value, such as a master key, a password, or a passphrase.

[0028] More generally, public key cryptography is useful for privacy (through encryption) and authentication (with digital signatures). Encryption is the conversion of data into a form that is unreadable to anyone without the use of a private decryption key, and encryption ensures privacy by keeping the information content hidden from unintended parties, even those who can view the encrypted data. Authentication is the process by which the recipient of a digital message is assured of the sender's identity and / or the integrity of the message. As an example (of both privacy and proof), when a sender encrypts a message, the recipient's public key is used to convert the data in the original message into the encrypted message content. The sender encrypts the data with the intended recipient's public key, and the recipient decrypts the encrypted message with its private key. When authenticating data, the data may be signed by computing a digital signature from the data using the signer's private key. Once data is digitally signed, it is stored with the signer's identifier, and the signature proves that the data originated from the signer. The signer uses its private key to sign the data, and the recipient uses the signer's public key to verify the signature.

[0029] Public key cryptosystems may be implemented in whole or in part with physical authenticators that may be used to carry or protect keys. These physical authenticators include, for example, security tokens, hardware tokens, USB authenticators, key fobs, etc. to carry keys. Such devices provide cryptographically based two-factor authentication (2FA). Two-factor authentication provides identification of a user through the combination of two distinct components. These components may be something the user knows, something the user has, or something inseparable from the user.

[0030] SSL / TLS By way of further background, Secure Sockets Layer / Transport Layer Security (SSL / TLS) is a well-known cryptographic protocol used to secure communications over networks such as the Internet. Cryptographic protocols such as SSL / TLS are often based on public key cryptosystems such as the RSA (Rivest, Shamir and Adelman) encryption algorithm. In a traditional RSA-based SSL / TLS session, both sides of the connection agree on a "pre-master-secret" (PMS) that is used to generate parameters for the remainder of the session. Typically, both sides use RSA asymmetric encryption to establish the pre-master secret without exchanging the actual value in plaintext. In operation, the SSL / TLS client generates a pre-master secret and encrypts it with the SSL / TLS server's publicly available RSA key. This produces an encrypted pre-master secret (ePMS), which is provided to the SSL / TLS server. The SSL / TLS server has a private decryption key, which it uses to decrypt the encrypted pre-master secret. At this point, both the client and the server have the original pre-master secret and can use it to generate the symmetric keys that will be used for the actual encryption and secure data exchange.

[0031] Certificates, Trust Chains A certificate is a digital document that confirms the identity and ownership of a cryptographic key by a particular entity, such as an individual, a computer system, or a particular server running on that system. Certificates are issued by a certification authority. A certification authority (CA) is an entity that is trusted to sign or issue certificates for other people or entities, typically a trusted third party in a transaction. Typically, the CA accepts legal responsibility for supporting the binding between a public key and its owner, so that the entity that signed the certificate can be trusted. There are many commercial certification authorities, which are responsible for verifying the identity and key ownership of an entity when they issue a certificate. When a CA issues a certificate to an entity, the entity must provide a public key and some information about the entity. A software tool, such as a web browser, can digitally sign this information and send it to the certification authority. A certification authority may be a commercial company that provides trusted third-party certification services. A CA creates a digital certificate by embedding the requesting entity's public key, typically along with other identifying information, and then signing the digital certificate with the certification authority's private key. Anyone who receives a digital certificate during a transaction or communication can then use the certificate authority's public key to verify the signed public key in the certificate. The intent is that the certificate authority's signature acts as a tamper-evident seal on the digital certificate, thereby ensuring the integrity of the data in the certificate.

[0032] Encrypted traffic on the web occurs through a chain of trust. Each web server has a certificate that it can present to each client (usually a web browser) to prove who it is. Web servers often obtain these certificates from an authority (Certification Authority, CA) that can verify the legitimacy of the web server. The server's certificate indicates the authority ("issuer") from which the certificate was obtained. Web browsers typically have a list of issuers that they trust. When a web browser is presented with a certificate from a web server, it checks the issuer and matches it against its trusted list. If a match is found, the connection continues; if no match is found, the browser will usually present a warning and possibly refuse the connection. A CA does not have to be a special entity other than the fact that it is trusted. Any entity can configure itself to trust or sign certificates. A certificate can trust itself, which is referred to as a self-signed certificate. To interact with a client using SSL / TLS, it is necessary to create a certificate that the client will implicitly trust.

[0033] As mentioned above, a certificate authority uses its private key to digitally sign the certificates it issues. This allows other parties to verify the information in the certificate, including its extensions, by validating the signature on the certificate with the certificate authority's own public key. The other party obtains the certificate authority's public key from a certificate issued to the certificate authority, and then verifies the signature, which may include a public key from yet another certificate. The chain of verification can be very long, depending on the certificate hierarchy. Figure 3 shows an example of a simple certificate hierarchy using public key protocols.

[0034] As shown, the certificate hierarchy 300 includes several entities, where the end entity certificate 302 is issued by a subordinate certificate authority (CA#2) 304. The certificate 303 of CA#2 304 is issued by a subordinate certificate authority (CA#1) 306. The certificate 305 of CA#1 306 is issued by a root certificate authority 308. The certificate 307 of the root certificate authority 308 is self-issued, meaning that the certificate is signed by its own private key (self-signed certificate). The chain of signature verification starts from the end entity certificate 302. In particular, the signature of the end entity certificate 302 is verified using the public key of CA#2. If the signature is valid, the signature of the certificate 303 of CA #2 is verified using the public key of CA#1 306. If the signature is valid, the signature of the certificate 305 of CA#1 is verified using the public key of the root certificate. Finally, the signature of the root certificate 307 is verified using its own public key. Verifying the signature of a self-signed root certificate simply ensures that the root certificate has not been altered. Because anyone can create a self-signed certificate and claim to be a certificate authority, it does not guarantee that the information in the certificate or the certificate authority itself is trustworthy. Therefore, an entity's own chosen set of certificate authorities and trust in their individual certificates needs to be established prior to using public key protocols. The selected set of trusted certificates or CAs is sometimes referred to as trusted roots, trusted signers, or simply a trust policy.

[0035] The server may be configurable to implement and enforce trust policies. An example of this type of commercial server is the IBM® z / OS® Security Server. The Security Server is an optional feature of z / OS that allows administrators to control access to protected resources. The IBM Security Server includes the IBM® RACF® (Resource Access Control Facility). For Java® users, RACF provides a set of Java® security administration APIs to allow administration of users and groups in the security repository from z / OS RACF or other non-z / OS security mechanisms. RACF supports trust policies such as those described above through RACF key rings. Like other security software that supports digital certificates, RACF has a method for providing a predefined set of trusted root certificates. To this end, RACF includes a base set of Certificate Authority certificates that are added to the RACF database every time the system is initially loaded.

[0036] Generalized, a hierarchical structure of certification authorities (CAs) is reflected in a certificate chain. A certificate chain traces a path of certificates, for example from a branch in the hierarchy to the root. In a certificate chain, each certificate is followed by its issuer's certificate, and each certificate contains the distinguished name (DN) of its certificate issuer, which is the same as the subject name of the next certificate in the certificate chain. Each certificate is signed with its issuer's private key. The signature can be verified with the public key in the issuer's certificate, the next certificate in the certificate chain.

[0037] 4 illustrates an SSL / TLS handshake between a client 400 and a server 402 without reference to the techniques of this disclosure. It is assumed that the client 400 and the server 402 encrypt and decrypt data using a secret (S) shared between them. It is assumed that the Rivest-Shamir-Adelman (RSA) public key cryptosystem is used to share the secret. In the following, it is assumed that familiarity with standards-based TLS 1.0, 1.1, and 1.2 is presumed.

[0038] The handshake begins in step (1) with server 402 receiving a valid TLS ClientHello message 401 from client 400. In step (2), server 402 responds with a ServerHello message 403, followed by the server's certificate 405 and any other certificates in the chain (as defined by TLS 1.0, 1.1, or 1.2). Certificate 405 includes the server's public key, i.e., server-cert-key-pub. In step (3), the client validates the server's public key certificate. As shown, client 400 then generates a cryptographically secure secret (S) and encrypts it with the server public key (server-cert-key-pub) provided in the server's public key certificate. In step (4), client 400 sends the encrypted key (C) to server 402 in a ClientKeyExchange message 407 (as defined by TLS 1.0, 1.1, or 1.2). In step (5), the server 402 decrypts the secret (S) from the encrypted key (C) using the server private key, i.e., server-cert-key-priv. In step (6), the server 402 responds to the client 400 that the handshake process is finished. All future encrypted messages in TLS (including application data) are then encrypted using the secret (S) currently held by both sides of the communication. For example, in step (7), the client 400 encrypts the application data using the secret (S). Then, for example, in step (8), the application data is sent from the client 400 to the server 402. On the server, in step (9), the server recovers the application data by applying the secret (S) to the data received from the client. Similarly, the application data sent by the server is first encrypted with the secret (S), for example, in step (10), sent to the client, for example, in step (11), decrypted at the client using the secret (S), for example, in step (12), etc.When the client wishes to terminate the connection, it notifies the server, eg, in step (13), to complete the session.

[0039] The above scenario has challenges. In particular, the server's RSA key pair, i.e., server-cert-key-pub and server-cert-key-priv, are static in nature, and thus compromise of the server's static RSA private key potentially results in loss of confidentiality for all session data. This is because each session's data is encrypted with the secret (S) exchanged under the server's static RSA key (server-cert-key-priv). This type of attack is relatively straightforward. For this purpose, the attacker simply records the encrypted traffic transmitted between client 400 and server 402 for every connection. Even if the secret used for each connection is different, all secrets are protected with the server private key. Thus, when an attacker gains access to that key, for example through brute force or other attack vectors, the shared secret (S) of all recorded connections can be decrypted, and thus all application data can be recovered and viewed. This situation is known as not having perfect forward secrecy (PFS).

[0040] Using Ephemeral Key Pairs in Ephemeral Transport Certificates for Forward Secrecy With the above as the background, the technology of the present disclosure will now be described.

[0041] In particular, the technique in Figure 4 is extended by the use of ephemeral keys by the server and client in place of the server's static RSA key. As used herein, cryptographic keys are considered to be "ephemeral" (and therefore "ephemeral keys") because they are generated for each execution of the key establishment process, as described below. To achieve perfect forward secrecy (PFS) in accordance with the techniques herein, the server uses ephemeral (preferably RSA) private and public keys in place of its static private key. The preferred technique is described below with reference to Figure 5.

[0042] In particular, Figure 5 illustrates an SSL / TLS handshake between a client 500 and a server 502, in accordance with the present disclosure. As with the previous embodiment, it is assumed that the client 500 and the server 502 encrypt and decrypt data using a secret (S) shared between them. It is further assumed that the Rivest-Shamir-Adelman (RSA) public key cryptosystem is used to share the secret.

[0043] To reiterate, the handshake begins in step (1) when the server 502 receives a valid TLS ClientHello message 501 from the client 500. Instead of the server simply responding with its server certificate (and server public key) as in the past, the following additional processing is performed: In particular, in step (2), the server 502 obtains an RSA ephemeral public key pair (temporary key) and constructs a temporary certificate (temporary‐cert). In this specification, the term “temporary” refers to the lifespan of a single session, as compared to traditional use of RSA, where keys usually have an expiration date (typically in the range of a year) that is set when they are issued, or are manually revoked due to compromise. Although the ephemeral public key pair (including the ephemeral public key and its associated private key) may be generated on the fly (i.e., at the time of the handshake), the preferred approach is for the server to retrieve the key pair from a pool of pre-generated ephemeral key pairs. To be considered ephemeral, ephemeral keys are used only once per session. Preferably, the key pair is generated in a random or pseudo-random manner such that the key value cannot be predicted from known data.

[0044] In step (2), as described above, the server 502 signs (i.e., creates a digital signature for) the ephemeral public key (temporary-key-pub) with the server private key (servern-cert-key-priv) and creates a temporary certificate (temporary-cert). In step (3), the server responds to the ClientHello message 501 with a ServerHello message 503 that includes the temporary certificate (containing the ephemeral public key), the server's certificate (containing the server public key) and any other certificates in the certificate chain (as defined in TLS 1.0, 1.1 or 1.2). These actions (the server obtains an ephemeral key pair, signs the ephemeral public key with the server private key to create a temporary certificate, and then includes the temporary certificate in the server response) distinguish this flow from the one shown in Figure 4. In step (4), the client 500 performs validation. This validation differs from the previous flow in that in addition to the client validating the server's public key certificate, the client 500 also attempts to validate the temporary certificate. If all certificates (in the chain) are validated, the client 500 then generates a cryptographically secure secret (S) and in this flow encrypts it with an ephemeral public key (temporary-cert-key-pub) rather than using the server public key as in the previous flow. In step (5), the client 500 sends the encrypted key (C) to the server 502 in a ClientKeyExchange message 507. In step (6), the server 502 decrypts the secret (S) from the encrypted key (C) using the temporary private key of the ephemeral public key pair, i.e., temporary-cert-key-priv, rather than the server private key (as in FIG. 4). In step (7), the server 502 responds to the client 500 that the handshake process is complete.

[0045] All future encrypted messages in TLS (including application data) are then encrypted using the secret (S) currently owned by both sides of the communication. For example, in step (8), the client 500 encrypts application data using the secret (S). This application data is then sent from the client 500 to the server 502, for example, in step (9). On the server, in step (10), the server recovers the application data by applying the secret (S) to the data received from the client. Similarly, application data sent by the server is first encrypted with the secret (S), for example, in step (11), sent to the client, for example, in step (12), decrypted at the client using the secret (S), for example, in step (13), etc. When the client wishes to terminate the connection, it notifies the server, for example, in step (14), to complete the session.

[0046] As will be appreciated by those skilled in the art, by using ephemeral keys during the handshake, several advantages are achieved. In particular, the static private key of the server's end-entity certificate is only used to issue the temporary certificate, but the static private key is no longer used in the physical exchange of secrets over the wire. The use of the server private key described above is equivalent to a digital signature operation, not encryption, so any future disclosure of the server private key will not reveal the ephemeral key used by itself, ensuring perfect forward secrecy. Thus, if an attacker gains access to the server private key, messages are still secure, since the ephemeral private key is unknown and there is no way the attacker could obtain the secret session key (S). In turn, the ephemeral key pair is preferably randomly generated and by definition short-lived, which can facilitate forward secrecy even if the server private key is exposed. The server entity certificate is used to sign a short-lived key to create a temporary certificate, and is only used to allow the client to validate the ephemeral transport certificate (with the server entity certificate). This approach has the added benefit of avoiding renegotiations in the event that the connection between the client and server needs to be downgraded.

[0047] In the approach herein, the server's end entity certificate is used as the subordinate certificate authority. As previously mentioned, the server creates and signs a temporary certificate for the session using the ephemeral key pair and sends the temporary certificate as part of a certificate chain that includes the server certificate, which is then used to validate the transport certificate at the client. If validation is successful, the client uses the ephemeral public key received in the transport certificate to encrypt a client-generated shared secret (S) required to complete the handshake with the server. The secret (S) then serves as a symmetric session key to encrypt and decrypt data for the established connection. The use of ephemeral keys to exchange session keys provides perfect forward secrecy. In fact, compromising a server private key does not have the effect of compromising multiple TLS session keys. Compromising an ephemeral RSA private key only compromises the session it was used to establish, and compromising a static server private key allows invalid signatures to be created, but does not compromise previous TLS sessions.

[0048] While this approach has been described using RSA as the preferred public key cryptography, this is not a requirement and other asymmetric cryptographic algorithms that support digital signature operations may be substituted for the static key pair, and other asymmetric cryptographic algorithms that support encryption / decryption may be substituted for the ephemeral key pair. Generalized, the techniques herein may be used with any protocol that uses a public key infrastructure (PKI), particularly where a static digital signature key pair (a) signs an ephemeral asymmetric cryptographic key pair (e) that is used to exchange shared secret keys (s).

[0049] Although preferred operating environments and use cases have been described, the techniques herein may be used in any other operating environment in which it is desirable to protect network traffic to and / or from a computing system or device.

[0050] As explained above, the functionality described above may be implemented in a stand-alone approach, e.g., as software-based functions executed by a processor, or may be made available as a service (including as a web service via a SOAP / XML interface). Details of specific hardware and software implementations described herein are for illustrative purposes only and are not meant to limit the scope of the described subject matter.

[0051] More generally, computing devices within the context of the disclosed subject matter are data processing systems each including hardware and software (as shown in FIG. 2), and these entities communicate with each other over a network, such as the Internet, an intranet, an extranet, a private network, or any other communications medium or link. Applications on the data processing systems provide native support for Web and other known services and protocols, including, among others, but not limited to, support for HTTP, FTP, SMTP, SOAP, XML, WSDL, UDDI, and WSFL. Information regarding SOAP, WSDL, UDDI, and WSFL is available from the World Wide Web Consortium (W3C), which is responsible for developing and maintaining these standards, and further information regarding HTTP, FTP, SMTP, and XML is available from the Internet Engineering Task Force (IETF). Familiarity with these known standards and protocols is assumed.

[0052] The techniques described herein may be implemented in or in combination with a variety of client-side architectures (e.g., firewalls, NAT devices) and a variety of server-side architectures including simple N-tier architectures, web portals, federated systems, etc. The techniques herein may also be practiced on loosely coupled servers (including "cloud-based" environments).

[0053] Or more generally, the subject matter described herein may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment including both hardware and software elements. In a preferred embodiment, the trusted platform module functions are implemented in software, including but not limited to firmware, resident software, microcode, and the like. Furthermore, the download and delete interface and functions may take the form of a computer program product accessible from a computer usable or computer readable medium providing program code for use by or in connection with a computer or any other instruction execution system. For purposes of this description, a computer usable or computer readable medium may be any apparatus that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. The medium may be an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system (or apparatus or device). Examples of computer readable media include semiconductor or solid state memory, magnetic tape, removable computer diskettes, random access memory (RAM), read-only memory (ROM), rigid magnetic disks, and optical disks. Current examples of optical disks include Compact Disk-Read-Only Memory (CD-ROM), Compact Disk-Read / Write (CD-R / W), and DVD. A computer-readable medium is a tangible, non-transitory product.

[0054] A computer program product may be a product having program instructions (or program code) for performing one or more of the described functions. These instructions or code may be stored in a non-transitory computer readable storage medium in the data processing system after being downloaded over a network from a remote data processing system. Alternatively, these instructions or code may be stored in a computer readable storage medium in a server data processing system and adapted to be downloaded over a network to the remote data processing system for use in the computer readable storage medium in the remote system.

[0055] In an exemplary embodiment, the interfaces and utilities are implemented in software executed by a special purpose computing platform, preferably one or more processors. The software may be maintained in one or more data stores or memories associated with the one or more processors, and the software may be implemented as one or more computer programs. This special purpose hardware and software collectively provide the functionality described above.

[0056] While the above describes a particular sequence of operations performed by certain embodiments of the present invention, it should be understood that alternative embodiments may perform operations in a different sequence, combine certain operations, overlap certain operations, etc. Reference to a given embodiment herein indicates that the described embodiment may include a particular feature, structure, or characteristic, but not all embodiments will include the particular feature, structure, or characteristic.

[0057] Finally, although certain components of the system have been described separately, those skilled in the art will appreciate that certain functionality may be combined or shared within a given instruction, program sequence, code portion, etc.

[0058] The technology herein provides the aforementioned improvements to the technology or technical field generally, as well as specific technical improvements to cryptographically secure network communications, as described above.

Claims

1. 1. A method for preventing compromise of a set of derived session keys for a Transport Layer Security (TLS) based link between a client and a server, the server having a public key pair including a server public key and an associated server private key, the method comprising: retrieving an ephemeral key pair including an ephemeral public key and an associated ephemeral private key in response to receiving at the server a request to establish a new session; generating a temporary certificate by signing the ephemeral public key with the server private key; outputting to the client a certificate chain including at least the temporary certificate including the ephemeral public key along with a server certificate including the server public key; receiving a message from the client, the message having been generated by the client applying the ephemeral public key to a session key derived for the new session; recovering the session key derived for the new session by applying the ephemeral private key to the message to complete establishment of the new session; wherein compromising a key associated with establishment of the new session does not compromise one or more other derived session keys of the set.

2. 2. The method of claim 1, further comprising generating a pool of ephemeral key pairs prior to receiving the request, the ephemeral key pairs being retrieved from the pool.

3. The method of claim 1 or 2, wherein the ephemeral key pair is destroyed and not reused after the end of the new session.

4. The method according to any one of claims 1 to 3, wherein the server acts as a subordinate certificate authority.

5. The method according to any one of claims 1 to 4, wherein each of the key pairs is an RSA (Rivest-Shamir-Adelman) key pair.

6. The method of any one of claims 1 to 5, wherein the ephemeral key pair is randomly generated.

7. A device configured as a server, A processor; a computer memory holding computer program instructions to be executed by said processor; the computer program instructions including program code configured to prevent compromise of a set of derived session keys for a Transport Layer Security (TLS) based link between a client and the server, the server having a public key pair including a server public key and an associated server private key, the program code including: retrieving an ephemeral key pair including an ephemeral public key and an associated ephemeral private key in response to receiving at the server a request to establish a new session; generating a temporary certificate by signing the ephemeral public key with the server private key; outputting to the client a certificate chain including at least the temporary certificate including the ephemeral public key along with a server certificate including the server public key; receiving a message from the client, the message having been generated by the client applying the ephemeral public key to a session key derived for the new session; recovering the session key derived for the new session by applying the ephemeral private key to the message to complete establishment of the new session. wherein compromise of a key associated with establishment of the new session does not compromise one or more other derived session keys of the set.

8. 8. The apparatus of claim 7, wherein the program code is configured to generate a pool of ephemeral key pairs prior to receiving the request, and the ephemeral key pairs are retrieved from the pool.

9. 9. The apparatus of claim 7 or 8, wherein the program code is configured to discard the ephemeral key pair after the new session is over, preventing its reuse.

10. The apparatus according to any one of claims 7 to 9, wherein the server acts as a subordinate certificate authority.

11. The apparatus of any one of claims 7 to 10, wherein each of the key pairs is a Rivest-Shamir-Adelman (RSA) key pair.

12. The apparatus of any one of claims 7 to 11, wherein the program code is configured to randomly generate the ephemeral key pair.

13. 1. A computer program for use in a data processing system to prevent compromise of a set of derived session keys for a Transport Layer Security (TLS) based link between a client and a server, the server corresponding to the data processing system and having a public key pair including a server public key and an associated server private key, the computer program providing to the data processing system: retrieving an ephemeral key pair including an ephemeral public key and an associated ephemeral private key in response to receiving at the server a request to establish a new session; generating a temporary certificate by signing the ephemeral public key with the server private key; outputting to the client a certificate chain including at least the temporary certificate including the ephemeral public key along with a server certificate including the server public key; receiving a message from the client, the message having been generated by the client applying the ephemeral public key to a session key derived for the new session; recovering the session key derived for the new session by applying the ephemeral private key to the message to complete establishment of the new session. wherein compromising a key associated with establishing the new session does not compromise one or more other derived session keys of the set.

14. 14. The computer program product of claim 13, further causing the data processing system to generate a pool of ephemeral key pairs prior to receiving the request, the ephemeral key pair being retrieved from the pool.

15. 15. The computer program product of claim 13 or 14, wherein the computer program product causes the data processing system to revoke the ephemeral key pair after the new session is over, preventing its reuse.

16. The computer program product according to any one of claims 13 to 15, wherein the server functions as a subordinate certification authority.

17. 17. The computer program product of claim 13, wherein each of the key pairs is a Rivest-Shamir-Adelman (RSA) key pair.

18. The computer program product of any one of claims 13 to 17, further causing the data processing system to randomly generate the ephemeral key pair.

19. A device configured as a client, A processor; a computer memory holding computer program instructions to be executed by said processor; the computer program instructions including program code configured to prevent compromise of a set of derived session keys for a Transport Layer Security (TLS) based link between the client and server, the server having a public key pair including a server public key and an associated server private key, the program code including: Issuing a request to the server to establish a new session; receiving a certificate chain from the server, the certificate chain including a server certificate including the server public key along with a temporary certificate including an ephemeral public key of an ephemeral key pair, the ephemeral key pair having an associated ephemeral private key, the temporary certificate being generated by the server signing the ephemeral public key with the server private key; deriving a session key for the new session in response to validating the certificate chain; applying the ephemeral public key to the session key to generate a message; outputting the message to the server, wherein the derived session key is recoverable by the server by applying the ephemeral private key to the message; wherein compromising a key associated with establishment of the new session does not compromise one or more other derived session keys of the set.

20. 20. The apparatus of claim 19, wherein the public key pair and the ephemeral key pair are Rivest-Shamir-Adelman (RSA) key pairs.

Citation Information

Patent Citations

  • Transport layer security (TLS) handshaking method and device, and trusted third party (TTP)

    CN102510387A

  • Secure session capability using public-key cryptography without access to the private key

    CN105993146A

  • Authentication processing method for encryption communication system and its system

    JP2003124926A

  • Cryptographic Authentication Methods Using Temporary (Ephemeral) Modules

    JP2004530331A

  • Management device, client device and system including them

    JP2005142979A