# US 2022/0292190 A1 · Methods and apparatus for analyzing sequences of application programming interface traffic to identify potential malicious actions

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

- Number: US 2022/0292190 A1
- Document ID: US20220292190A1
- Status: Published application
- Kind: A1
- Application number: 17/680,767
- Filed: 2022-02-25
- Published: 2022-09-15
- Earliest claimed: 2017-10-13
- Assignees: Ping Identity Corporation
- Applicants: Ping Identity Corporation
- Inventors: Udayakumar SUBBARAYAN; Bernard HARGUINDEGUY; Isidore ROSENBLUM; Yasar KUNDOTTIL; Aditya GUNUGANTI; Amit Kumar SHARMA; Avinash Kumar SAHU
- Web page: https://patentgrep.com/patent/US20220292190A1

## CPC

- H04L 41/16: using machine learning or artificial intelligence
- G06F 9/54: Interprogram communication
- G06F 21/552: {involving long-term monitoring or reporting}
- G06F 21/554: {involving event detection and direct action}
- G06F 21/566: {Dynamic detection, i.e. detection performed at run-time, e.g. emulation, suspicious activities}
- G06F 40/216: using statistical methods
- G06N 20/00: Machine learning
- H04L 41/145: {involving simulating, designing, planning or modelling of a network}
- 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: 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)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

In some embodiments, a method includes receiving, at a processor of a server, a first application programming interface (API) call from a client device and providing an indication associated with the first API call as an input to a machine learning model such that the machine learning model identifies a set of parameters associated with a set of likely subsequent API calls. The method can further include receiving a second API call from the client device, identifying the second API call as an anomalous API call based on the second API call not meeting the set of parameters associated with the set of likely subsequent API calls, and sending a signal to perform a remedial action based on the identifying.

## Claims

### Claim at position 1

-20. (canceled)

### Claim 21

A non-transitory processor-readable medium storing code representing instructions to be executed by a processor, the code comprising code to cause the processor to:
receive, at a first time, a first application programming interface (API) call in a sequence of API calls, the first API call addressed to an API;
receive, at a second time, a second API call in the sequence of API calls;
predict a predicted time period between the first API call and the second API call;
compare the predicted time period with an actual time period between the first time and the second time to generate a consistency score; and
perform a remedial action associated with the sequence of API calls when the consistency score does not meet a criterion.

### Claim 22 (depends on 21)

The non-transitory processor-readable medium of claim 21, further comprising code to cause the processor to:
route the first API call to a server associated with the API when the consistency score meets the criterion.

### Claim 23 (depends on 21)

The non-transitory processor-readable medium of claim 21, wherein the code to cause the processor to predict includes code to cause the processor to predict the predicted time period by providing a representation of at least one of the first API call or the second API call as an input to a machine learning model to identify the predicted time period.

### Claim 24 (depends on 21)

The non-transitory processor-readable medium of claim 21, wherein the second API call in the sequence of API calls is addressed to the API.

### Claim 25 (depends on 21)

The non-transitory processor-readable medium of claim 21, wherein the API from the plurality of APIs is a first API and the second API call in the sequence of API calls is addressed to a second API different from the first API.

### Claim 26 (depends on 21)

The non-transitory processor-readable medium of claim 21, wherein the remedial action includes at least one of preventing the first API call from being sent to a server associated with the API, blocking API calls associated with a source of the first API call, setting restrictive filters associated with the source of the first API call, sending an alert to the server associated with the API, or storing activity patterns associated with the source of the first API call.

### Claim 27 (depends on 21)

The non-transitory processor-readable medium of claim 21, wherein the first API call is received from a first client device and the second API call is received from a second client device different from the first client device.

### Claim 28

A method, comprising:
receiving, at an application programming interface (API) gateway and from a client device, a set of API calls having a sequence and addressed to an API from a plurality of APIs associated with the API gateway;
predicting a predicted proximity between a first API call from the set of API calls and a second API call from the set of API calls;
generating a consistency score by comparing the predicted proximity with an actual proximity in the sequence between the first API call and the second API call; and
sending the set of API calls to a server associated with the API when the consistency score meets a criterion.

### Claim 29 (depends on 28)

The method of claim 28, wherein the predicting includes:
providing as an input to a machine learning model a representation of the first API call; and
receiving, as an output from the machine learning model, an indication of the predicted proximity between the first API call and the second API call.

### Claim 30 (depends on 28)

The method of claim 28, further comprising:
preventing the set of API calls from being sent to the server when the consistency score does not meet the criterion.

### Claim 31 (depends on 28)

The method of claim 28, wherein the actual proximity is a number of API calls in the sequence between the first API call and the second API call.

### Claim 32 (depends on 28)

The method of claim 28, wherein the actual proximity is a time period in the sequence between the first API call and the second API call.

### Claim 33

A non-transitory processor-readable medium storing code representing instructions to be executed by a processor, the code comprising code to cause the processor to:
receive, at a proxy server and from a client device, a set of instructions having a sequence and addressed to a destination server from a plurality of destination servers associated with the proxy server;
provide as an input to a machine learning model a representation of a first instruction from the set of instructions;
receive, as an output from the machine learning model, an indication of a predicted proximity between the first instruction and a second instruction from the set of instructions;
compare the predicted proximity with an actual proximity in the sequence between the first instruction and the second instruction to generate a consistency score; and
perform a remedial action associated with the set of instructions when the consistency score does not meet a criterion.

### Claim 34 (depends on 33)

The non-transitory processor-readable medium of claim 33, further comprising code to cause the processor to:
send the set of instructions to the destination server when the consistency score meets the criterion.

### Claim 35 (depends on 33)

The non-transitory processor-readable medium of claim 33, wherein the remedial action includes at least one of preventing the set of instructions from being sent to the destination server, blocking instructions associated with the client device, setting restrictive filters associated with the client device, sending an alert to the destination server, or storing activity patterns associated with the client device.

### Claim 36 (depends on 33)

The non-transitory processor-readable medium of claim 33, wherein the actual proximity is a number of instructions in the sequence between the first instruction and the second instruction.

### Claim 37 (depends on 33)

The non-transitory processor-readable medium of claim 33, wherein the actual proximity is a time period in the sequence between the first instruction and the second instruction.

### Claim 38 (depends on 33)

The non-transitory processor-readable medium of claim 33, further comprising code to cause the processor to:
generate an n-gram representation of the first instruction to define the representation of the first instruction.

### Claim 39 (depends on 33)

The non-transitory processor-readable medium of claim 33, wherein the machine learning model includes at least one of a neural network, a decision tree model, a random forest model, a Bayesian network or a clustering model.

### Claim 40 (depends on 33)

The non-transitory processor-readable medium of claim 33, wherein the first instruction is a first application programming interface (API) call and the second instruction is a second API call.
