# US 2019/0243971 A1 · Using instrumentation code to detect bots or malware

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

- Number: US 2019/0243971 A1
- Document ID: US20190243971A1
- Status: Published application
- Kind: A1
- Application number: 16/233,634
- Filed: 2018-12-27
- Published: 2019-08-08
- Earliest claimed: 2013-03-15
- Assignees: Shape Security, Inc.
- Applicants: Shape Security, Inc.
- Inventors: Justin D. Call; Xiaohan Huang; Xiaoming Zhou; Subramanian Varadarajan; Marc R. Hansen
- Web page: https://patentgrep.com/patent/US20190243971A1

## CPC

- G06F 21/563: {by source code analysis}
- G06F 11/3065: {Monitoring arrangements determined by the means or processing involved in reporting the monitored data (error or fault reporting or logging G06F11/0766)}
- G06F 11/3409: {for performance assessment}
- G06F 11/3644: {by instrumenting at runtime}
- G06F 21/54: by adding security routines or objects to programs
- G06F 21/566: {Dynamic detection, i.e. detection performed at run-time, e.g. emulation, suspicious activities}
- H04L 63/0428: {wherein the data content is protected, e.g. by encrypting or encapsulating the payload}
- 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/123: {received data contents, e.g. message integrity}
- H04L 63/1416: {Event detection, e.g. attack signature detection}
- H04L 63/1425: {Traffic logging, e.g. anomaly detection}
- H04L 63/1441: {Countermeasures against malicious traffic (countermeasures against attacks on cryptographic mechanisms H04L9/002)}
- H04L 63/145: {the attack involving the propagation of malware through the network, e.g. viruses, trojans or worms}
- H04L 63/1483: {service impersonation, e.g. phishing, pharming or web spoofing (detection of rogue wireless access points H04W12/12)}
- G06F 21/128: {involving web programs, i.e. using technology especially used in internet, generally interacting with a web browser, e.g. hypertext markup language [HTML], applets, java}
- G06F 21/14: against software analysis or reverse engineering, e.g. by obfuscation
- G06F 21/51: at application loading time, e.g. accepting, rejecting, starting or inhibiting executable software based on integrity or source reliability
- G06F 2201/865: Monitoring of software
- G06F 2221/033: Test or assess software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Techniques are provided for using instrumentation code to detect bots or malware. Data corresponding to requests from a plurality of client devices for a web resource comprising web code is obtained. The web resource is hosted by a first web server system. For a first client device of the plurality of client devices, instrumentation code is served. The instrumentation code is configured to execute on the first client device to monitor execution of the web code of the web resource at the first client device. One or more responses generated by the instrumentation code at the first client device are received from the first client device. The one or more responses are based one or more interactions with the web code at the first client device.

## Claims

### Claim 1

A method comprising:
obtaining data corresponding to requests from a plurality of client devices for a web resource comprising web code, wherein the web resource is hosted by a first web server system;
for a first client device of the plurality of client devices, serving instrumentation code that is configured to execute on the first client device to monitor execution of the web code of the web resource at the first client device;
receiving, from the first client device, one or more responses generated by the instrumentation code at the first client device based one or more interactions with the web code at the first client device;
wherein the method is performed by one or more computing devices.

### Claim 2 (depends on 1)

The method of claim 1, wherein the one or more responses comprises a report indicating that the instrumentation code, when executing at the first client device, detected abnormal behavior at the first client device.

### Claim 3 (depends on 1)

The method of claim 1,
wherein the instrumentation code is configured to report execution of a particular operation with respect to the web resource;
wherein the instrumentation code, when executing at the first client device, detects performance of the particular operation at the first client device and transmits a report in response to detecting the performance of the particular operation.

### Claim 4 (depends on 1)

The method of claim 1,
wherein the instrumentation code is configured to report a call to a particular method with respect to the web resource;
wherein the instrumentation code, when executing at the first client device, detects the call to the particular method at the first client device and transmits a report in response to detecting the call to the particular method.

### Claim 5 (depends on 1)

The method of claim 1,
wherein the instrumentation code is configured to detect a change to a Document Object Model (DOM) corresponding to the web resource;
wherein the instrumentation code, when executing at the first client device, detects the change to the DOM and transmits a response in response to detecting the change to the DOM.

### Claim 6 (depends on 1)

The method of claim 1,
wherein the instrumentation code, when executing at the first client device, collects information that characterizes interactions with the web code;
wherein the one or more responses comprises at least a portion of the information collected at the first client device.

### Claim 7 (depends on 6)

The method of claim 6, wherein the information that characterizes interactions with the web code comprises at least one of key strokes and mouse movements.

### Claim 8 (depends on 6)

The method of claim 6, wherein the interactions with the web code comprises changes in focus between particular elements of the web code.

### Claim 9 (depends on 6)

The method of claim 6, wherein the information that characterizes interactions with the web code comprises timing information of interactions with the web code.

### Claim 10 (depends on 1)

The method of claim 1, wherein serving the web code comprises serving modified web code comprising the instrumentation code.

### Claim 11 (depends on 1)

The method of claim 1, further comprising:
receiving a plurality of security reports generated by instrumentation code executing on the plurality of computing devices that requested the web resource hosted by the first web server system, the plurality of security reports including the one or more responses generated by the instrumentation code at the first client device;
analyzing the plurality of security reports to determine abstracted information about security threats from the plurality of security reports;
generating one or more updated security measures for the first web server system that hosts the web resource based on analyzing the plurality of security reports.

### Claim 12 (depends on 1)

The method of claim 1, further comprising:
receiving a plurality of security reports generated by instrumentation code executing on the plurality of computing devices that requested the web resource from a first web server system and a second plurality of computing devices that requested one or more other web resources other from one or more other web server systems different from the first web server system;
wherein the plurality of security reports includes the one or more responses generated by the instrumentation code at the first client device;
analyzing the plurality of security reports to determine abstracted information about security threats from the plurality of security reports;
generating one or more updated security measures for a plurality of web server systems based on analyzing the plurality of security reports.

### Claim 13

A computer system comprising:
one or more hardware processors;
a memory coupled to the one or more hardware processors and storing one or more instructions which, when executed by the one or more hardware processors, cause the one or more hardware processors to:
obtain data corresponding to requests from a plurality of client devices for a web resource comprising web code, wherein the web resource is hosted by a first web server system;
for a first client device of the plurality of client devices, serve instrumentation code that is configured to execute on the first client device to monitor execution of the web code of the web resource at the first client device;
receive, from the first client device, one or more responses generated by the instrumentation code at the first client device based one or more interactions with the web code at the first client device.

### Claim 14 (depends on 13)

The computer system of claim 13,
wherein the instrumentation code is configured to report execution of a particular operation with respect to the web resource;
wherein the instrumentation code, when executing at the first client device, detects performance of the particular operation at the first client device and transmits a report in response to detecting the performance of the particular operation.

### Claim 15 (depends on 13)

The computer system of claim 13,
wherein the instrumentation code is configured to report a call to a particular method with respect to the web resource;
wherein the instrumentation code, when executing at the first client device, detects the call to the particular method at the first client device and transmits a report in response to detecting the call to the particular method.

### Claim 16 (depends on 13)

The computer system of claim 13,
wherein the instrumentation code is configured to detect a change to a Document Object Model (DOM) corresponding to the web resource;
wherein the instrumentation code, when executing at the first client device, detects the change to the DOM and transmits a response in response to detecting the change to the DOM.

### Claim 17 (depends on 13)

The computer system of claim 13,
wherein the instrumentation code, when executing at the first client device, collects information that characterizes interactions with the web code;
wherein the one or more responses comprises at least a portion of the information collected at the first client device.

### Claim 18 (depends on 17)

The computer system of claim 17, wherein the information that characterizes interactions with the web code comprises at least one of key strokes, mouse movements, changes in focus between particular elements of the web code, and timing information of interactions with the web code.

### Claim 19 (depends on 13)

The computer system of claim 13, wherein the one or more instructions, when executed by the one or more hardware processors, cause the one or more hardware processors to:
receive a plurality of security reports generated by instrumentation code executing on the plurality of computing devices that requested the web resource hosted by the first web server system, the plurality of security reports including the one or more responses generated by the instrumentation code at the first client device;
analyze the plurality of security reports to determine abstracted information about security threats from the plurality of security reports;
generate one or more updated security measures for the first web server system that hosts the web resource based on analyzing the plurality of security reports.

### Claim 20 (depends on 13)

The computer system of claim 13, wherein the one or more instructions, when executed by the one or more hardware processors, cause the one or more hardware processors to:
receive a plurality of security reports generated by instrumentation code executing on the plurality of computing devices that requested the web resource from a first web server system and a second plurality of computing devices that requested one or more other web resources other from one or more other web server systems different from the first web server system;
wherein the plurality of security reports includes the one or more responses generated by the instrumentation code at the first client device;
analyze the plurality of security reports to determine abstracted information about security threats from the plurality of security reports;
generate one or more updated security measures for a plurality of web server systems based on analyzing the plurality of security reports.
