# US 2024/0406140 A1 · System and method for controlling and executing anomaly commands in multi-network environment

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

- Number: US 2024/0406140 A1
- Document ID: US20240406140A1
- Status: Published application
- Kind: A1
- Application number: 18/678,832
- Filed: 2024-05-30
- Published: 2024-12-05
- Earliest claimed: 2023-05-31
- Assignees: Samsung Sds Co., Ltd.
- Applicants: Samsung Sds Co., Ltd.
- Inventors: Kwang Hee LEE; Kwang Hui HONG; Han Soo LEE
- Web page: https://patentgrep.com/patent/US20240406140A1

## CPC

- H04L 63/0236: {Filtering by address, protocol, port number or service, e.g. IP-address or URL}
- H04L 63/083: {using passwords (cryptographic mechanisms or cryptographic arrangements for entity authentication using a predetermined code H04L9/3226)}
- H04L 63/0876: {based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint}
- H04L 63/1425: {Traffic logging, e.g. anomaly detection}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method of controlling and executing an anomaly command in a multi-network environment is includes: extracting a command, which is input by a user to a target instance through an accessed bastion worker; determining whether the extracted command is an anomaly command by comparing the extracted command with anomaly command patterns; based on the extracted command being determined to be the anomaly command, determining whether an execution of the anomaly command is permitted in the target instance; and based on the execution of the anomaly command being not permitted, notifying the user of a procedure for approving the execution of the anomaly command based on a level of the anomaly command being one of levels, which are classified in advance based on the anomaly command patterns; either executing or blocking the command input by the user, wherein the procedure is determined differently depending on the level of the anomaly command.

## Claims

### Claim 1

A method of controlling and executing an anomaly command in a multi-network environment, performed by a computing device, the method comprising:
accessing, through a bastion host, one of a plurality of bastion workers, located in subnets of a plurality of networks, and connecting to a target instance that is connected with the accessed bastion worker;
extracting a command, which is input by a user to the target instance through the accessed bastion worker;
comparing the extracted command with anomaly command patterns stored in the bastion host, and determining whether the extracted command is an anomaly command based on a result of the comparing;
based on the extracted command being determined to be the anomaly command, determining whether an execution of the anomaly command is permitted in the target instance;
based on the execution of the anomaly command being not permitted, notifying, through the bastion host, the user that the execution of the anomaly command is blocked; and
notifying the user of a procedure for approving the execution of the anomaly command based on a level of the anomaly command being one of levels, which are classified in advance based on the anomaly command patterns, and either executing or blocking the command input by the user, wherein the procedure is determined differently depending on the level of the anomaly command.

### Claim 2 (depends on 1)

The method of claim 1, wherein the connecting to the target instance comprises:
completing user authentication by connecting to a bastion Equipment Account Management System (EAMS);
issuing a request to connect to the target instance through a bastion manager;
issuing, by the bastion manager, a request for connection specifications to the bastion EAMS in response to the request to connect to the target instance;
generating and transmitting, by the bastion EAMS, the connection specifications to the bastion manager in response to the request for connection specifications;
searching for and finding a bastion worker, among the plurality of bastion workers, that is connectable to the target instance; and
accessing the found bastion worker by transmitting the connection specifications, and
wherein the connection specifications include a domain of a network in which the target instance is located, an IP address and a port number of the target instance, an ID and a password of the user, and an anomaly command verification token.

### Claim 3 (depends on 1)

The method of claim 1, wherein the extracting the command comprises:
opening, by the accessed bastion worker, a terminal for the user by executing an application programming interface (API);
inputting, by the user, the command through the terminal;
transmitting, by a bastion Equipment Account Management System (EAMS), the command input by the user to the accessed bastion worker, wherein the command input by the user is in an image format; and
extracting, by the accessed bastion worker, the command input by the user in text form by executing an API.

### Claim 4 (depends on 1)

The method of claim 1, wherein the levels of the anomaly command classified in advance includes a first level, a second level, and a third level,
wherein, based on the level of the anomaly command being the first level, the procedure is a first procedure for approving an execution of the anomaly command of the first level,
wherein, based on the level of the anomaly command being the second level, the procedure is a second procedure for approving an execution of the anomaly command of the second level, and
wherein, based on the level of the anomaly command being the third level, the execution of the anomaly command is blocked.

### Claim 5 (depends on 4)

The method of claim 4, wherein the level of the anomaly command is the second level, and the either executing or blocking the command comprises:
notifying the user that the execution of the anomaly command is blocked and displaying an item to approve the execution of the anomaly command, as the first procedure;
in response to the user selecting the item, transmitting, by a bastion manager, an anomaly command verification token to a bastion worker connected with the target instance;
checking, by the bastion worker connected with the target instance, a validity of the received anomaly command verification token by comparing the received anomaly command verification token with an initially generated anomaly command verification token generated upon a first access to the target instance; and
based on a result of the comparing of the received anomaly command verification token indicating a match, determining the received anomaly command verification token as being valid and executing the anomaly command.

### Claim 6 (depends on 4)

The method of claim 4, wherein the level of the anomaly command is the second level, and the either executing or blocking the command input comprises:
notifying the user that the execution of the anomaly command is blocked and displaying an item to request an approval of the execution of the anomaly command, as the second procedure;
in response to the user selecting the item, issuing, by a bastion manager, an approval request to a higher-level administrator of the user;
based on an approval from the higher-level administrator, transmitting an anomaly command verification token to a bastion worker connected with the target instance;
checking, by the bastion worker connected with the target instance, a validity of the received anomaly command verification token by comparing the received anomaly command verification token with an initially generated anomaly command verification token generated upon a first access to the target instance; and
based on the result of the comparing of received anomaly command verification token indicating a match, determining the received anomaly command verification token as being valid and executing the anomaly command.

### Claim 7 (depends on 4)

The method of claim 4, wherein the level of the anomaly command is the third level, the either executing or blocking the command comprises notifying the user that the execution of the anomaly command is blocked.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
recording a history of anomaly command execution requests in a storage; and
recording a history of anomaly command executions in the storage,
wherein the history of anomaly command execution requests includes an IP address of the target instance, an IP address and account information of the user, a time when the user requested the execution of the anomaly command, the level of the anomaly command, and a pattern of the anomaly command, and
wherein the history of anomaly command executions includes a time when the user completed the procedure, a time when the user executed the anomaly command, the level of the anomaly command, and the pattern of the anomaly command.

### Claim 9 (depends on 1)

The method of claim 1, wherein the level of the anomaly command is additionally determined differently depending on a rank of the user.

### Claim 10

A system for controlling and executing an anomaly command in a multi-network environment, comprising:
a plurality of networks each including a subnet, the subnet including a bastion worker and a plurality of instances connected with the bastion worker; and
a user network including a bastion host for a user to access bastion workers of the plurality of networks,
wherein the bastion host includes a bastion Equipment Account Management System (EAMS) configured to transmit a request to connect to a target instance among the plurality of instances and includes anomaly command patterns for determining whether a command input by the user is an anomaly command; and a bastion manager configured to search for and find a bastion worker connected with the target instance in response to the request to connect to the target instance from the bastion EAMS, and access the found bastion worker, wherein the accessed bastion worker is configured to determine whether the command input by the user to the target instance is the anomaly command, and notify the user, through the bastion manager, of a procedure for approving an execution of the anomaly command, based on a level of the anomaly command being one of levels, which are classified in advance by the anomaly command patterns, and
wherein the procedure varies depending on the level of the anomaly command.

### Claim 11 (depends on 10)

The system of claim 10, wherein the command input by the user is transmitted to the accessed bastion worker via WebSocket and output in a form of an image, and wherein the accessed bastion worker is configured to extract a command from the command output in the form of the image, compare the extracted command with the anomaly command patterns stored in the bastion EAMS, and determine the command input by the user as the anomaly command based on a result of comparing indicating a match.

### Claim 12 (depends on 10)

The system of claim 10, wherein the bastion EAMS is configured to generate an anomaly command verification token based on the user first connecting to the target instance and transmit the anomaly command verification token to the bastion manager, and
wherein the bastion manager includes an anomaly command control module, which is configured to transmit the anomaly command verification token to the accessed bastion worker in performing the procedure.

### Claim 13 (depends on 12)

The system of claim 12, wherein the levels of the anomaly command classified in advance includes a first level, a second level, and a third level,
wherein, based on the level of the anomaly command being the first level, the procedure is a first procedure for approving an execution of the anomaly command of the first level,
wherein, based on the level of the anomaly command being the second level, the procedure is a second procedure for approving an execution of the anomaly command of the second level, and
wherein, based on the level of the anomaly command being the third level, the execution of the anomaly command is blocked.

### Claim 14 (depends on 13)

The system of claim 13, wherein the level of the anomaly command is the first level,
wherein the bastion EAMS is configured to notify the user that the execution of the anomaly command is blocked, and display an item to approve the execution of the anomaly command, as the first procedure,
wherein, in response to the user selecting the item, the anomaly command control module is configured to transmit the anomaly command verification token to the accessed bastion worker, and
wherein the accessed bastion worker is configured to check a validity of the received anomaly command verification token by comparing the received anomaly command verification token with an initially generated anomaly command verification token generated upon a first access to the target instance, and execute the anomaly command based on a result of the comparing of the received anomaly command verification token indicating a match.

### Claim 15 (depends on 13)

The system of claim 13, wherein the level of the anomaly command is the second level,
wherein the bastion EAMS is configured to notify the user that the execution of the anomaly command is blocked, and display an item to request an approval of the execution of the anomaly command, as the second procedure,
wherein, in response to the user selecting the item, the bastion manager is configured to transmit an approval request to a higher-level administrator of the user,
wherein, based on an approval from the higher-level administrator, the anomaly command control module is configured to transmit the anomaly command verification token to the accessed bastion worker, and
wherein the accessed bastion worker is configured to check a validity of the received anomaly command verification token by comparing the received anomaly command verification token with an initially generated anomaly command verification token generated upon a first access to the target instance, and execute the anomaly command based on a result of comparison of the received anomaly command verification token indicating a match.

### Claim 16 (depends on 13)

The system of claim 13, wherein the level of the anomaly command is the third level, and the bastion EAMS is configured to notify the user that the execution of the anomaly command is blocked.

### Claim 17 (depends on 10)

The system of claim 10, wherein the level of the anomaly command is additionally determined differently depending on a rank of the user.

### Claim 18

A non-transitory computer-readable recording medium storing computer program, the computer program being executable by at least one processor to perform:
accessing, through a bastion host, one of a plurality of bastion workers, located in subnets of multiple networks and connecting to a target instance that is connected with the accessed bastion worker;
extracting a command, which is input by a user to the target instance through the accessed bastion worker;
comparing the extracted command with anomaly command patterns stored in the bastion host, and determining whether the extracted command is an anomaly command based on a result of the comparing;
based on the extracted command being determined to be an anomaly command, determining whether the execution of the anomaly command is permitted in the target instance;
based on the execution of the anomaly command not being permitted, notifying the user through the bastion host that the execution of the anomaly command is blocked; and
notifying the user of a procedure for approving the execution of the anomaly command based on a level of the anomaly command being one of levels, which are classified in advance based on the anomaly command patterns, and either executing or blocking the command input by the user, wherein the procedure is determined differently depending on the level of the anomaly command.

### Claim 19 (depends on 18)

The non-transitory computer-readable recording medium of claim 18, wherein the levels of the anomaly command classified in advance includes a first level, a second level, and a third level,
wherein, based on the level of the anomaly command being the first level, the procedure is a first procedure for approving an execution of the anomaly command of the first level,
wherein, based on the level of the anomaly command being the second level, the procedure is a second procedure for approving an execution of the anomaly command of the second level, and
wherein, based on the level of the anomaly command being the third level, the execution of the anomaly command is blocked.

### Claim 20 (depends on 18)

The non-transitory computer-readable recording medium of claim 18, wherein the level of the anomaly command is additionally determined differently depending on a rank of the user.
