# US 2017/0289109 A1 · Systems and Methods for Decrypting Network Traffic in a Virtualized Environment

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0289109 A1
- Document ID: US20170289109A1
- Status: Published application
- Kind: A1
- Application number: 15/471,981
- Filed: 2017-03-28
- Published: 2017-10-05
- Earliest claimed: 2016-04-04
- Assignees: Bitdefender IPR Management Ltd.
- Applicants: Bitdefender IPR Management Ltd.
- Inventors: Radu CARAGEA
- Web page: https://patentgrep.com/patent/US20170289109A1

## CPC

- H04L 63/0428: {wherein the data content is protected, e.g. by encrypting or encapsulating the payload}
- G06F 9/45504: {Abstract machines for program code execution, e.g. Java virtual machine [JVM], interpreters or emulators}
- G06F 12/1009: using page tables, e.g. page table structures
- G06F 21/566: {Dynamic detection, i.e. detection performed at run-time, e.g. emulation, suspicious activities}
- H04L 9/14: using a plurality of keys or algorithms
- H04L 9/30: Public key, i.e. encryption algorithm being computationally infeasible to invert or user's encryption keys not requiring secrecy
- H04L 9/3249: {using RSA or related signature schemes, e.g. Rabin scheme}
- H04L 9/3263: {involving certificates, e.g. public key certificate [PKC] or attribute certificate [AC]; Public key infrastructure [PKI] arrangements (network architectures or network communication protocols for supporting authentication of entities using certificates in a packet data network H04L63/0823)}
- H04L 63/06: {for supporting key management in a packet data network (cryptographic mechanisms or cryptographic arrangements for key management H04L9/08)}
- H04L 63/166: {at the transport layer}
- G06F 2212/154: Networked environment
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Described systems and methods enable a decryption of encrypted communication between a client system and a remote party, for applications such as detection and analysis of malicious software, intrusion detection, and surveillance, among others. The client system executes a virtual machine and an introspection engine outside the virtual machine. The introspection engine is configured to identify memory pages whose contents have changed between a first session event (e.g., a ServerHello message) and a second session event (e.g., a ClientFinished message). The respective memory pages are likely to contain encryption key material for the respective communication session. A decryption engine may then attempt to decrypt an encrypted payload of the respective communication session using information derived from the content of the identified memory pages.

## Claims

### Claim 1

A client system comprising a hardware processor and a memory, the hardware processor configured to execute a virtual machine and an introspection engine, wherein:
the virtual machine is configured to carry out a communication session with a remote party, the communication session comprising a handshake message followed by an encrypted payload, wherein the handshake message contains an encryption parameter used by the client system to derive an encryption key, and wherein the encrypted payload is encrypted with the encryption key; and
the introspection engine executes outside the virtual machine and is configured to:
identify within the memory a target memory page according to whether a content of the target memory page has changed between an occurrence of a first session event of the communication session and an occurrence of a second session event of the communication session, and
in response, transmit the content of the target memory page to a decryption engine configured to decrypt the encrypted payload according to the content.

### Claim 2 (depends on 1)

The client system of claim 1, wherein the first session event comprises sending the handshake message from the client system to the remote party or receiving the handshake message at the client system.

### Claim 3 (depends on 2)

The client system of claim 2, wherein the communication session complies with a Transport Layer Security (TLS) protocol, and wherein the handshake message comprises a ClientHello message or a ServerHello message.

### Claim 4 (depends on 1)

The client system of claim 1, wherein the second session event comprises sending an encrypted data packet from the client system to the remote party or receiving the encrypted data packet at the client system, and wherein the data packet is encrypted with the encryption key.

### Claim 5 (depends on 4)

The client system of claim 4, wherein the communication session complies with a Transport Layer Security protocol, and wherein the data packet comprises a part of a ClientFinished message or a part of a ServerFinished message.

### Claim 6 (depends on 4)

The client system of claim 4, wherein the data packet comprises a part of the encrypted payload.

### Claim 7 (depends on 1)

The client system of claim 1, wherein identifying the target memory page comprises:
selecting a candidate memory page from a pool of memory pages used by the virtual machine;
in response to detecting the occurrence of the second session event, determining according to a page table entry of the candidate memory page whether the candidate memory page has been written to prior to the occurrence of the second session event;
in response to determining whether the candidate memory page has been written to, when the candidate memory page has been written to, selecting the candidate memory page as the target memory page.

### Claim 8 (depends on 1)

The client system of claim 1, wherein the at least one hardware processor is configured to further execute a network filter outside the virtual machine, the network filter controlling a network adapter of the client system, wherein:
the network filter is configured to intercept the handshake message, and in response, to transmit a notification to the introspection engine; and
the introspection engine is further configured to infer the occurrence of the first session event according to the notification.

### Claim 9 (depends on 1)

The client system of claim 1, wherein the at least one hardware processor is configured to further execute a network filter outside the virtual machine, the network filter controlling a network adapter of the client system, wherein:
the introspection engine is further configured, in response to the occurrence of the second session event, to copy the content of the target memory page, and in response, to transmit a notification to the network filter; and
the network filter is configured to intercept a data packet destined for the virtual machine, and in response, to delay delivery of the data packet to the virtual machine until receiving the notification.

### Claim 10 (depends on 1)

The client system of claim 1, wherein the introspection engine is further configured, in response to an occurrence of a third event, to identify the target memory page further according to whether the content of the target memory page has changed between the occurrence of the first session event and the occurrence of the third event, wherein the occurrence of the third event is caused by another communication session concurrent with the communication session.

### Claim 11

A server computer system comprising a hardware processor configured to execute a decryption engine configured to carry out decryption procedures for a plurality of client systems, a decryption procedure comprising:
receiving a content of a target memory page of a client system of the plurality of client systems;
receiving an encrypted payload of a communication session carried out between a virtual machine executing on the client system and a remote party; and
in response, decrypting the encrypted payload according to the content of the target memory page,
wherein the communication session comprises a handshake message followed by the encrypted payload, wherein the handshake message contains an encryption parameter used by the client system to derive an encryption key, and wherein the encrypted payload is encrypted with the encryption key, and
wherein the client system is configured to execute an introspection engine outside of the virtual machine, the introspection engine configured to identify the target memory page within a memory of the client system according to whether the content of the target memory page has changed between an occurrence of a first session event of the communication session and an occurrence of a second session event of the communication session.

### Claim 12 (depends on 11)

The server computer system of claim 11, wherein decrypting the encrypted payload comprises:
deriving a candidate decryption key from the content of the target memory page; and
attempting to decrypt the encrypted payload using the candidate decryption key.

### Claim 13 (depends on 11)

The server computer system of claim 11, wherein the first session event comprises sending the handshake message from the client system to the remote party or receiving the handshake message at the client system.

### Claim 14 (depends on 13)

The server computer system of claim 13, wherein the communication session complies with a Transport Layer Security protocol, and wherein the handshake message comprises a ClientHello message or a ServerHello message.

### Claim 15 (depends on 13)

The server computer system of claim 13, wherein the second session event comprises sending an encrypted data packet from the client system to the remote party or receiving the encrypted data packet at the client system, wherein the data packet is encrypted with the encryption key.

### Claim 16 (depends on 15)

The server computer system of claim 15, wherein the communication session complies with a Transport Layer Security protocol, and wherein the data packet comprises a part of a ClientFinished message or a part of a ServerFinished message.

### Claim 17 (depends on 15)

The server computer system of claim 15, wherein the data packet comprises a part of the encrypted payload.

### Claim 18 (depends on 11)

The server computer system of claim 11, wherein identifying the target memory page comprises:
selecting a candidate memory page from a pool of memory pages used by the virtual machine;
in response to detecting the occurrence of the second session event, determine according to a page table entry of the candidate memory page whether the candidate memory page has been written to prior to the occurrence of the second session event;
in response to determining whether the candidate memory page has been written to, when the candidate memory page has been written to, select the candidate memory page as the target memory page.

### Claim 19 (depends on 11)

The server computer system of claim 11, wherein the client system is further configured to execute a network filter outside the virtual machine, the network filter controlling a network adapter of the client system, wherein:
the network filter is configured to intercept the handshake message, and in response, to transmit a notification to the introspection engine; and
the introspection engine is further configured to infer the occurrence of the first session event according to the notification.

### Claim 20 (depends on 11)

The server computer system of claim 11, wherein the client system is further configured to execute a network filter outside the virtual machine, the network filter controlling a network adapter of the client system, wherein:
the introspection engine is further configured, in response to the occurrence of the second session event, to copy the content of the target memory page, and in response, to transmit a notification to the network filter; and
the network filter is configured to intercept a data packet destined for the virtual machine, and in response, to delay delivery of the data packet to the virtual machine until receiving the notification.

### Claim 21 (depends on 11)

The server computer system of claim 11, wherein the introspection engine is further configured, in response to an occurrence of a third event, to identify the target memory page further according to whether the content of the target memory page has changed between the occurrence of the first session event and the occurrence of the third event, wherein the occurrence of the occurrence of the third event is caused by another communication session concurrent with the communication session.

### Claim 22 (depends on 11)

The server computer system of claim 11, wherein the hardware processor is further configured to determine whether the client system comprises malicious software according to a result of decrypting the encrypted payload.

### Claim 23

A non-transitory computer-readable medium storing instructions which, when executed by a hardware processor of a client system further comprising a memory, cause the hardware processor to form an introspection engine executing outside a virtual machine executing on the client system, wherein:
the virtual machine is configured to carry out a communication session with a remote party, the communication session comprising a handshake message followed by an encrypted payload, wherein the handshake message contains an encryption parameter used by the client system to derive an encryption key, and wherein the encrypted payload is encrypted with the encryption key; and
the introspection engine is configured to:
identify within the memory a target memory page according to whether a content of the target memory page has changed between an occurrence of a first session event of the communication session and an occurrence of a second session event of the communication session, and
in response, transmit the content of the target memory page to a decryption engine configured to decrypt the encrypted payload according to the content.

### Claim 24

A method of decrypting encrypted communications between a client system and a remote party, wherein the client system is configured to execute a virtual machine, wherein:
the virtual machine is configured to carry out a communication session with the remote party, the communication session comprising a handshake message followed by an encrypted payload, wherein the handshake message contains an encryption parameter used by the client system to derive an encryption key, and wherein the encrypted payload is encrypted with the encryption key,
the method comprising:
employing at least one hardware processor to identify within a memory of the client system a target memory page according to whether a content of the target memory page has changed between an occurrence of a first session event of the communication session and an occurrence of a second session event of the communication session;
employing at least one hardware processor to harvest the encrypted payload; and
employing at least one hardware processor to decrypt the encrypted payload according to the content of the target memory page.
