# US 2019/0356695 A1 · Method and apparatus for decryption of encrypted ssl data from packet traces

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

- Number: US 2019/0356695 A1
- Document ID: US20190356695A1
- Status: Published application
- Kind: A1
- Application number: 16/530,529
- Filed: 2019-08-02
- Published: 2019-11-21
- Earliest claimed: 2014-11-19
- Assignees: AT&T Intellectual Property I, L.P.
- Applicants: AT&T Intellectual Property I, L.P.
- Inventors: Feng Qian; Oliver Spatscheck; Subhabrata Sen
- Web page: https://patentgrep.com/patent/US20190356695A1

## CPC

- H04L 63/166: {at the transport layer}
- H04L 63/0471: {applying encryption by an intermediary, e.g. receiving clear information at the intermediary and encrypting the received information at the intermediary before forwarding}
- H04L 63/1408: {by monitoring network traffic (monitoring network traffic per se H04L43/00)}
- H04L 63/1425: {Traffic logging, e.g. anomaly detection}
- H04L 63/168: {above the transport layer}
- H04L 63/0272: {Virtual private networks}
- H04L 63/0281: {Proxies}
- H04L 63/306: {intercepting packet switched data communications, e.g. Web, Internet or IMS communications}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

An example first device disclosed herein is to obtain, from a library of the first device, a pre-master secret value and a master secret value associated with a session key for a communication session between the first device and a second device, the library instrumented to log the pre-master and master secret values during handshaking, the session key based on the pre-master secret value, the master secret value and data strings exchanged during the handshaking. The disclosed example first device is also to capture a packet level trace corresponding to the communication session, the packet level trace including the data strings and encrypted data. The disclosed example first device is further to determine the session key based on the pre-master secret value, the master secret value and the data strings without use of a proxy, and decrypt the encrypted data with the session key to obtain decrypted data.

## Claims

### Claim 1

A first device comprising:
memory including computer readable instructions; and
a processor to execute the computer readable instructions to perform operations comprising:
obtaining, from a library of the first device, a pre-master secret value and a master secret value associated with a session key for a communication session between the first device and a second device, the library instrumented to log the pre-master secret value and the master secret value during handshaking between the first device and the second device, the session key based on the pre-master secret value, the master secret value and data strings exchanged between the first device and the second device during the handshaking;
capturing a packet level trace corresponding to the communication session, the packet level trace including the data strings and encrypted data associated with the communication session;
determining the session key based on the pre-master secret value, the master secret value and the data strings without use of a proxy; and
decrypting the encrypted data of the packet level trace with the session key to obtain decrypted data for traffic measurement.

### Claim 2 (depends on 1)

The first device of claim 1, wherein the determining of the session key includes:
evaluating a function with the pre-master secret value and the data strings to determine an output value of the function; and
comparing the output value of the function with the master secret value to determine the master secret value is associated with the encrypted data.

### Claim 3 (depends on 3)

The first device of claim 3, wherein the function is a first function, and the determining of the session key further includes evaluating a second function with the master secret value and the data strings to determine the session key.

### Claim 4 (depends on 1)

The first device of claim 1, wherein the capturing of the packet level trace includes recording the packet level trace in a packet capture format.

### Claim 5 (depends on 1)

The first device of claim 1, wherein the communication session corresponds to one of a secure socket layer protocol session or a transport layer security protocol session.

### Claim 6 (depends on 1)

The first device of claim 1, wherein the decrypting of the encrypted data of the packet level trace with the session key to obtain the decrypted data for traffic measurement occurs after the communication session has ended.

### Claim 7 (depends on 1)

The first device of claim 1, wherein the data strings are exchanged between the first device and the second device in plain text.

### Claim 8

Computer readable memory comprising computer readable instructions that, when executed by a processor of a first device, cause the processor to perform operations including:
obtaining, from a library of the first device, a pre-master secret value and a master secret value associated with a session key for a communication session between the first device and a second device, the library instrumented to log the pre-master secret value and the master secret value during handshaking between the first device and the second device, the session key based on the pre-master secret value, the master secret value and data strings exchanged between the first device and the second device during the handshaking;
capturing a packet level trace corresponding to the communication session, the packet level trace including the data strings and encrypted data associated with the communication session;
determining the session key based on the pre-master secret value, the master secret value and the data strings without use of a proxy; and
decrypting the encrypted data of the packet level trace with the session key to obtain decrypted data for traffic measurement.

### Claim 9 (depends on 8)

The computer readable memory of claim 8, wherein the determining of the session key includes:
evaluating a function with the pre-master secret value and the data strings to determine an output value of the function; and
comparing the output value of the function with the master secret value to determine the master secret value is associated with the encrypted data.

### Claim 10 (depends on 9)

The computer readable memory of claim 9, wherein the function is a first function, and the determining of the session key further includes evaluating a second function with the master secret value and the data strings to determine the session key.

### Claim 11 (depends on 8)

The computer readable memory of claim 8, wherein the capturing of the packet level trace includes recording the packet level trace in a packet capture format.

### Claim 12 (depends on 8)

The computer readable memory of claim 8, wherein the communication session corresponds to one of a secure socket layer protocol session or a transport layer security protocol session.

### Claim 13 (depends on 8)

The computer readable memory of claim 8, wherein the decrypting of the encrypted data of the packet level trace with the session key to obtain the decrypted data for traffic measurement occurs after the communication session has ended.

### Claim 14 (depends on 8)

The computer readable memory of claim 8, wherein data strings are exchanged between the first device and the second device in plain text.

### Claim 15

A method comprising:
obtaining, from a library of a first device, a pre-master secret value and a master secret value associated with a session key for a communication session between the first device and a second device, the library instrumented to log the pre-master secret value and the master secret value during handshaking between the first device and the second device, the session key based on the pre-master secret value, the master secret value and data strings exchanged between the first device and the second device during the handshaking;
capturing, by executing an instruction with a processor of the first device, a packet level trace corresponding to the communication session, the packet level trace including the data strings and encrypted data associated with the communication session;
determining, by executing an instruction with the processor of the first device, the session key based on the pre-master secret value, the master secret value and the data strings without use of a proxy; and
decrypting, by executing an instruction with the processor of the first device, the encrypted data of the packet level trace with the session key to obtain decrypted data for traffic measurement.

### Claim 16 (depends on 15)

The method of claim 15, wherein the determining of the session key includes:
evaluating a function with the pre-master secret value and the data strings to determine an output value of the function; and
comparing the output value of the function with the master secret value to determine the master secret value is associated with the encrypted data.

### Claim 17 (depends on 16)

The method of claim 16, wherein the function is a first function, and the determining of the session key further includes evaluating a second function with the master secret value and the data strings to determine the session key.

### Claim 18 (depends on 15)

The method of claim 15, wherein the capturing of the packet level trace includes recording the packet level trace in a packet capture format.

### Claim 19 (depends on 15)

The method of claim 15, wherein the communication session corresponds to one of a secure socket layer protocol session or a transport layer security protocol session, and the data strings are exchanged between the first device and the second device in plain text.

### Claim 20 (depends on 15)

The method of claim 15, wherein the decrypting of the encrypted data of the packet level trace with the session key to obtain the decrypted data for traffic measurement occurs after the communication session has ended.
