# US 2017/0257385 A1 · Variable runtime transpilation

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

- Number: US 2017/0257385 A1
- Document ID: US20170257385A1
- Status: Published application
- Kind: A1
- Application number: 15/059,080
- Filed: 2016-03-02
- Published: 2017-09-07
- Earliest claimed: 2016-03-02
- Assignees: Shape Security, Inc.
- Applicants: Shape Security, Inc.
- Inventors: JARROD S. OVERSON; ARIYA HIDAYAT; MICHAEL FICARRA; BEI ZHANG; JUSTIN CALL
- Web page: https://patentgrep.com/patent/US20170257385A1

## CPC

- H04L 63/1466: {Active attacks involving interception, injection, modification, spoofing of data unit addresses, e.g. hijacking, packet injection or TCP sequence number attacks}
- H04L 63/1416: {Event detection, e.g. attack signature detection}
- H04L 63/1433: {Vulnerability analysis}
- H04L 63/1441: {Countermeasures against malicious traffic (countermeasures against attacks on cryptographic mechanisms H04L9/002)}
- H04L 63/168: {above the transport layer}
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L 67/565: Conversion or adaptation of application format or content (adding application control or application functional data H04L67/561)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

In an approach, an apparatus comprises: one or more processors; a processor logic coupled to the one or more processors and configured to: intercept, from a client computer, a request directed to a server computer that identifies a purported user agent executing on the client computer; send, to the server computer, the request from the client computer; intercept, from the server computer, one or more original instructions to be executed by the purported user agent of the client computer; determine one or more features supported by the purported user agent that are not utilized by the one or more original instructions; transform the one or more original instructions into one or more revised instructions which, when executed by the purported user agent, cause the purported user agent to utilize the one or more features; send, to the client computer, the one or more revised instructions.

## Claims

### Claim 1

A computer system comprising:
one or more processors;
logic coupled to the one or more processors and configured to:
intercept, from a client computer, a request directed to a server computer that identifies a purported user agent executing on the client computer;
send, to the server computer, the request from the client computer;
intercept, from the server computer, one or more original instructions to be executed by the purported user agent of the client computer;
determine one or more features supported by the purported user agent that are not utilized by the one or more original instructions;
transform the one or more original instructions into one or more revised instructions which, when executed by the purported user agent, cause the purported user agent to utilize the one or more features;
send, to the client computer, the one or more revised instructions.

### Claim 2 (depends on 1)

The system of claim 1, wherein the request is a Hypertext Transfer Protocol (HTTP) request and identifies the purported user agent in a user agent field of a header of the HTTP request.

### Claim 3 (depends on 1)

The system of claim 1, wherein the purported user agent is a type of browser and the one or more original instructions represent a web page containing one or more of: Hypertext Markup Language (HTML) instructions, Cascading Style Sheet (CSS) instructions, or JavaScript instructions.

### Claim 4 (depends on 1)

The system of claim 1, wherein the logic is configured to determine the one or more features supported by the purported user agent based on a support matrix that identifies, for each user agent of a plurality of user agents, which features are supported by the user agent.

### Claim 5 (depends on 1)

The system of claim 1, wherein the logic is configured to transform the one or more original instructions into the one or more revised instructions by replacing one or more instances of a first syntax located in the original instructions with one or more instances of a second syntax that is supported by the purported user agent.

### Claim 6 (depends on 1)

The system of claim 1, wherein the one or more original instructions include a reference to a function that is unavailable to the purported user agent and the logic is configured to transform the one or more original instructions into the one or more revised instructions by supplying an implementation of the function.

### Claim 7 (depends on 1)

The system of claim 1, wherein the logic is configured to transform the one or more original instructions into the one or more revised instructions by replacing a reference to an operation that is not native to the purported user agent with a reference to a different operation that is native to the purported user agent.

### Claim 8 (depends on 1)

The system of claim 1, wherein the logic is configured to transform the one or more original instructions into the one or more revised instructions by replacing one or more operations located within the one or more original instructions with one or more operations that are supported by the purported user agent or the client computer.

### Claim 9 (depends on 1)

The system of claim 1, wherein the logic is configured to:
receive, from the client computer, a response generated based on the client computer executing the one or more revised instructions;
determine, based on the response, whether the client computer is executing the purported user agent or a bot.

### Claim 10 (depends on 9)

The system of claim 9, wherein the logic is configured to:
transform the one or more original instructions into the one or more revised instructions by injecting one or more test instructions which cause the client computer to utilize a particular feature of the purported user agent and send back a result of executing the one or more test instructions in the response, and
in response to receiving the response generated based on the client computer executing the revised instructions, determine whether the client computer is executing the purported user agent or the bot based on comparing the result to an expected result representing a correct utilization of the feature by the client computer.

### Claim 11 (depends on 9)

The system of claim 9, wherein the logic is configured to:
in response to determining that the client computer is executing the bot, performing one or more countermeasures against the client computer, wherein the one or more countermeasures include one or more of: blocking communication with the client computer, storing data that causes future instructions sent to the client computer to be transformed with an increased number of injected features or more invasive injected features, or sending instructions to the client computer designed to hinder the client computer.

### Claim 12 (depends on 9)

The system of claim 9, wherein the logic is configured to:
in response to determining that the client computer is executing the purported user agent, reverse transform the response to appear as though the client computer executed the one or more original instructions,
send the reverse transformed response to the server computer.

### Claim 13 (depends on 1)

The system of claim 1, wherein the logic is further configured to:
determine one or more features that are not supported by the purported user agent and that are not utilized by the one or more original instructions, wherein, when the logic transforms the one or more original instructions into the one or more revised instructions, the one or more revised instructions attempt to cause the purported user agent to utilize the one or more features that are not supported by the purported user agent.

### Claim 14

A computer system comprising:
one or more processors;
a logic coupled to the one or more processors and configured to:
intercept, from a client computer, a Hypertext Transfer Protocol (HTTP) request directed to a server computer that identifies a purported browser;
send, to the server computer, the HTTP request from the client computer;
intercept, from the server computer, a web page comprising one or more Hypertext Markup Language (HTML) instructions, one or more Cascading Style Sheets (CSS) instructions, and one or more original JavaScript instructions;
determine one or more features supported by the purported browser that are not utilized by the one or more original JavaScript instructions;
transform the one or more original JavaScript instructions into one or more revised JavaScript instructions which, when executed by the purported browser, causes the purported browser to utilize the one or more features;
send, to the client computer, the one or more revised JavaScript instructions.

### Claim 15

A method comprising:
intercepting, from a client computer, a request directed to a server computer that identifies a purported user agent executing on the client computer;
sending, to the server computer, the request from the client computer;
intercepting, from the server computer, one or more original instructions to be executed by the purported user agent of the client computer;
determining one or more features supported by the purported user agent that are not utilized by the one or more original instructions;
transforming the one or more original instructions into one or more revised instructions which, when executed by the purported user agent, causes the purported user agent to utilize the one or more features;
sending, to the client computer, the one or more revised instructions,
wherein the method is performed by one or more computing devices.

### Claim 16 (depends on 15)

The method of claim 15, wherein the request is a Hypertext Transfer Protocol (HTTP) request and identifies the purported user agent in a user agent field of a header of the HTTP request.

### Claim 17 (depends on 15)

The method of claim 15, wherein the purported user agent is a type of browser and the one or more original instructions represent a web page containing one or more of: Hypertext Markup Language (HTML) instructions, Cascading Style Sheet (CSS) instructions, or JavaScript instructions.

### Claim 18 (depends on 15)

The method of claim 15, wherein determining the one or more features supported by the purported user agent is performed based on a support matrix that identifies, for each user agent of a plurality of user agents, which features are supported by the user agent.

### Claim 19 (depends on 15)

The method of claim 15, wherein transforming the one or more original instructions into the one or more revised instructions is performed by replacing one or more instances of a first syntax located in the original instructions with one or more instances of a second syntax that is supported by the purported user agent.

### Claim 20 (depends on 15)

The method of claim 15, wherein the one or more original instructions include a reference to a function that is unavailable to the purported user agent and transforming the one or more original instructions into the one or more revised instructions is performed by supplying an implementation of the function.

### Claim 21 (depends on 15)

The method of claim 15, wherein transforming the one or more original instructions into the one or more revised instructions is performed by replacing a reference to an operation that is not native to the purported user agent with a reference to a different operation that is native to the purported user agent.

### Claim 22 (depends on 15)

The method of claim 15, wherein transforming the one or more original instructions into the one or more revised instructions is performed by replacing one or more operations located within the one or more original instructions with one or more operations that are supported by the purported user agent or the client computer.

### Claim 23 (depends on 15)

The method of claim 15, further comprising:
receiving, from the client computer, a response generated based on the client computer executing the one or more revised instructions;
determining, based on the response, whether the client computer is executing the purported user agent or a bot.

### Claim 24 (depends on 23)

The method of claim 23, wherein:
transforming the one or more original instructions into the one or more revised instructions is performed by injecting one or more test instructions which cause the client computer to utilize a particular feature of the purported user agent and send back a result of executing the one or more test instructions in the response, and further comprising:
in response to receiving the response generated based on the client computer executing the revised instructions, determine whether the client computer is executing the purported user agent or the hot based on comparing the result to an expected result representing a correct utilization of the feature by the client computer.

### Claim 25 (depends on 23)

The method of claim 23, further comprising:
in response to determining that the client computer is executing the hot, performing one or more countermeasures against the client computer, wherein the one or more countermeasures include one or more of: blocking communication with the client computer, storing data that causes future instructions sent to the client computer to be transformed with an increased number of injected features or more invasive injected features, or sending instructions to the client computer designed to hinder the client computer.

### Claim 26 (depends on 23)

The method of claim 23, further comprising:
in response to determining that the client computer is executing the purported user agent, reverse transform the response to appear as though the client computer executed the one or more original instructions,
send the reverse transformed response to the server computer.

### Claim 27 (depends on 15)

The method of claim 15, further comprising:
determining one or more features that are not supported by the purported user agent and that are not utilized by the one or more original instructions, wherein, when transforming the one or more original instructions into the one or more revised instructions, the one or more revised instructions attempt to cause the purported user agent to utilize the one or more features that are not supported by the purported user agent.

### Claim 28

A method comprising:
intercepting, from a client computer, a Hypertext Transfer Protocol (HTTP) request directed to a server computer that identifies a purported browser;
sending, to the server computer, the HTTP request from the client computer;
intercepting, from the server computer, a web page comprising one or more Hypertext Markup Language (HTML) instructions, one or more Cascading Style Sheets (CSS) instructions, and one or more original JavaScript instructions;
determining one or more features supported by the purported browser that are not utilized by the one or more original JavaScript instructions;
transforming the one or more original JavaScript instructions into one or more revised JavaScript instructions which, when executed by the purported browser, cause the purported browser to utilize the one or more features;
sending, to the client computer, the one or more revised JavaScript instructions,
wherein the method is performed by one or more computing devices.
