Automatic identification method, device, equipment and medium for bypassing bastion host behavior

By obtaining the IP whitelist and log data of the basin machine, and automatically identifying the bypass behavior, the security and accuracy of the operation and maintenance of the basin machine are solved, and the security and accuracy of the operation and maintenance management are improved.

CN117061368BActive Publication Date: 2024-11-26BEIJING YOUTEJIE INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311052265.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-21
Publication Date
2024-11-26
Estimated Expiration
2043-08-21

AI Technical Summary

Technical Problem

The low security of the operation and maintenance work of the fortress machine and the poor accuracy of the audit access behavior of the fortress machine, resulting in confusion in operation and maintenance management and security risks.

Method used

By obtaining the IP whitelist and application information of the pre-configured target bastion machine, using the preset proxy software to obtain the log data of the target server, and judging the legality of the access behavior based on the IP whitelist and log data, realizing the detour bastion machine Automatic recognition of behavior.

Benefits of technology

It improves the security of the operation and maintenance work of the fortress machine and the accuracy of audit access behavior, prevents illegal operations, and enhances the control of operation and maintenance management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117061368B_ABST
    Figure CN117061368B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, equipment and medium for automatically identifying the behavior of bypassing a bastion host. The method comprises: obtaining a pre-configured IP whitelist of a target bastion host, and obtaining each application access information within a preset time period; wherein the application access information includes: application source IP, access period and application account ID; obtaining each target log of a target server with an operation of accessing a target bastion host through a preset proxy software; wherein the target log is the log data generated by the target server due to the operation of accessing the target bastion host; based on the IP whitelist of the target bastion host, each application access information and each target log, judging whether the operation of each target server to access the target bastion host is a legal operation. Through the technical solution of the present invention, it is possible to realize automatic identification of the behavior of bypassing a bastion host, improve the security of the operation and maintenance of the bastion host and the accuracy of the bastion host's audit of access behavior.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of bastion host operation and maintenance, and in particular to an automatic identification method, device, equipment and medium for bypassing a bastion host. Background Art

[0002] In the operation and maintenance of enterprise networks, it is necessary to remotely log in to various devices (such as servers, network devices, application systems, etc.) to deploy software, configure policies, upgrade functions, and handle faults. With the continuous acceleration of enterprise informatization, there are more and more problems with the operation and maintenance of equipment in the enterprise intranet. There are a large number of problems such as shared or mixed login accounts, account unauthorized or high-risk operations, and lack of operation and maintenance operation audits. Illegal operation and maintenance operations not only bring chaos to the operation and maintenance management of the enterprise, but also pose security risks such as business application service suspension, business data loss, and important data leakage.

[0003] The bastion host is an integrated operation and maintenance management platform that can effectively solve the above problems and reduce various operation and maintenance-related risks. In daily use, operation and maintenance personnel need to first log in to the bastion host as a springboard, and then remotely jump to the device for maintenance operations, thereby achieving unified security management of operation and maintenance work. The bastion host can achieve unified management of operation and maintenance work accounts, unified identity authentication, unified authority allocation, and full operation auditing, ensuring that operation and maintenance work is manageable, efficient, and compliant.

[0004] However, in actual use, some operation and maintenance personnel, in order to evade control, bypass the bastion host and directly log in to the device to perform illegal operations, such as illegal data downloading, forming an operation and maintenance control vacuum, resulting in low security of the bastion host operation and maintenance work, and poor accuracy of the bastion host's audit of access behavior. Summary of the invention

[0005] The present invention provides a method, device, equipment and medium for automatically identifying the behavior of bypassing a bastion host, which can solve the problems of low security of bastion host operation and maintenance work in the prior art and poor accuracy of bastion host auditing access behavior.

[0006] In a first aspect, an embodiment of the present invention provides a method for automatically identifying a behavior of bypassing a bastion server, the method comprising:

[0007] Obtain the pre-configured IP whitelist of the target bastion host, and obtain each application access information within a preset time period; wherein the application access information includes: application source IP, access period and application account ID;

[0008] Obtaining each target log of a target server having an operation of accessing a target bastion host through a preset proxy software; wherein the target log is log data generated by the target server due to the operation of accessing the target bastion host;

[0009] Based on the IP whitelist of the target bastion host, each application access information, and each target log, determine whether the operation of each target server to access the target bastion host is a legal operation.

[0010] In a second aspect, an embodiment of the present invention provides an automatic identification device for bypassing a bastion host, the device comprising:

[0011] The information acquisition module is used to obtain the pre-configured IP whitelist of the target bastion host and obtain each application access information within a preset time period; wherein the application access information includes: the application source IP, the access period and the application account ID;

[0012] A log acquisition module, used to acquire each target log of a target server having an operation of accessing a target bastion host through a preset proxy software; wherein the target log is log data generated by the target server due to the operation of accessing the target bastion host;

[0013] The legal operation judgment module is used to judge whether the operation of each target server accessing the target bastion host is a legal operation based on the IP whitelist of the target bastion host, each application access information and each target log.

[0014] According to a third aspect, an electronic device is provided, the electronic device comprising:

[0015] at least one processor; and

[0016] a memory communicatively connected to the at least one processor; wherein,

[0017] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the automatic identification method of bypassing the bastion host behavior described in any embodiment of the present invention.

[0018] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the automatic identification method of bypassing a bastion host behavior described in any embodiment of the present invention when executed.

[0019] The technical solution of the embodiment of the present invention first obtains a pre-configured IP whitelist of the target bastion host, obtains each application access information within a preset time period, then obtains each target log of the target server with the operation of accessing the target bastion host through the preset proxy software, and finally judges whether the operation of accessing the target bastion host by each target server is a legal operation based on the IP whitelist of the target bastion host, each application access information and each target log. This solves the problems of low security of the bastion host operation and maintenance work in the prior art and poor accuracy of the bastion host's auditing of access behavior, and can realize automatic identification of the behavior of bypassing the bastion host, thereby improving the security of the bastion host operation and maintenance work and the accuracy of the bastion host's auditing of access behavior.

[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0022] Figure 1 This is a flow chart of a method for automatically identifying behaviors of bypassing a bastion server according to the first embodiment of the present invention;

[0023] Figure 2 This is a flow chart of a method for automatically identifying behaviors of bypassing a bastion server according to Embodiment 2 of the present invention;

[0024] Figure 3 2 is a schematic diagram of the structure of an automatic identification device for bypassing a bastion server according to Embodiment 3 of the present invention;

[0025] Figure 4 It is a structural diagram of an electronic device that implements the automatic identification method of the behavior of bypassing the bastion host according to an embodiment of the present invention. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] Embodiment 1

[0029] Figure 1 A flowchart of a method for automatically identifying behaviors of bypassing a bastion host is provided for the first embodiment of the present invention. This embodiment is applicable to situations where behaviors of bypassing a bastion host are automatically identified. The method can be executed by an automatic identification device for automatically identifying behaviors of bypassing a bastion host. The automatic identification device for automatically identifying behaviors of bypassing a bastion host can be implemented in the form of hardware and / or software. The automatic identification device for automatically identifying behaviors of bypassing a bastion host can be configured in a terminal or server having the function of automatically identifying behaviors of bypassing a bastion host.

[0030] like Figure 1 As shown, the method includes:

[0031] S110, obtaining a pre-configured IP whitelist of the target bastion host, and obtaining access information of each application within a preset time period.

[0032] Among them, the bastion host is a device that uses various technical means to monitor and record the operations of servers, network equipment, security equipment, databases and other equipment within the network in a specific network environment in order to protect the network and data from intrusion and destruction from external and internal users, so as to centrally alarm, promptly handle and audit and determine responsibility.

[0033] In this embodiment, the operation and maintenance personnel obtain all servers allowed to pass through the target bastion host before the system is implemented, and establish a communication connection between each server and the current target bastion host, so that the target bastion host can extract the IP of each server allowed to pass through to generate an IP whitelist; wherein the IP whitelist includes the IP addresses corresponding to all servers allowed to pass through the target bastion host.

[0034] The application access information includes: application source IP, access time period and application account ID.

[0035] Those skilled in the art should be aware that, in response to an access request issued by the server, the target bastion host can generate application access information that matches the current access request based on the access request; for example, if a user with ID yunwei1 uses a server with IP 192.168.1.30, and applies for one-hour access rights to an application through the bastion host from 13:28:20 on August 18, 2023 to 14:28:28 on August 18, 2023, then the application access information generated by the bastion host corresponding to the above access request includes the following content: application source IP: 192.168.1.30, access period: 13:28:20 on August 18, 2023 to 14:28:28 on August 18, 2023, and application account ID: yunwei1. It should be noted that the target bastion host only generates application access information for access requests whose application source IP is in the IP whitelist. Correspondingly, application access information is not generated for access requests whose application source IP is not in the IP whitelist. Therefore, there is no matching application access information in the target bastion host for access requests whose application IP is not in the IP whitelist. The scheme described in this embodiment can preliminarily filter access requests that are not in the IP whitelist based on the generation of application access information, that is, it identifies that the source IP of the user logging into the system does not fall within the scope of the bastion host IP whitelist, then determines that the ID has illegally logged into the system and rejects the access request, thereby improving the security of the bastion host operation and maintenance work and the accuracy of the bastion host's review of access behavior.

[0036] S120. Obtain each target log of the target server having access to the target bastion host through the preset proxy software.

[0037] Among them, the target log is the log data generated by the target server due to the operation of accessing the target bastion host.

[0038] Among them, the preset agent software can be a system log acquisition software with information transmission function; in this embodiment, the preset agent software responds to the operation of the target server accessing the target bastion host, and uploads the log data of each target log generated by the above operation.

[0039] Exemplarily, in a target server configured with preset proxy software, the log data of the target log generated by the operation of the target server accessing the target bastion host is as follows, and the following log data is uploaded as the target log of the target server:

[0040] May 8 09:47:09localhost sshd

[1657] :Accepted password forr oot from192.168.114.1port 57115ssh2

[0041] May 8 13:14:49localhost sshd

[51628] :Failed password for root from192.168.114.1port 49237ssh2

[0042] That is, the current target server successfully accessed the bastion host at May 8 09:47:09 using the IP address 192.168.114.1. At the same time, the current target server failed to access the bastion host at May 8 13:14:49 using the IP address 192.168.114.1.

[0043] Optionally, based on the above steps, the target log corresponding to the failed operation of the target server to access the bastion host can be ignored and not uploaded, and only the target log corresponding to the successful access is uploaded through the preset proxy software.

[0044] S130, based on the IP whitelist of the target bastion host, each application access information and each target log, determine whether the operation of each target server to access the target bastion host is a legal operation.

[0045] Among them, based on the IP whitelist of the target bastion host, each application access information and each target log, it is judged whether the operation of each target server to access the target bastion host is a legal operation, including: extracting the access IP of each target server according to each target log of each target server and judging whether the access IP is in the IP whitelist; for the target server whose access IP is in the IP whitelist, the target log and each application access information corresponding to the target server are audited by a preset audit code to judge whether the log data of the current target log meets at least one application access information.

[0046] The technical solution of the embodiment of the present invention first obtains a pre-configured IP whitelist of the target bastion host, obtains each application access information within a preset time period, then obtains each target log of the target server with the operation of accessing the target bastion host through the preset proxy software, and finally judges whether the operation of accessing the target bastion host of each target server is a legal operation based on the IP whitelist of the target bastion host, each application access information and each target log. It can realize automatic identification of the behavior of bypassing the bastion host, improve the security of the bastion host operation and maintenance work and the accuracy of the bastion host auditing access behavior, and adaptively adapt to the bypass behavior of bastion hosts of different brands and different types of operating systems. By customizing the IP blacklist and IP whitelist, an alarm is immediately triggered when the access IP is not in the IP whitelist and is in the IP blacklist, thereby greatly improving the risk identification efficiency of the IP blacklist.

[0047] Embodiment 2

[0048] Figure 2 A flow chart of an automatic identification method for bypassing a bastion host behavior provided in the second embodiment of the present invention. This embodiment is refined based on the above embodiment. In this embodiment, a method for determining whether the operation of each target server to access the target bastion host is a legal operation based on the IP whitelist of the target bastion host, each application access information and each target log is specifically refined.

[0049] like Figure 2 As shown, the method includes:

[0050] S210, obtaining a pre-configured IP whitelist of the target bastion host, and obtaining access information of each application within a preset time period.

[0051] S220. Obtain each target log of the target server having access to the target bastion host operation through the preset proxy software.

[0052] S230, extracting the access IP of each target server according to each target log of each target server and determining whether the access IP is in the IP whitelist.

[0053] In this embodiment, for a target server whose access IP is not in the IP whitelist but not in the IP blacklist, the access IP is added to the IP blacklist.

[0054] Based on the above steps, illustratively, if the target log content of the target server is May 8 09:47:09localhost sshd

[1657] :Accepted password forroot from 192.168.114.1port57115ssh2, the access IP extracted from the target log is 192.168.114.1; if the above IP is not in the pre-set IP whitelist and IP blacklist, the access request of the above target server is rejected, and 192.168.114.1 is added to the IP blacklist.

[0055] S240. For a target server whose access IP is in the IP whitelist, a target log and each application access information corresponding to the target server are audited by a preset audit code to determine whether the log data of the current target log complies with at least one application access information.

[0056] Specifically, in the present embodiment, it is determined whether the log data of the current target log conforms to at least one application access information, including: parsing the current target log through a preset audit code to obtain the access IP, access time period and application account ID corresponding to the current target log; searching through a preset audit code to see whether the data information of the access IP, access time period and application account ID corresponding to the current log is exactly the same as at least one application access information; if there is at least one application access information that is exactly the same as the log data of the current target log, then it is determined that the operation of the target server corresponding to the current target log to access the target bastion host is a legal operation.

[0057] In a specific implementation of this embodiment, if the content of the current target log is May 8 09:47:09localhost sshd

[1657] :Accepted password forroot from 192.168.114.1port57115ssh2, the preset audit code can be used to audit the specific content of the above target log to obtain the access IP corresponding to the above target log: 192.168.114.1, the access period May 8 09:47:09 to the current time and the application account ID; further, the preset audit code can be specifically:

[0058] starttime="now / d-1d"endtime="now / d"appname:linux tag:secure event_name:Login success event

[0059] |eval time=formatdate(timestamp,"yyyy-MM-dd HH:mm:ss")

[0060] |stats count()as cnt by time,src_ip,ip,type,user

[0061] |where src_ip!="bastion host address"&&linux.src_ip!="application form address"|rename timeas"login time",src_ip as"source IP",ip as"target host",type as"login method",user as"login user",cnt as"number of logins".

[0062] Based on the above steps, the preset audit code is used to find out whether the data information of the access IP, access period and application account ID corresponding to the current log is exactly the same as at least one application access information. If there is at least one application access information that is exactly the same as the log data of the current target log, the operation of accessing the target bastion host of the target server corresponding to the current target log is determined to be a legal operation.

[0063] Among them, the application access information is exactly the same as the log data of the current target log, that is, the data information of the access IP, access time period and application account ID obtained by analyzing the target log through the preset audit code is exactly the same as the information content of at least one application access information; it should be noted that, in this embodiment, based on the above steps, since the access request of the target server that is not in the IP whitelist cannot generate the corresponding application access information, it is easy to understand that the preset audit code cannot find at least one application access information that is exactly the same as the log data of the current target log.

[0064] Further, if there is not at least one access application information that is completely identical to the log data of the current target log, it is determined that the operation of the target server corresponding to the current target log to access the target bastion host is not a legal operation.

[0065] Exemplarily, if there is a difference in access time between at least one access application information and the log data of the current target log, while other information is the same, it means that the target server corresponding to the access request accessed the bastion host within an illegal time; similarly, if there is a difference in access IP between at least one access application information and the log data of the current target log, while other information is the same, it means that the target server corresponding to the access request used a jump IP to log in when accessing the bastion host, that is, the address of the target server generating the access request is inconsistent with the address of the server directly accessing the bastion host, which is an act of bypassing the bastion host and is judged to be an illegal operation.

[0066] Based on the steps of the above embodiment, after determining that the operation of the target server corresponding to the current target log to access the target bastion host is not a legal operation, it also includes: obtaining the access IP of the target server corresponding to the current target log, and adding the access IP to the IP blacklist to perform real-time supervision on the access IP.

[0067] Furthermore, in this embodiment, for the target server whose access IP is not in the IP whitelist and is in the IP blacklist, the preset firewall component is called to block the access operation of the target server corresponding to the access IP, and generate an abnormal access warning to prompt relevant staff.

[0068] In this embodiment, a dynamic IP blacklist is set up to block the access IP already in the blacklist and trigger a warning when an access application is generated. The access IP with abnormal access behavior is added to the IP blacklist to monitor and alert the next access request of the access IP. This can automatically identify the behavior of bypassing the bastion host, thereby improving the security of the bastion host operation and maintenance work and the accuracy of the bastion host's review of access behavior.

[0069] The technical solution of the embodiment of the present invention first obtains a pre-configured IP whitelist of the target bastion host, obtains each application access information within a preset time period, then obtains each target log of the target server with the operation of accessing the target bastion host through the preset proxy software, and finally judges whether the operation of accessing the target bastion host of each target server is a legal operation based on the IP whitelist of the target bastion host, each application access information and each target log. It can realize automatic identification of the behavior of bypassing the bastion host, improve the security of the bastion host operation and maintenance work and the accuracy of the bastion host auditing access behavior, and adaptively adapt to the bypass behavior of bastion hosts of different brands and different types of operating systems. By customizing the IP blacklist and IP whitelist, an alarm is immediately triggered when the access IP is not in the IP whitelist and is in the IP blacklist, thereby greatly improving the risk identification efficiency of the IP blacklist.

[0070] Embodiment 3

[0071] Figure 3 A schematic diagram of the structure of an automatic identification device for bypassing a bastion host provided in Example 3 of the present invention.

[0072] like Figure 3 As shown, the device comprises:

[0073] The information acquisition module 310 is used to obtain the pre-configured IP whitelist of the target bastion host and obtain each application access information within a preset time period; wherein the application access information includes: the application source IP, the access period and the application account ID;

[0074] The log acquisition module 320 is used to acquire each target log of the target server having the operation of accessing the target bastion host through the preset proxy software; wherein the target log is the log data generated by the target server due to the operation of accessing the target bastion host;

[0075] The legal operation judgment module 330 is used to judge whether the operation of each target server accessing the target bastion host is a legal operation based on the IP whitelist of the target bastion host, each application access information and each target log.

[0076] The technical solution of the embodiment of the present invention first obtains a pre-configured IP whitelist of the target bastion host, obtains each application access information within a preset time period, then obtains each target log of the target server with the operation of accessing the target bastion host through the preset proxy software, and finally judges whether the operation of each target server to access the target bastion host is a legal operation based on the IP whitelist of the target bastion host, each application access information and each target log. This can realize automatic identification of the behavior of bypassing the bastion host, improve the security of the bastion host operation and maintenance work and the accuracy of the bastion host's audit of access behavior.

[0077] Based on the above embodiment, the legal operation determination module 330 further includes:

[0078] An IP whitelist extracting unit, configured to extract the access IP of each target server according to each target log of each target server and determine whether the access IP is in the IP whitelist;

[0079] The audit unit is used to audit the target log and each application access information corresponding to the target server whose access IP is in the IP whitelist through a preset audit code to determine whether the log data of the current target log conforms to at least one application access information.

[0080] Based on the above embodiment, the audit unit further includes:

[0081] The log parsing unit is used to parse the current target log through a preset audit code to obtain the access IP, access time period and application account ID corresponding to the current target log;

[0082] A search unit, used to search through a preset audit code whether the data information of the access IP, access time period and application account ID corresponding to the current log is exactly the same as at least one application access information;

[0083] The first determination unit is used to determine that the operation of the target server corresponding to the current target log accessing the target bastion host is a legal operation if there is at least one application access information that is completely identical to the log data of the current target log.

[0084] The second determination unit is used to determine that the operation of the target server corresponding to the current target log to access the target bastion host is not a legal operation if there is not at least one application access information that is completely identical to the log data of the current target log.

[0085] Based on the above embodiment, the second determination unit further includes:

[0086] The real-time monitoring unit is used to determine that the operation of the target server corresponding to the current target log to access the target bastion host is not a legal operation, obtain the access IP of the target server corresponding to the current target log, and add the access IP to the IP blacklist to perform real-time monitoring on the access IP.

[0087] Based on the above embodiment, the IP whitelist pulling unit further includes:

[0088] a blacklist adding unit, configured to extract the access IP of each target server according to each target log of each target server and determine whether the access IP is in the IP whitelist, and then, for a target server whose access IP is not in the IP whitelist but not in the IP blacklist, add the access IP to the IP blacklist;

[0089] The operation blocking unit is used to call a preset firewall component to block the access operation of the target server corresponding to the access IP that is not in the IP whitelist and is in the IP blacklist, and generate an abnormal access warning to prompt relevant staff.

[0090] The automatic identification device for bypassing the bastion host behavior provided in the embodiment of the present invention can execute the automatic identification method for bypassing the bastion host behavior provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0091] Embodiment 4

[0092] Figure 4 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0093] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0094] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0095] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as an automatic identification method for bypassing the bastion host behavior.

[0096] Accordingly, the method comprises:

[0097] Obtain the pre-configured IP whitelist of the target bastion host, and obtain each application access information within a preset time period; wherein the application access information includes: application source IP, access period and application account ID;

[0098] Obtaining each target log of a target server having an operation of accessing a target bastion host through a preset proxy software; wherein the target log is log data generated by the target server due to the operation of accessing the target bastion host;

[0099] Based on the IP whitelist of the target bastion host, each application access information, and each target log, determine whether the operation of each target server to access the target bastion host is a legal operation.

[0100] In some embodiments, the automatic identification method of bypassing the bastion host behavior can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the automatic identification method of bypassing the bastion host behavior described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to perform the automatic identification method of bypassing the bastion host behavior in any other appropriate manner (for example, by means of firmware).

[0101] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0102] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0103] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0104] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0105] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0106] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0107] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

Claims

1. An automatic identification method for bypassing the bastion host behavior, It is characterized in that include: Obtain a pre-configured IP whitelist of the target bastion host, and obtain each application access information within a preset time period; wherein the application access information includes: application source IP, access period, and application account ID; wherein application access information is generated only for access requests whose application source IP is in the IP whitelist; Obtaining each target log of a target server having an operation of accessing a target bastion host through a preset proxy software; wherein the target log is log data generated by the target server due to the operation of accessing the target bastion host; Based on the target bastion host's IP whitelist, each application access information, and each target log, determine whether each target server's access to the target bastion host is a legal operation; Among them, based on the IP whitelist of the target bastion host, each application access information and each target log, it is judged whether the operation of each target server to access the target bastion host is a legal operation, including: extracting the access IP of each target server according to each target log of each target server and judging whether the access IP is in the IP whitelist; for the target server whose access IP is in the IP whitelist, the target log and each application access information corresponding to the target server are audited by a preset audit code to judge whether the log data of the current target log meets at least one application access information.

2. The method according to claim 1, It is characterized in that Determining whether the log data of the current target log meets at least one application access information includes: Parse the current target log through the preset audit code to obtain the access IP, access time period and application account ID corresponding to the current target log; Use the preset audit code to check whether the data information of the access IP, access time period and application account ID corresponding to the current log is exactly the same as at least one application access information; If there is at least one access application information that is completely identical to the log data of the current target log, then the operation of the target server corresponding to the current target log to access the target bastion host is determined to be a legal operation.

3. The method according to claim 2, It is characterized in that After checking the access IP, access time period and application account ID data information corresponding to the current log through the preset audit code to see if it is exactly the same as at least one application access information, it also includes: If there is not at least one access application information that is completely identical to the log data of the current target log, it is determined that the operation of the target server corresponding to the current target log to access the target bastion host is not a legal operation.

4. The method according to claim 3, It is characterized in that After determining that the operation of the target server corresponding to the current target log to access the target bastion host is not a legal operation, it also includes: Get the access IP of the target server corresponding to the current target log, and add the access IP to the IP blacklist to monitor the access IP in real time.

5. The method according to claim 1, It is characterized in that After extracting the access IP of each target server according to each target log of each target server and determining whether the access IP is in the IP whitelist, the method further includes: For a target server where an access IP is not in the IP whitelist but is not in the IP blacklist, the access IP is added to the IP blacklist.

6. The method according to claim 5, It is characterized in that Also includes: For the target server whose access IP is not in the IP whitelist but in the IP blacklist, the preset firewall component is called to block the access operation of the target server corresponding to the access IP, and an abnormal access warning is generated to prompt relevant staff.

7. An automatic identification device for bypassing the bastion host behavior, It is characterized in that include: An information acquisition module is used to obtain a pre-configured IP whitelist of a target bastion host and obtain each application access information within a preset time period; wherein the application access information includes: application source IP, access period and application account ID; wherein application access information is generated only for access requests whose application source IP is in the IP whitelist; A log acquisition module, used to acquire each target log of a target server having an operation of accessing a target bastion host through a preset proxy software; wherein the target log is log data generated by the target server due to the operation of accessing the target bastion host; The legal operation judgment module is used to judge whether the operation of each target server to access the target bastion host is a legal operation based on the IP whitelist of the target bastion host, each application access information and each target log; Among them, the legal operation judgment module includes: an IP whitelist pulling unit, which is used to extract the access IP of each target server according to each target log of each target server and determine whether the access IP is in the IP whitelist; an audit unit, which is used to audit the target log and each application access information corresponding to the target server whose access IP is in the IP whitelist through a preset audit code to determine whether the log data of the current target log conforms to at least one application access information.

8. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the automatic identification method for bypassing the bastion host behavior described in any one of claims 1-6.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the automatic identification method for bypassing a bastion server as described in any one of claims 1 to 6 when executed.