The technical field generally relates to encrypted communications and more specifically relates to inspecting encrypted communications.
It is not uncommon for network administrators to prohibit direct connectivity between the internal network and external networks (such as the Internet). Typically, connections are routed through a proxy server functioning as a gateway processor between the two networks. Processors within the internal network connect to the proxy server, and the proxy server provides communications to the external network on behalf of those internal network processors. Application firewalls are commonly implemented via proxy servers. Typically, when implementing a firewall, the proxy server is aware of the protocol being employed (for example email, instant messaging or web-page request) and inspects communications between the networks. By introducing this single choke-point the network administrator can exert control over network activity. For example the network administrator can disallow certain protocols, restrict web-browsing to comply with regulations, or log traffic for forensic purposes. This process breaks down however, when using a protocol that requires end-to-end encryption. A protocol requiring end-to-end encryption requires that information encrypted by a source remain encrypted until received by the destination. The widely used Secure Sockets Layer (SSL) protocol and the Transport Layer Security (TLS) protocol (referred to collectively as SSL/TLS) are examples of protocols used for providing secure communications via end-to-end encryption. When using a protocol requiring end-to-end encryption, the proxy server sees encrypted data. The firewall can not inspect the encrypted data.
An attempt to work around this problem effectively utilizes a proxy server to maintain two connections. On the internal network side, the proxy server impersonates the remote site of the external network side, and on the external network side, the proxy server impersonates the internal host of the internal network side. This mediation approach however, requires trust in the proxy server and destroys the end-to-end integrity provided by the SSL/TLS protocol. Neither endpoint can be certain that the data it received originated from the proper source because the proxy server can modify the data during the exchange. Also, this approach is computationally burdensome because of the processor-intensive cryptographic operations required. Further, this approach is incompatible with mutual authentication features (such as a client processor authenticating itself to a server processor) of the SSL/TLS protocol.
Encrypted communications are inspected while maintaining the end-to-end encryption, such as required by the SSL/TLS protocol. In an exemplary embodiment, a proxy server functioning as a gateway processor between an intranet and the Internet, includes a security processor. The security processor is coupled to a host processor within the intranet via a channel that is separate from the communications channel carrying the encrypted communications between the networks. When initializing communications between the networks, the host processor provides the security processor the cryptographic key (or keys) needed to decrypt the encrypted communications. The security processor is coupled to the communications channel carrying the encrypted communications, such that the security processor can monitor the encrypted communications. The security processor decrypts the encrypted communications without perturbing the encrypted communications being carried over the communications channel between the networks. The security processor decrypts the encrypted communications utilizing the previously provided cryptographic key(s). The security processor inspects the decrypted communications. If any faults are found, the security processor notifies the host accordingly. For the sake of simplicity, the term “channel” as used herein also implies a logical channel. For example, the security processor and the host processor can be using the same physical channel (e.g., the same network cable, or the same wireless network infrastructure), and that physical channel can support multiple logical channels. Logical channels can be within the same physical channel, without interference therebetween.
The foregoing and other objects, aspects and advantages will be better understood from the following detailed description with reference to the drawings, in which:
As described herein, encrypted communications adhering to the end-to-end encryption requirement of the SSL/TLS protocol can be inspected while preserving end-to-end integrity. Application to the SSL/TLS protocol is exemplary, and should not be limited thereto. For example, the methods, apparatuses, and systems described herein for inspecting encrypted communications are applicable more generally to all usage modes of the SSL/TLS protocol, or to any application involving inspection of encrypted information while maintaining end-to-end integrity.
Similarly, the peer processor 16 can comprise any appropriate processor. The peer processor 16 can comprise a general purpose processor, a dedicated processor, a desktop computer, a laptop computer, a Personal Digital Assistant (PDA), a handheld computer, a smart phone, a server processor, a client processor, or a combination thereof. The peer processor 16 can be implemented in a single processor or multiple processors. Multiple processors can be distributed or centrally located. Multiple processors can communicate wirelessly, via hard wire, or a combination thereof.
And further, the security processor 14 can comprise any appropriate processor. The security processor 14 can comprise a general purpose processor, a dedicated processor, a desktop computer, a laptop computer, a Personal Digital Assistant (PDA), a handheld computer, a smart phone, a server processor, a client processor, or a combination thereof. The security processor 14 can be implemented in a single processor or multiple processors. Multiple processors can be distributed or centrally located. Multiple processors can communicate wirelessly, via hard wire, or a combination thereof.
The security processor 14 communicates with the host processor 12 via interface 18. The interface 18 can comprise any appropriate interface such as a wireless interface (e.g., rf, optical), a wired interface (e.g., hard-wired, docking station, USB compatible interface), or a combination thereof. The interface 18 can comprise intermediate processors for providing communications between the security processor 14 and the host processor 12. The peer processor 16 communicates with the host processor 12 via interface 20. The interface 20 can comprise any appropriate interface such as a wireless interface (e.g., rf, optical), a wired interface (e.g., hard-wired, docking station, USB compatible interface), or a combination thereof. The interface 20 can comprise intermediate processors for providing communications between the peer processor 16 and the host processor 12.
The interface 18 comprises a channel for the host processor 12 to provide cryptographic keys to the security processor 14. In an exemplary embodiment, the interface 18 is a secure channel such that cryptographic keys carried over the interface 18 are protected. The interface 18 is separate from the interface 20. It is envisioned that there is no crosstalk between the interface 18 and the interface 20. The interface 20 is a communications channel for carrying communications between the host processor 12 and the peer processor 16. In an exemplary embodiment, the interface 20 carries encrypted information between the host processor 12 and the peer processor 16. The processor 12, the security processor 14, and the peer processor 16 can be within a single network, or can be distributed throughout any number of networks.
The system depicted in
In an exemplary scenario, the host processor 22 residing in an intranet communicates with the peer processor 26 residing in the Internet via an encrypted connection via the interface 32 in compliance with the end-to-end encryption requirements of the SSL/TLS protocol. In this exemplary scenario, the host processor 22 initiates communications with the peer processor 26 to establish the connection between the host processor 22 and the peer processor 26. The host processor 22 contacts the proxy server 24 to establish an outbound connection to the Internet. The SSL connection can be initiated by the host, and can also be initiated by the peer processor. Generally, a TLS/SSL module does not handle network communications, but rather deals with generating and/or decoding messages as abstract data, without reference to a communication channel or storage medium. Typically, TLS/SSL is utilized in conjunction with some other component that knows how to utilize network protocols. In an exemplary embodiment, the host processor 22, via SSL/TLS module 36, sends information about the protocol to be utilized and other required parameters to the proxy server 24. The SSL/TLS module 36 comprises a software, firmware, and/or hardware module for communicating with the proxy server 24 to establish and maintain communications in accordance with the SSL/TLS protocol. The SSL/TLS module 36 is exemplary. Any appropriate module, or other means, can be implemented to establish and maintain communications in accordance with any appropriate protocol.
As part of the initiation, the proxy server 24 recognizes that the connection will be an encrypted connection requiring end-to-end encryption between the host processor 22 and the peer processor 26. The host processor 22, via the SSL/TLS module 36, proceeds to provide SSL/TLS handshaking messages to the proxy server 24 to establish the cryptographic keys needed to encrypt, decrypt, and/or authentic the communications to be carried over the interface 32. The SSL/TLS module 36 provides the cryptographic key (or keys) needed for decryption to the security processor 30, via the firewall module 34 (if implemented). The firewall module 34 is exemplary. The firewall module 34 can comprise software, firmware, and/or hardware to facilitate providing communications through the proxy server 24. If a firewall is not implemented, then the cryptographic key(s) is provided to the security processor 30 without going through the firewall module 34.
In an exemplary embodiment, multiple proxy servers are provided with multiple sets of cryptographic keys, for providing encrypted communications between the host processor 22 and multiple peer processors. The multiple peer processors can reside in a single network or in any combination of multiple networks.
When the cryptographic key(s) is provided to the security processor 30, in an exemplary embodiment, the host processor 22 provides proof of the correctness of the provided cryptographic key(s). Proof of correctness can be accomplished by any appropriate means. For example, an exemplary process for proving correctness of the cryptographic key(s) utilizing SSL version 3 is described below. This process verifies that the encryption key provided by the peer (client) is correct, before it begins forwarding any application level traffic. The proof occurs during the last stage of the handshake process. In this final stage, both peers (client and host) send the commonly referred to “Finished” message. The Finished message is the first message encrypted with the keys recently negotiated during the handshake process. In the case of SSL version 3 the message contains two values, as shown below:
As proof procedure, the client is typically requested to provide the values IV-1, IV-2, X1 and X2. In principle either of the sets <IV-1, X1> or <IV-2, X2> is by itself sufficient. Either pair or both can be requested. In an exemplary implementation, only <IV-2, X2> would be requested because SHA1 is the stronger hash function. If the client provides an incorrect decryption key to the server, the decrypted values for MD5_hash and SHA1_hash in the Finished message will be random. Because MD5 and SHA1 algorithms are designed to be non-invertible, the client will then be unable to come up with the correct pair of initialization vector and input yielding a hash value matching what was found in the decrypted Finished message.
After the handshake process is complete, the client provides a proof of correctness for each key escrowed. For example, if only inbound traffic is inspected (e.g., only traffic originating from remote peer, destined for a host on the internal network) then the client provides the pair <IV, X> corresponding to the Finished message in that direction (Recall that a finished message is sent by both peers.). Until this proof is provided, no packets arriving from the remote peer intended for the client on that connection will be forwarded. The client can be allowed to send outbound packets, but any incoming packets will be queued for future delivery once the proof is complete. When the <IV, X> pair is received, the following occurs:
Similarly in the other direction, if a policy calls for inspection of outbound traffic, the client provides the matching pair <IV, X> corresponding to the Finished message it sends out. Verification proceeds as described above. Outbound packets on that connection are queued until proof is complete, but inbound traffic can be allowed to pass through.
After all necessary decryption keys are provided to the security processor 30, and the security processor 30 verifies the optional proof, encrypted communications between the host processor 22 and the peer processor 26 via the interface 32 commences. As encrypted communications are being carried over the interface 32, the security processor 30 monitors the encrypted communications (also referred to as traffic) via interface 38. The security processor 30 and the interface 38 are implemented so that the encrypted communications over the interface 32 is not perturbed when monitored. As used herein, “not perturbed” means that the peer processor receives the exact data provided by the host processor or that the host processor receives the exact data provided by the peer processor. This is in contrast to the mediation approach described above wherein data is recreated. The security processor 30 decrypts the monitored encrypted communications, again ensuring that the encrypted communications being carried over the interface 32 is not perturbed. The security processor 30 inspects the decrypted information for any faults such as bugs, viruses, malicious software, or the like. If faults are detected, the security processor 30 notifies the host processor of the fault, and the host processor can take appropriate action. In an exemplary embodiment, when a fault is detected, the proxy processor can prevent the flow of encrypted communications to the host processor. 100251 In an exemplary embodiment, encrypted communications being carried over the interface 32 comprise encrypted information and an encrypted authenticator indicative of the authenticity of the encrypted information. In one embodiment, information is encrypted with a different key than is used to encrypt the authenticator. In another embodiment, the authenticator comprises a hash value encrypted with the same key or a different key than the key used to encrypt the information. In an exemplary embodiment, the security processor 30 receives the key (or keys) necessary to decrypt the encrypted information and the security processor 30 is not provided the encryption key(s) needed to encrypt the authenticator. Thus, even if the key(s) provided to the security processor 30 were attempted to be used to corrupt the encrypted communications over the interface 24, the encrypted authenticator would remain valid. And, upon proper decryption of the encrypted authenticator, any attempt to corrupt the encrypted communications would be detected.
The various techniques described herein may be implemented in connection with hardware or software or, where appropriate, with a combination of both. Thus, the methods and apparatuses for inspecting encrypted information or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in tangible media, such as floppy diskettes, CD-ROMs, hard drives, or any other machine-readable storage medium, wherein, when the program code is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for inspecting encrypted information. In the case of program code execution on programmable computers, the computing device will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. The program(s) can be implemented in assembly or machine language, if desired. In any case, the language may be a compiled or interpreted language, and combined with hardware implementations.
The methods and apparatuses for inspecting encrypted information also can be practiced via communications embodied in the form of program code that is transmitted over some transmission medium, such as over electrical wiring or cabling, through fiber optics, or via any other form of transmission, wherein, when the program code is received and loaded into and executed by a machine, such as an EPROM, a gate array, a programmable logic device (PLD), a client computer, or the like, the machine becomes an apparatus for inspecting encrypted information. When implemented on a general-purpose processor, the program code combines with the processor to provide a unique apparatus that operates to invoke the functionality for inspecting encrypted information. Additionally, any storage techniques used in connection with inspecting encrypted information can invariably be a combination of hardware and software.
Inspecting encrypted information while maintaining encryption end-to-end integrity as described herein provides a means for an intermediary to view encrypted communications and be prevented from altering the encrypted communications. If desired, the intermediary can view and modify traffic flow in one direction only, thus providing enhanced privacy and integrity. The processing time needed to decrypt the encrypted communications is less than the processing time needed to decrypt the encrypted communications and subsequently encrypt the decrypted communications.
Further, inspecting encrypted information as described herein can be implemented using symmetric key cryptographic techniques. And, the SSL/TLS decrypt/re-encrypt approach requires Public-Key cryptographic techniques, which are on the order of 100 times more computationally intensive than symmetric key cryptographic techniques. Trust in the proxy server is limited because the proxy server can not modify messages originating from either the host processor or the peer processor. The proxy server has read-access to the traffic, but does not have write-access to the traffic. Read access means the ability to decrypt encrypted traffic. When all network traffic between the peers is passing through the proxy, that proxy can always see encrypted traffic. But without the key disclosed, the proxy can not decrypt to access the plaintext, which is what is meant by read access. Similarly the proxy can substitute different traffic instead of forwarding between peers, but the authenticator will not match. Thus, unless the proxy is given the correct key, the peer will reject such modifications. Further, giving write access means giving the authenticator key so that the proxy can make changes to the traffic that will be accepted by that peer.
The system can be configured in many different ways. For example, the proxy server can be given either read access or read/write access to outbound traffic, depending on whether the client discloses the encryption key only, or both the encryption/authenticator keys respectively. Similarly the proxy server can be given read access or read/write access to inbound traffic depending on whether one or both keys are disclosed.
In an exemplary embodiment, the owner of the internal network is concerned with preventing bugs, viruses, malicious software, and the like from entering the internal network. Thus, the security process can be implemented to decrypt only incoming traffic. This implementation complies with the known principle of least privilege and prevents the proxy server from decrypting outgoing traffic.
Further, inspecting encrypted information while maintaining encryption end-to-end integrity as described herein prevents disclosure to an inspector of sensitive authentication material, such as passwords, because the security processor can be prevented from seeing the outgoing traffic. Inspecting encrypted information while maintaining encryption end-to-end integrity as described herein is applicable in situations wherein mutual authentication is needed between the host and peer processors. Also, a system is envisioned in which the host processor approves giving keys to the security processor. The host processor thus is aware of the traffic being inspected, as well as being provided a choice to decline inspection (and suffer the consequences of the policy applied if it does not agree to the inspection).
While methods and apparatuses for inspecting encrypted information have been described in connection with the illustrative embodiments of the various figures, it is to be understood that other similar embodiments may be used or modifications and additions may be made to the described embodiments for performing the same function for inspecting encrypted information without deviating therefrom. Therefore, methods and apparatuses for inspecting encrypted information should not be limited to any single embodiment, but rather should be construed in breadth and scope in accordance with the appended claims.