# US 2021/0344661 A1 · System and method for detecting unauthorized activity at an electronic device

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

- Number: US 2021/0344661 A1
- Document ID: US20210344661A1
- Status: Published application
- Kind: A1
- Application number: 17/148,954
- Filed: 2021-01-14
- Published: 2021-11-04
- Earliest claimed: 2020-04-30
- Assignees: Group Ib, Ltd
- Applicants: Group IB, Ltd
- Inventors: Pavel Vladimirovich KRYLOV; Aleksandr Viktorovich BATENEV
- Web page: https://patentgrep.com/patent/US20210344661A1

## CPC

- G06F 21/554: {involving event detection and direct action}
- H04L 63/08: {for authentication of entities (cryptographic mechanisms or cryptographic arrangements for entity authentication H04L9/32)}
- 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/44: Program or device authentication
- G06F 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- H04L 9/06: the encryption apparatus using shift registers or memories for block-wise {or stream} coding, e.g. DES systems {or RC4; Hash functions; Pseudorandom sequence generators}
- H04L 63/0281: {Proxies}
- H04L 63/0428: {wherein the data content is protected, e.g. by encrypting or encapsulating the payload}
- H04L 63/1425: {Traffic logging, e.g. anomaly detection}
- H04L 63/145: {the attack involving the propagation of malware through the network, e.g. viruses, trojans or worms}
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L 67/10: in which an application is distributed across nodes in the network (software deployment G06F8/60; multiprogramming arrangements G06F9/46)
- H04L 67/34: {involving the movement of software or configuration parameters (network booting or remote initial program loading [RIPL] G06F9/4416)}
- H04L 67/535: {Tracking the activity of the user (network monitoring arrangements H04L43/00; recording of computer activity G06F11/34)}
- H04L 67/56: Provisioning of proxy services (store-and-forward switching systems in data switching networks H04L12/54)
- G06F 2221/2129: Authenticate client device independently of the user
- H04L 67/146: Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
- H04L 2463/144: Detection or countermeasures against botnets
- 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

A method and a system for detecting an unauthorized activity at a user device are provided. The method comprises: analyzing a first request from the user device, the first request including original client cookie; in response to the original client cookie meeting a predetermined threshold: causing the user device to receive a Java Script Module, thereby enabling the user device to generate a second request, by: receiving server cookie indicative of a given activity associated with the user device being one of: a user activity and a bot activity; generating the second request including first client cookie and the server cookie; determining if the second request is to be transmitted to a web content server associated with the first web page; in response to the server cookie data being indicative of the bot activity: the second request is blocked.

## Claims

### Claim 1

A method for detecting an unauthorized activity at a user device of a user, the method being executable by a server communicatively coupled, via a communication network, with the user device, the method comprising:
analyzing, by the server, a first request for a first web page from the user device, the first request including an original client cookie data;
in response to the original client cookie data associated with the first request meeting a predetermined cookie data threshold:
causing the user device, to receive a preconfigured Java Script Module (JSM) for installation thereof in a browser application of the user device, thereby enabling the user device to generate a second request for the first web page, the second request being indicative of a given activity associated with the user device, by:
receiving server cookie data indicative of the given activity being one of: a user activity of the user and a bot activity;
generating the second request including first client cookie data and the server cookie data;
receiving the second request from the user device;
determining if the second request is to be transmitted to a web content server associated with the first web page, such that:
in response to the server cookie data being indicative of the user activity:
the given activity associated with the user device is identified as being authorized; and
the second request for the first web page is transmitted to the web content server for requesting access to the first web page;
in response to the server cookie data being indicative of the bot activity:
the given activity associated with the user device is identified as being unauthorized; and
the second request for the first web page is blocked.

### Claim 2 (depends on 1)

The method of claim 1, wherein the predetermined cookie data threshold is indicative of one of:
the original client cookie data associated with the first request not corresponding to a predetermined cookie data format; and
the original client cookie data having a null value.

### Claim 3 (depends on 1)

The method of claim 1, wherein a version of the preconfigured JSM is associated with the user device.

### Claim 4 (depends on 1)

The method of claim 1, wherein the server comprises a processing server and a proxy server, and wherein:
said analyzing, causing, receiving, and determining are being executed by the proxy server; and
the server cookie data has been generated by the processing server.

### Claim 5 (depends on 4)

The method of claim 4, wherein the server cookie data has been generated by:
causing, via the preconfigured JSM, the user device to retrieve user device data for transmission thereof to the processing server, the user device data being indicative of a current user environment associated with the user device at a moment of the generating the second request;
receiving, form the user device, the user device data for analyzing thereof to determine if the given activity in respect of the first web page is indicative of one of the: the user activity of the user and the bot activity;
generating the server cookie data including a result of the analyzing;
transmitting, via the communication network, the server cookie data to the user device.

### Claim 6 (depends on 5)

The method of claim 5, further comprising encrypting, by the processing server, the server cookie data using one or more encryption algorithms.

### Claim 7 (depends on 6)

The method of claim 6, wherein the one or more encryption algorithms includes at least one of: an AES 256 encryption algorithm, a Blowfish encryption algorithm, an SHA-256 encryption algorithm.

### Claim 8 (depends on 1)

The method of claim 1, wherein the first client cookie data is single-use cookie data.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
receiving, by the server, a third request for a second web page, the third request being indicative of an other activity associated with the user device, the third request having been generated by causing, by the server, via the preconfigured JSM, the user device to execute:
receiving the server cookie data indicative of the given activity being one of: the user activity of the user and the bot activity;
generating the third request including second client cookie data and the server cookie data;
determining if the third request is to be transmitted to a web content server associated with the second web page, such that:
in response to the server cookie data being indicative of the user activity:
the third request for the second web page is transmitted to the web content server associated with the second web page for requesting access thereat to the second web page;
in response to the server cookie data being indicative of the bot activity:
the third request for the second web page is blocked.

### Claim 10 (depends on 9)

The method of claim 9, wherein the second client cookie data is single-use cookie data.

### Claim 11 (depends on 1)

The method of claim 1, wherein given subsequent client cookie data, generated by the user device, for a subsequent request is at least partially different from previous cookie data, generated by the user device, for a previous request.

### Claim 12 (depends on 11)

The method of claim 11, wherein each one of the previous client cookie data and the subsequent client cookie data is assigned with a respective order number indicative of an order of generation thereof in time, and a respective activity associated with the user device is further determined as being associated with one of: the user activity and the bot activity, based on the respective order number.

### Claim 13 (depends on 1)

The method of claim 1, wherein if the second request for the first web page is blocked, the method further comprises at least one of: redirecting the second request to a start page of the first web page; generating and display of an error message indicative of the given activity being associated with the bot activity; generating and display of a 404 code of the first web page; granting access to predetermined portions of the first web page associated with the unauthorized activity; storing an IP address associated with the user device in a database of malicious IP addresses.

### Claim 14 (depends on 1)

The method of claim 1, wherein causing the receiving the server cookie is executed with a predetermined frequency.

### Claim 15

A system for detecting an unauthorized activity at a user device of a user, the system comprising a server communicatively coupled, via a communication network, with the user device, the server comprising:
a processor;
a non-transitory computer-readable medium comprising instructions;
the processor, upon executing the instructions, being configured to:
analyze a first request for a first web page from the user device, the first request including an original client cookie data;
in response to the original client cookie data associated with the first request meeting a predetermined cookie data threshold:
cause the user device, to receive a preconfigured Java Script Module (JSM) for installation thereof in a browser application of the user device, thereby enabling the user device to generate a second request for the first web page, the second request being indicative of a given activity associated with the user device, by:
receiving server cookie data indicative of the given activity being one of: a user activity of the user and a bot activity;
generating the second request including first client cookie data and the server cookie data;
receive the second request from the user device;
determine if the second request is to be transmitted to a web content server associated with the first web page, such that:
in response to the server cookie data being indicative of the user activity:
the given activity associated with the user device is identified as being authorized; and
the second request for the first web page is transmitted to the web content server for requesting access to the first web page;
in response to the server cookie data being indicative of the bot activity:
the given activity associated with the user device is identified as being unauthorized; and
the second request for the first web page is blocked.

### Claim 16 (depends on 15)

The system of claim 15, wherein the predetermined cookie data threshold is indicative of one of:
the original client cookie data associated with the first request not corresponding to a predetermined cookie data format; and
the original client cookie data having a null value.

### Claim 17 (depends on 15)

The system of claim 15, wherein a version of the preconfigured JSM is associated with the user device.

### Claim 18 (depends on 15)

The system of claim 15, wherein the server comprises a processing server and a proxy server, such that:
said analyzing, causing, receiving, and determining are being executed by the proxy server; and
the server cookie data has been generated by the processing server.

### Claim 19 (depends on 18)

The system of claim 18, wherein in order to generate the server cookie data, the processing server is configured to:
cause, via the preconfigured JSM, the user device to retrieve user device data for transmission thereof to the processing server, the user device data being indicative of a current user environment associated with the user device at a moment of the generating the second request;
receive, form the user device, the user device data for analyzing thereof to determine if the given activity in respect of the first web page is indicative of one of the: the user activity of the user and the bot activity;
generate the server cookie data including a result of the analyzing;
transmit, via the communication network, the server cookie data to the user device.

### Claim 20 (depends on 19)

The system of claim 19, wherein the processing server is further configured to encrypt the server cookie data using one or more encryption algorithms.

### Claim 21 (depends on 20)

The system of claim 20, wherein the one or more encryption algorithms includes at least one of: an AES 256 encryption algorithm, a Blowfish encryption algorithm, an SHA-256 encryption algorithm.

### Claim 22 (depends on 15)

The system of claim 15, wherein the first client cookie data is single-use cookie data.

### Claim 23 (depends on 15)

The system of claim 15, wherein the processor is further configured to:
receive a third request for a second web page, the third request being indicative of an other activity associated with the user device, the third request having been generated by causing the user device to execute:
receiving the server cookie data indicative of the given activity being one of: the user activity of the user and the bot activity;
generating the third request including second client cookie data and the server cookie data;
determine if the third request is to be transmitted to a web content server associated with the second web page, such that:
in response to the server cookie data being indicative of the user activity:
the third request for the second web page is transmitted to the web content server associated with the second web page for requesting access thereat to the second web page;
in response to the server cookie data being indicative of the bot activity:
the third request for the second web page is blocked.

### Claim 24 (depends on 23)

The system of claim 23, wherein the second client cookie data is single-use cookie data.

### Claim 25 (depends on 15)

The system of claim 15, wherein given subsequent client cookie data, generated by the user device, for a subsequent request is at least partially different from previous cookie data, generated by the user device, for a previous request.

### Claim 26 (depends on 25)

The system of claim 25, wherein each one of the previous client cookie data and the subsequent client cookie data is assigned with a respective order number indicative of an order of generation thereof in time, and a respective activity associated with the user device is further determined as being associated with one of: the user activity and the bot activity, based on the respective order number.

### Claim 27 (depends on 15)

The system of claim 15, wherein if the second request for the first web page is blocked, the processor is further configured to execute at least one of: redirecting the second request to a start page of the first web page; generating and display of an error message indicative of the given activity being associated with the bot activity; generating and display of a 404 code of the first web page; granting access to predetermined portions of the first web page associated with the unauthorized activity; storing an IP address associated with the user device in a database of malicious IP addresses.
