A bastion host-based operation and maintenance processing method, system, device and medium

By using the long and short-term memory network algorithm and feature library update mechanism in the fortress machine, intelligently determine and handle high-risk commands, the problem of low control efficiency of high-risk commands in the existing fortress machine is solved, and the work efficiency of operation and maintenance personnel is improved.

CN118713942BActive Publication Date: 2024-11-26JINAN TECHNICIAN COLLEGE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411215671.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-02
Publication Date
2024-11-26
Estimated Expiration
2044-09-02

AI Technical Summary

Technical Problem

The existing fortress machine has fixed judgment methods in terms of high-risk order control, which has affected the work efficiency of operation and maintenance personnel and often has approval or blocking behavior.

Method used

The long-term and short-term memory network algorithm is used to continuously update the feature library, intelligently determine high-risk commands, reduce the number of manual approvals, and optimize the processing of high-risk commands through the comparison of the feature library and the approval model.

Benefits of technology

It improves the work efficiency of operation and maintenance personnel, achieves more flexible and intelligent high-risk command control, and reduces the number of manual approvals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118713942B_ABST
    Figure CN118713942B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of information processing technology, and specifically discloses an operation and maintenance processing method, system, equipment and medium based on a bastion host. The method disclosed in the present invention includes obtaining a command sequence input by an operation and maintenance personnel to a bastion host; comparing the first command of the command sequence with the feature library of the bastion host, and judging the other commands of the command sequence as high-risk commands through a long short-term memory network algorithm; if the command is normal, the bastion host monitors and records normally; if the command is interrupted, timed out or blocked, it returns to the initial interface; if the command is approved, the feature library is temporarily stored and updated regularly. The present invention can continuously update the compared feature library, and intelligently control high-risk commands through a long short-term memory network algorithm, greatly improving the work efficiency of operation and maintenance personnel. The present invention can be widely used in the field of command sequence control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of information processing technology, and specifically relates to an operation and maintenance processing method, system, equipment and medium based on a bastion host. Background Art

[0002] The bastion host is an operation and maintenance management system that ensures data security and availability in a specific network environment, protects data and networks from illegal intrusion, and monitors, records, and authorizes the operations of operation and maintenance personnel. The bastion host uses technical means to change the original operation and maintenance chaos and low security control of operation and maintenance personnel into an orderly and highly secure operation and maintenance mode.

[0003] The existing bastion host often controls high-risk commands by establishing specific templates and using command expressions to control command behavior. The judgment method of this technical behavior is relatively fixed and has low variability. As long as a high-risk command appears, it will be judged to allow, block or approve it in a non-intelligent way.

[0004] When the operation and maintenance personnel are operating and maintaining, the commands they input into the bastion host are basically fixed and have continuity. In view of this situation, the existing bastion host's control mode for high-risk commands often results in approval or blocking, which seriously affects the work efficiency of the operation and maintenance personnel. Summary of the invention

[0005] The purpose of the present invention is to provide an operation and maintenance processing method based on a bastion host, which can continuously update the feature library for comparison, and intelligently control high-risk commands through a long short-term memory network algorithm, thereby greatly improving the work efficiency of operation and maintenance personnel;

[0006] The second object of the present invention is to provide an operation and maintenance processing system based on a bastion host for implementing the above method;

[0007] The third object of the present invention is to provide a terminal device that can implement an operation and maintenance processing method based on a bastion host when executing its own program;

[0008] The fourth object of the present invention is to provide a computer-readable storage medium for storing a corresponding computer program of an operation and maintenance processing method based on a bastion host.

[0009] In order to achieve the above object, the technical solution adopted by the present invention is as follows:

[0010] A bastion host-based operation and maintenance processing method includes the following steps:

[0011] S1. Obtain the command sequence input by the operation and maintenance personnel to the bastion host;

[0012] S2. Determine whether the current command Ns in the command sequence is the first command; if not, execute step S3; if yes, compare the current command Ns with the feature library of the bastion host;

[0013] If the current command Ns is a normal command in the feature library, the current command Ns is executed. After the bastion host executes the monitoring record normally, step S7 is executed;

[0014] If the current command Ns is a high-risk command in the feature library, execute step S5;

[0015] S3, determining whether the current command Ns in the command sequence is interrupted or timed out;

[0016] If interrupted or timed out, return to step S1; otherwise, execute step S4;

[0017] S4. Based on the feature library in the bastion host, the current command Ns of the command sequence is determined by the long short-term memory network algorithm;

[0018] If the current command Ns is normal, execute the current command Ns. After the bastion host executes the monitoring record normally, execute step S7.

[0019] If the current command Ns is determined to be a high-risk command, execute step S5;

[0020] S5, comparing the high-risk command with the feature library to determine whether the high-risk command is a blocking command;

[0021] If the high-risk command is a blocking command, the high-risk command is directly interrupted and the process returns to step S1;

[0022] If the high-risk command is not a blocking command, the high-risk command enters the approval mode and executes step S6;

[0023] S6. Manually review and approve high-risk commands that enter the approval mode;

[0024] If the approval is not passed, the high-risk command is directly terminated, the high-risk command is placed in a temporary storage library to regularly update the feature library, and the process returns to step S1;

[0025] If the approval is passed, the high-risk command is executed, the bastion host executes the monitoring record normally, and the high-risk command is placed in the temporary storage library to update the feature library regularly, and then execute step S7;

[0026] S7, determining whether the current command Ns that has been determined in the command sequence is the last command;

[0027] If yes, execute step S8;

[0028] If not, the next command Ns+1 of the current command Ns in the command sequence is used as the current command Ns, and step S3 is executed;

[0029] S8. End.

[0030] As a limitation, the step of determining the current command Ns of the command sequence by the long short-term memory network algorithm in step S4 includes:

[0031] Input the operation behavior Bs-1 generated by the previous command Ns-1 of the current command Ns into the long short-term memory network algorithm;

[0032] The long short-term memory network algorithm calculates based on the content of the feature library to obtain the optimal operation behavior Ys;

[0033] Compare the optimal operation behavior Ys with the operation behavior Bs generated by the current command Ns;

[0034] If the optimal operation behavior Ys is the same as the operation behavior Bs, then the current command Ns is normal;

[0035] If the optimal operation behavior Ys is different from the operation behavior Bs, the current command Ns is a high-risk command.

[0036] As a second limitation, the step of placing the high-risk command in a temporary storage library and regularly updating the feature library in step S6 includes:

[0037] Place the high-risk command in a temporary storage library, mark the high-risk command, and count the number of times the high-risk command appears in the current command sequence;

[0038] When the feature library is to be updated, high-risk commands that meet the number requirements are selected from the temporary storage library, and the command sequences corresponding to the high-risk commands that meet the number requirements are compared with the corresponding command sequences in the feature library, the differences are picked out, and the differences in the feature library are modified according to the judgment results of the high-risk commands that meet the number requirements.

[0039] As a further limitation, the modifying of the difference part in the feature library includes:

[0040] For approved high-risk commands, modify the differences in the feature library to the corresponding high-risk commands;

[0041] For high-risk commands that fail to pass approval, the difference parts in the feature library are modified into corresponding blocking commands.

[0042] A bastion host-based operation and maintenance processing system, the system comprising: an input acquisition module, a storage module, a result calculation module, a comparison and determination module, a monitoring and recording module, and a command interruption module;

[0043] Input acquisition module: used to obtain the command sequence input by the operation and maintenance personnel to the bastion host, and input the command sequence into the result calculation module;

[0044] Storage module: used to store the command sequence in the feature library and the high-risk commands in the temporary storage library, output the command sequence in the feature library to the result calculation module and the comparison and judgment module, and receive the high-risk commands output by the comparison and judgment module that need to be stored in the temporary storage library;

[0045] Result calculation module: receives the command sequence transmitted by the input acquisition module and the command sequence in the feature library transmitted by the storage module, is used to perform the calculation of the long short-term memory network algorithm, and outputs the calculation result to the comparison and judgment module;

[0046] Comparison and determination module: receiving the calculation results transmitted by the result calculation module and the command sequence in the feature library transmitted by the storage module, for comparing commands or operations to determine whether they are the same, and transmitting the commands to the monitoring and recording module, the command interruption module or the storage module according to the determination results;

[0047] Monitoring and recording module: receiving commands transmitted by the comparison and determination module, and used to monitor and record the execution process of the commands and the execution results;

[0048] Command interruption module: receives commands transmitted by the comparison and judgment module and is used to interrupt the connection between the command and the bastion host.

[0049] A terminal device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the above-mentioned operation and maintenance processing method based on a bastion host is implemented.

[0050] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it is used to implement the above-mentioned operation and maintenance processing method based on a bastion host.

[0051] Due to the adoption of the above technical solution, the present invention has the following technical advances compared with the prior art:

[0052] (1) The present invention can continuously update the feature library used for comparison in the bastion host, can more flexibly judge commands, reduce the number of manual approvals, and improve the work efficiency of operators;

[0053] (2) The present invention uses a long short-term memory network algorithm to judge the commands input to the bastion host, which is more intelligent than simple comparative judgment.

[0054] The present invention belongs to the field of information processing technology, can continuously update a feature library for comparison, intelligently manage and control high-risk commands through a long short-term memory network algorithm, and improve the work efficiency of operation and maintenance personnel. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention.

[0056] In the attached picture:

[0057] Figure 1 This is a flow chart of Example 1 of the present invention;

[0058] Figure 2 This is a flow chart of determining whether the current command Ns of a command sequence is a high-risk command by using a long short-term memory network algorithm in Example 1 of the present invention;

[0059] Figure 3 This is a structural block diagram of Example 2 of the present invention. DETAILED DESCRIPTION

[0060] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0061] Example 1

[0062] like Figure 1 As shown, this embodiment is an operation and maintenance processing method based on a bastion host, including the following steps performed in sequence:

[0063] S1. Obtain the command sequence that the operation and maintenance personnel input into the bastion host during operation and maintenance.

[0064] The bastion host is an operation and maintenance audit system. During the operation and maintenance process, the operation and maintenance personnel need to upload corresponding commands to achieve corresponding purposes. The commands input by the operation and maintenance personnel to the bastion host are usually continuous command sequences.

[0065] S2. Determine whether the current command Ns in the command sequence is the first command. If not, execute step S3; if yes, compare the current command Ns with the feature library of the bastion host.

[0066] If the current command Ns is a normal command in the feature library, the current command Ns is executed. After the bastion host executes the monitoring record normally, step S7 is executed;

[0067] If the current command Ns is a high-risk command in the feature library, execute step S5.

[0068] The commands input by the operation and maintenance personnel into the bastion host are a continuous command sequence, and each command in the command sequence needs to be processed.

[0069] S3, determining whether the current command Ns in the command sequence is interrupted or timed out;

[0070] If interrupted or timed out, return to step S1; otherwise, execute step S4.

[0071] If the operation and maintenance personnel interrupt the input of the command or time out before inputting the next command, the entire command sequence is interrupted, the initial interface is returned, and a new command sequence is obtained again.

[0072] S4. Based on the feature library in the bastion host, the long short-term memory network algorithm is used to determine whether the current command Ns in the command sequence is a high-risk command;

[0073] If the current command Ns is normal, execute the current command Ns. After the bastion host executes the monitoring record normally, execute step S7; if the current command Ns is determined to be a high-risk command, execute step S5.

[0074] The commands entered into the bastion host will generate corresponding operation behaviors. Figure 2 As shown in the figure, when determining whether the current command Ns is a high-risk command, the long short-term memory network algorithm is used. The specific determination process is as follows:

[0075] First, the operation behavior Bs-1 generated by the previous command Ns-1 of the current command Ns is input into the long short-term memory network algorithm;

[0076] Then, the long short-term memory network algorithm is used to calculate based on the content of the feature library to obtain the optimal operation behavior Ys;

[0077] Finally, the optimal operation behavior Ys is compared with the operation behavior Bs generated by the current command Ns. If the optimal operation behavior Ys is the same as the operation behavior Bs, the current command Ns is normal; if the optimal operation behavior Ys is different from the operation behavior Bs, the current command Ns is a high-risk command.

[0078] S5, comparing the high-risk command with the feature library to determine whether the high-risk command is a blocking command;

[0079] If the high-risk command is a blocking command, the high-risk command is directly interrupted and the process returns to step S1;

[0080] If the high-risk command is not a blocking command, the high-risk command enters the approval mode and executes step S6.

[0081] When distinguishing high-risk commands, the blocking command set in the feature library is needed to compare the blocking command set with the high-risk commands to be distinguished. The blocking command set is a manually set command set containing blocking commands.

[0082] S6. Manually review and approve high-risk commands that enter the approval mode;

[0083] If the approval is not passed, the high-risk command is directly terminated, the high-risk command is placed in a temporary storage library to regularly update the feature library, and the process returns to step S1;

[0084] If the approval is passed, the high-risk command is executed, the bastion host executes the monitoring record normally, and places the high-risk command in the temporary storage library to update the feature library regularly, and then executes step S7.

[0085] High-risk commands that enter the approval mode require manual approval. Whether the approval is passed or not, the high-risk command will be placed in the temporary storage library, marked, and the number of times this high-risk command appears in the current command sequence will be accumulated based on the last count.

[0086] In the actual operation and maintenance process, the operation and maintenance personnel will enter many command sequences, some of which are the same and some are different. If a high-risk command that needs to be counted appears in a command sequence, when the operation and maintenance personnel enter the same command sequence again, the high-risk commands in this command sequence will be counted based on the last count.

[0087] When the feature library is updated every week, the command sequences corresponding to all high-risk commands with counts greater than 10 in the temporary library are compared with the corresponding command sequences in the feature library, and the differences are picked out and the commands in the difference parts in the feature library are modified: for high-risk commands that have been approved, the difference parts in the feature library are modified to the corresponding high-risk commands; for high-risk commands that have not been approved, the difference parts in the feature library are modified to the corresponding blocking commands.

[0088] S7, determining whether the current command Ns that has been determined in the command sequence is the last command;

[0089] If yes, execute step S8;

[0090] If not, the next command Ns+1 of the current command Ns in the command sequence is used as the current command Ns, and step S3 is executed.

[0091] Since the operation and maintenance personnel input a command sequence, each command needs to be judged, so the above method needs to be executed cyclically until all commands in the command sequence have completed the judgment work.

[0092] S8. End.

[0093] In this embodiment, the feature database is updated regularly every week, and the required number of times is greater than 10. It can be modified according to actual conditions to other regular update times and other number requirements.

[0094] This embodiment can continuously update the compared feature library, intelligently manage and control high-risk commands through the long short-term memory network algorithm, and improve the work efficiency of operation and maintenance personnel.

[0095] Example 2

[0096] like Figure 3 As shown, this embodiment is an operation and maintenance processing system based on a bastion host. This embodiment is used to implement embodiment 1. This embodiment includes: an input acquisition module, a storage module, a result calculation module, a comparison and judgment module, a monitoring and recording module, and a command interrupt module.

[0097] Input acquisition module: used to obtain the command sequence input by the operation and maintenance personnel to the bastion host, and input the command sequence into the result calculation module.

[0098] Storage module: used to store the command sequences in the feature library and the high-risk commands in the temporary storage library, output the command sequences in the feature library to the result calculation module and the comparison and judgment module, and receive the high-risk commands output by the comparison and judgment module that need to be stored in the temporary storage library.

[0099] Result calculation module: receives the command sequence transmitted by the input acquisition module and the command sequence in the feature library transmitted by the storage module, is used to perform the calculation of the long short-term memory network algorithm, and outputs the calculation results to the comparison and judgment module.

[0100] Comparison and judgment module: receives the calculation results transmitted by the result calculation module and the command sequence in the feature library transmitted by the storage module, and is used to compare commands or operations to determine whether they are the same. Based on the judgment results, the commands are transmitted to the monitoring and recording module, the command interruption module or the storage module.

[0101] Monitoring and recording module: receives commands transmitted by the comparison and judgment module, and is used to monitor and record the execution process of the commands and record the execution results.

[0102] Command interruption module: receives commands transmitted by the comparison and judgment module and is used to interrupt the connection between the command and the bastion host.

[0103] Example 3

[0104] The present embodiment is a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it is used to implement an operation and maintenance processing method based on a bastion host in Embodiment 1.

[0105] Example 4

[0106] This embodiment is a computer-readable storage medium. The computer-readable storage medium in this embodiment stores a computer program. When the computer program is executed by a processor, it is used to implement an operation and maintenance processing method based on a bastion host in Example 1.

[0107] Among them, the computer-readable storage medium can be a computer storage medium or a communication medium. The communication medium includes any medium that facilitates the transmission of a computer program from one place to another. The computer storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer. For example, a computer-readable storage medium is coupled to a processor so that the processor can read information from the computer-readable storage medium and write information to the computer-readable storage medium. Of course, the computer-readable storage medium can also be a component of the processor. The processor and the computer-readable storage medium can be located in an application-specific integrated circuit (ASIC). In addition, the ASIC can be located in a user device. Of course, the processor and the computer-readable storage medium can also exist in a communication device as discrete components. Specifically, the computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk or an optical disk, etc. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.

Claims

1. A bastion host-based operation and maintenance processing method, characterized in that: The following steps are involved: S1. Obtain the command sequence input by the operation and maintenance personnel to the bastion host; S2, determining whether the current command Ns in the command sequence is the first command; if not, executing step S3; If yes, compare the current command Ns with the signature database of the bastion host; If the current command Ns is a normal command in the feature library, the current command Ns is executed. After the bastion host executes the monitoring record normally, step S7 is executed; If the current command Ns is a high-risk command in the feature library, execute step S5; S3, determining whether the current command Ns in the command sequence is interrupted or timed out; If interrupted or timed out, return to step S1; otherwise, execute step S4; S4. Based on the feature library in the bastion host, the current command Ns of the command sequence is determined by the long short-term memory network algorithm; If the current command Ns is normal, execute the current command Ns. After the bastion host executes the monitoring record normally, execute step S7. If the current command Ns is determined to be a high-risk command, execute step S5; S5, comparing the high-risk command with the feature library to determine whether the high-risk command is a blocking command; If the high-risk command is a blocking command, the high-risk command is directly interrupted and the process returns to step S1; If the high-risk command is not a blocking command, the high-risk command enters the approval mode and executes step S6; S6. Manually review and approve high-risk commands that enter the approval mode; If the approval is not passed, the high-risk command is directly terminated, the high-risk command is placed in a temporary storage library to regularly update the feature library, and the process returns to step S1; If the approval is passed, the high-risk command is executed, the bastion host executes the monitoring record normally, and the high-risk command is placed in the temporary storage library to update the feature library regularly, and then execute step S7; S7, determining whether the current command Ns that has been determined in the command sequence is the last command; If yes, execute step S8; If not, the next command Ns+1 of the current command Ns in the command sequence is used as the current command Ns, and step S3 is executed; S8. End.

2. According to the operation and maintenance processing method based on the bastion host according to claim 1, it is characterized in that: The step of determining the current command Ns of the command sequence by using the long short-term memory network algorithm in step S4 includes: Input the operation behavior Bs-1 generated by the previous command Ns-1 of the current command Ns into the long short-term memory network algorithm; The long short-term memory network algorithm calculates based on the content of the feature library to obtain the optimal operation behavior Ys; Compare the optimal operation behavior Ys with the operation behavior Bs generated by the current command Ns; If the optimal operation behavior Ys is the same as the operation behavior Bs, then the current command Ns is normal; If the optimal operation behavior Ys is different from the operation behavior Bs, the current command Ns is a high-risk command.

3. According to the operation and maintenance processing method based on the bastion host of claim 1, it is characterized in that: The step of placing the high-risk command in a temporary storage library and regularly updating the feature library in step S6 includes: Place the high-risk command in a temporary storage library, mark the high-risk command, and count the number of times the high-risk command appears in the current command sequence; When the feature library is to be updated, high-risk commands that meet the number requirements are selected from the temporary storage library, and the command sequences corresponding to the high-risk commands that meet the number requirements are compared with the corresponding command sequences in the feature library, the differences are picked out, and the differences in the feature library are modified according to the judgment results of the high-risk commands that meet the number requirements.

4. According to the operation and maintenance processing method based on the bastion host of claim 3, it is characterized in that: The modification of the difference part in the feature library includes: For approved high-risk commands, modify the differences in the feature library to the corresponding high-risk commands; For high-risk commands that fail to pass approval, the difference parts in the feature library are modified into corresponding blocking commands.

5. An operation and maintenance processing system for executing the operation and maintenance processing method based on a bastion host according to any one of claims 1 to 4, characterized in that: The system comprises: an input acquisition module, a storage module, a result calculation module, a comparison and determination module, a monitoring and recording module and a command interruption module; Input acquisition module: used to obtain the command sequence input by the operation and maintenance personnel to the bastion host, and input the command sequence into the result calculation module; Storage module: used to store the command sequence in the feature library and the high-risk commands in the temporary storage library, output the command sequence in the feature library to the result calculation module and the comparison and judgment module, and receive the high-risk commands output by the comparison and judgment module that need to be stored in the temporary storage library; Result calculation module: receives the command sequence transmitted by the input acquisition module and the command sequence in the feature library transmitted by the storage module, is used to perform the calculation of the long short-term memory network algorithm, and outputs the calculation result to the comparison and judgment module; Comparison and determination module: receiving the calculation results transmitted by the result calculation module and the command sequence in the feature library transmitted by the storage module, for comparing commands or operations to determine whether they are the same, and transmitting the commands to the monitoring and recording module, the command interruption module or the storage module according to the determination results; Monitoring and recording module: receiving commands transmitted by the comparison and determination module, and used to monitor and record the execution process of the commands and the execution results; Command interruption module: receives commands transmitted by the comparison and judgment module and is used to interrupt the connection between the command and the bastion host.

6. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the operation and maintenance processing method based on the bastion host as described in any one of claims 1 to 4 is implemented.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it is used to implement an operation and maintenance processing method based on a bastion host as described in any one of claims 1 to 4.