# US 2023/0273853 A1 · Securing an application based on auto-learning and auto-mapping of application services and apis

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

- Number: US 2023/0273853 A1
- Document ID: US20230273853A1
- Status: Published application
- Kind: A1
- Application number: 18/314,716
- Filed: 2023-05-09
- Published: 2023-08-31
- Earliest claimed: 2019-03-21
- Applicants: VMware, Inc.
- Inventors: AMIT JAIN; Gopi KRISHNA; Roy CHOWDHURY
- Web page: https://patentgrep.com/patent/US20230273853A1

## CPC

- G06F 11/0793: {Remedial or corrective actions (recovery from an exception in an instruction pipeline G06F9/3861; by retry G06F11/1402; for recovering from a failure of a protocol instance or entity H04L69/40)}
- G06F 21/6236: {between heterogeneous systems}
- G06F 9/5072: {Grid computing}
- G06F 11/302: {where the computing system component is a software system}
- G06F 21/604: {Tools and structures for managing or administering access control systems}
- H04L 41/5058: {Service discovery by the service manager}
- H04L 63/0884: {by delegation of authentication, e.g. a proxy authenticates an entity to be authenticated on behalf of this entity vis-à-vis an authentication entity}
- H04L 67/51: Discovery or management thereof, e.g. service location protocol [SLP] or web services
- G06N 20/00: Machine learning
- 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)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A computerized method for securing an application based on auto-learning and auto-mapping of application services and application programming interfaces (APIs), includes the step of providing a distributed application security mesh system. The method includes the step of implementing a learning mode of the distributed application security mesh system. This includes learning a set of services and a set of APIs that are used by the set of services to interact with each other. The service comprises an application service. This includes creating a record of the set of services. The record comprises a list of services that are currently active in a specified environment of the distributed application security mesh system, and a list of interactions of the services. The method includes the step of implementing an enforcing mode of the distributed application security mesh system. This includes determining that there is a deviation from a state of at least one record of the set of services provided during the learning mode. This includes implementing a mechanism for the review of the deviations by administrators of the systems and updating the learned state or to take an action based on the review.

## Claims

### Claim 1

A computerized method for securing an application based on auto-learning and auto-mapping of application services and application programming interfaces (APIs), comprising:
providing a distributed application security mesh system;
implementing a learning mode of the distributed application security mesh system comprising:
learning a set of services and a set of APIs that are used by the set of services to interact with each other, wherein the service comprises an application service;
creating a record of the set of services, wherein the record comprises:
a list of services that are currently active in a specified environment of the distributed application security mesh system, and
a list of interactions of the services; and
implementing an enforcing mode of the distributed application security mesh system comprising:
determining that there is a deviation from a state of at least one record of the set of services provided during the learning mode, and
implementing a mechanism for the review of the deviations by administrators of the systems and updating the learned state or to take an action based on the review.

### Claim 2 (depends on 1)

The computerized method of claim 1, wherein the set of services are discovered:
using a service discovery mechanism provided by a platform on which the application is deployed,
using a manually entered configuration of the platform on which the application is deployed, and
using traffic inspection in the application environment.

### Claim 3 (depends on 1)

The computerized method of claim 1 further comprising:
categorizing each service of the set of services into a set of different categories that are based on the attributes of the service interactions of each service, wherein the attributes comprises:
a protocol of the service,
an administrator assigned attribute to the service,
an administrator assigned attribute to the API that is being provided by the service when the service is interacting with external users or external services.

### Claim 4 (depends on 1)

The computerized method of claim 1 further comprising:
generating a service dependency map from the list of interactions of each service of the list of services; and
generating an API dependency map from the list of API interactions of each service of the list of services.

### Claim 5 (depends on 1)

The computerized method of claim 1, wherein the step of learning a set of services and a set of APIs that are used by the set of services to interact with each other, wherein the learning of the services and APIs comprises the steps of:
determining the various services that are interacting with each other and are active in the environment;
determining the categories of various services that are interacting with each other and are active in the environment; and
determining all the unique pairs or segments of services that interact with each other.

### Claim 6 (depends on 5)

The computerized method of claim 5, wherein the step of learning a set of services and a set of APIs that are used by the set of services to interact with each other, wherein the learning of the services and APIs comprises the steps of:
determining set of APIs used by each service to interact with other service;
determining the services that are interacting with the external users or services; and
determining a schema of the set of APIs, wherein the schema of an API governs the format and structure of the API.

### Claim 7 (depends on 6)

The computerized method of claim 6, wherein the step of learning a set of services and a set of APIs that are used by the set of services to interact with each other, wherein the learning of the services and APIs comprises the steps of:
determining a rate of requests per second at which each API of the set of APIs is invoked;
determining an invocation sequence of each API of the set of APIs with respect to the other APIs of the set of APIs; and
determining amount of data that is transmitted or received by the service changes.

### Claim 8 (depends on 7)

The computerized method of claim 7, wherein the step of learning a set of services and a set of APIs that are used by the set of services to interact with each other, wherein the learning of the services and APIs comprises the steps of:
determining the resource usage of the services in terms of CPU, memory and network usage; and
determining the resource usage of the APIs in terms of CPU, memory and network usage.

### Claim 9 (depends on 1)

The computerized method of claim 1, wherein the step of determining that there is a deviation from a state of at least one record of the set of services provided during the learning mode:
for each API of the set of APIs, determining a deviation from the learned state, wherein the deviation from the learned state comprises:
a new service that was not seen previously during learning mode and has become active in the environment;
a new pair of services start to interact with each other that were not seen previously interacting during learning mode; and
a new pair of services categories to interact with each other that were not seen previously interacting during learning mode.

### Claim 10 (depends on 9)

The computerized method of claim 9, wherein the step of determining that there is a deviation from a state of at least one record of the set of services provided during the learning mode:
for each API of the set of APIs, determining a deviation from the learned state, wherein the deviation from the learned state comprises:
a known service start to use a new API that it was not previously used during learning mode;
a known service start to use a known API but with a different service that was not previously used; and
a new service start to interact with the external users or the applications that were not used before.

### Claim 11 (depends on 10)

The computerized method of claim 10, wherein the step of determining that there is a deviation from a state of at least one record of the set of services provided during the learning mode:
for each API of the set of APIs, determining a deviation from the learned state, wherein the deviation from the learned state comprises:
a rate at which the service was invoking APIs or a specific API changes;
an amount of data that is transmitted or received by the service changes; and
an invocation sequence in which the service was invoking the APIs changes.

### Claim 12 (depends on 11)

The computerized method of claim 11, wherein the step of determining that there is a deviation from a state of at least one record of the set of services provided during the learning mode:
for each API of the set of APIs, determining a deviation from the learned state, wherein the deviation from the learned state comprises:
a schema of API changes;
a request origin change in terms of geo-location; and
a user identifier is associated with an API requests change, and
a specified service is associated with the deviation is shut down, stopped or mitigated in a specified manner.

### Claim 13 (depends on 1)

The computerized method of claim 1, wherein the step of implementing the enforcing mode of the distributed application security mesh system further comprises:
communicating the deviation to a system administrator;
allow the administrator to be able to review the deviation either manually or programmatically through a script, and
implementing an action specified by the system administrator.

### Claim 14 (depends on 2)

The computerized method of claim 2, wherein the action specified by the system administrator results in:
blocking the interaction between services such that the deviation is no longer observed;
blocking the specific service that is causing deviation such that deviation is no longer observed; and
blocking a specific API that is causing deviation such that the deviation is no longer observed.

### Claim 15 (depends on 14)

The computerized method of claim 14, wherein the action specified by the system administrator results in:
logging the interaction between services such that the deviating behavior is logged but the services are allowed to interact;
logging the activity from a specific service such that the deviating behavior is logged but the service is allowed to be active in the environment; and
logging the specific API requests and responses such that deviating behavior is logged but the API is continued to be allowed in the environment.

### Claim 16 (depends on 15)

The computerized method of claim 15, wherein the action specified by the system administrator results in:
remediating the deviation by rate controlling the API requests; and
accepting the deviating behavior such that the specific deviating behavior then is added to the learned state and the deviating behavior then is considered as the good behavior and does not lead to deviation.
