Port rebound detection method and device, storage medium and electronic equipment

By detecting port bounce attacks on the traffic side and using time windows to analyze the source IP address and access records of the target traffic, the problem of low efficiency and accuracy in detecting port bounce attacks in the existing technology is solved, and multi-level security level intranets are realized. Effective security of the host.

CN118694546AActive Publication Date: 2024-09-24BEIJING HONGTENG INTELLIGENT TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310298400.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-24
Publication Date
2024-09-24
Estimated Expiration
2043-03-24

AI Technical Summary

Technical Problem

It is difficult to detect port bounce attacks with existing technology, especially because the name of the hacker tool can be changed at will, causing the Endpoint Detection and Response (EDR) process detection to be unable to effectively identify malicious activities, resulting in the company's intranet being invaded by hackers.

Method used

By selecting a time window on the traffic side to detect traffic behavior, determine whether there is a port bounce attack based on the source IP address and access records of the target traffic, and ignore changes in the name of the bounce port tool to improve detection efficiency and accuracy.

Benefits of technology

It effectively avoids detection errors caused by the name change of the bounce port tool, improves the efficiency and accuracy of intranet security protection, and can detect port bounce attacks on intranet hosts with multi-level security levels.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694546A
    Figure CN118694546A
Patent Text Reader

Abstract

The invention discloses a port rebound detection method and device, a storage medium and electronic equipment. The method comprises the following steps: filtering out that a destination port is an intranet port and a destination network protocol IP address is the flow of an intranet in a first time window, and marking the flow as a first target flow set; extracting a source IP address of the first target traffic set to obtain a first target IP address set; if an IP address in the first target IP address set accesses an intranet port of an intranet IP address in a second time window and is accessed by an extranet IP address, determining the second time window as a first target time window; and if the number of the first target time windows contained in the first time window reaches a preset threshold, determining that the intranet port rebound attack exists, thereby improving the security protection efficiency of the intranet.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet security protection technology, and in particular to a port bounce detection method, device, storage medium and electronic device. Background Art

[0002] With the evolution of hacker attack techniques, enterprises are paying more and more attention to the security of the company's intranet. Hackers will use port rebound tools to use the compromised public network server as a springboard to access the company's intranet. In related technologies, Endpoint Detection and Response (EDR) process detection methods are used to track and handle malicious behavior activities. However, due to the large number of hackers' rebound port tools and the fact that their names can be changed at will, EDR process detection cannot detect malicious activities, and the company's intranet is easily hacked and compromised. Summary of the invention

[0003] The embodiments of the present application provide a port rebound detection method, device, storage medium and electronic device. When a port rebound attack occurs in a company's intranet, the name change of the rebound port tool can be ignored, and the port rebound attack can be detected from the traffic side to ensure the security of the company's intranet.

[0004] In a first aspect, an embodiment of the present application provides a method for detecting a port bounce, comprising:

[0005] Filter out the traffic whose destination port is the intranet port and whose destination Internet Protocol (IP) address is the intranet in the first time window, and mark it as the first target traffic set;

[0006] Extracting the source IP addresses of the first target traffic set to obtain a first target IP address set;

[0007] If there is an IP address in the first target IP address set that accesses the intranet port of the intranet IP address in the second time window and is accessed by the external IP address, then the second time window is determined to be the first target time window; the first time window contains multiple second time windows;

[0008] If the number of the first target time windows included in the first time windows reaches a preset threshold, it is determined that an intranet port rebound attack exists.

[0009] The embodiment of the present application selects a time window on the traffic side to detect traffic behavior, and then determines the presence of a port bounce attack based on the access record of the source IP address of the target traffic in the second window and the number of target second windows, thereby effectively avoiding the problem of being unable to detect attack behavior due to the change of the name of the bounce port tool, and improving the security protection efficiency of the intranet.

[0010] In a possible implementation, if there is an IP address in the first target IP address set that accesses the intranet port of the intranet IP address in the second time window and is accessed by the external IP address, after determining that the second time window is the first target time window, the method further includes:

[0011] If the number of the first target time windows included in the first time window does not reach the preset threshold, it is determined that there is no intranet port rebound attack.

[0012] The embodiment of the present application determines whether there is a port bounce attack based on the number of first target windows in the first time window that meets the conditions, thereby avoiding false positives due to detection errors and improving the detection efficiency and accuracy of port bounce attacks.

[0013] In one possible implementation, the intranet port is configured on a host in an intranet area, the intranet area includes hosts of at least one security level, each host of each security level corresponds to at least one host, and the intranet port that is subject to intranet port rebound attack is configured on any one of the hosts.

[0014] The embodiment of the present application determines the presence of a port bounce attack through detection on the traffic side. When a port bounce attack occurs on hosts with different security levels, it can be detected through the method of this solution, making the application scenarios of this solution more extensive.

[0015] In a possible implementation, the intranet area includes hosts of a first security level and hosts of a second security level, and the first security level is higher than the second security level; the intranet port on which an intranet port rebound attack occurs is configured on the host of the first security level, and the intranet port rebound attack is a first-level intranet port rebound attack.

[0016] In the embodiment of the present application, there is an attack behavior that attacks the host of the first security level through the host of the second security level. It is determined that there is a first-level port rebound attack, and the type of intranet host attacked can be accurately determined, thereby improving the efficiency and accuracy of port rebound attack detection.

[0017] In a possible implementation, after determining that there is a first-level intranet port rebound attack, the method further includes:

[0018] Filter out the traffic whose destination port is the first destination port and whose destination IP address is the second destination IP address set in the first time window, and mark it as the second destination traffic set; the first destination port is configured for a host at the second security level, and the second destination IP address is an IP address corresponding to the host at the second security level;

[0019] Extracting the source IP address of the second target traffic set to obtain a third target IP address set;

[0020] If there is an IP address in the third target IP address set that accesses the first target port of the second target IP address in the second time window, and the fixed port is accessed by the external network IP address, then the second time window is determined to be the second target time window;

[0021] If the number of the second target time windows included in the first time window reaches the preset threshold, it is determined that a secondary intranet port rebound attack exists.

[0022] After detecting the presence of a first-level port bounce attack, the embodiment of the present application continues to detect its access behavior from the traffic side, and determines the presence of a second-level port bounce attack based on the number of time windows in which the target access behavior exists. It is capable of detecting attack behaviors on intranet hosts with multiple security levels and ensuring the security of the intranet hosts.

[0023] In a possible implementation, if there is an IP address in the third target IP address set that accesses the first target port of the second target IP address in the second time window, and the fixed port is accessed by the external network IP address, after determining that the second time window is the second target time window, the method further includes:

[0024] The number of the second target time windows included in the first time window does not reach the preset threshold, and it is determined that there is no secondary intranet port rebound attack.

[0025] The embodiment of the present application continues to detect traffic behavior after determining that a primary port bounce attack exists, and determines whether a secondary port bounce attack exists by detecting whether the number of second windows that meet the conditions reaches a threshold, thereby avoiding misjudgment and error information, and improving the detection efficiency and accuracy of port bounce attacks.

[0026] In a possible implementation, the intranet area includes at least one of the following: a public area, a confidential area, a secret area, and a top-secret area, and the security level of the hosts included in each area is different.

[0027] There are multiple intranet areas involved in the embodiments of the present application, and the security levels of the hosts contained in each intranet area are different. The present solution method can be used to detect security issues of hosts in different intranet areas, thereby improving detection efficiency.

[0028] In a second aspect, an embodiment of the present application provides a port bounce detection device, comprising:

[0029] A filtering module, used to filter out the traffic whose destination port is an intranet port and whose destination network protocol IP address is an intranet in the first time window, and mark it as a first target traffic set;

[0030] An extraction module, used to extract the source IP address of the first target traffic set to obtain a first target IP address set;

[0031] A determination module is used to determine that if there is an IP address in the first target IP address set that accesses the intranet port of the intranet IP address in the second time window and is accessed by the external IP address, then the second time window is determined to be the first target time window; the first time window contains multiple second time windows; if the number of the first target time windows in the first time window reaches a preset threshold, then it is determined that there is an intranet port rebound attack.

[0032] In a third aspect, an embodiment of the present application provides a computer storage medium, including: the computer storage medium stores multiple instructions, and the instructions are suitable for being loaded by a processor and executing the method provided by the first aspect or any possible implementation of the first aspect.

[0033] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising: a memory and a processor; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method provided by the first aspect of the embodiment of the present application or any possible implementation method of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0035] Figure 1 A schematic diagram of a port bounce detection system provided in an embodiment of the present application;

[0036] Figure 2 A flow chart of a port bounce detection method provided in an embodiment of the present application;

[0037] Figure 3 A schematic diagram of a traffic behavior of a port rebound provided in an embodiment of the present application;

[0038] Figure 4 A flow chart of another method for detecting port bounce provided in an embodiment of the present application;

[0039] Figure 5A flow chart of a secondary port bounce detection method provided in an embodiment of the present application;

[0040] Figure 6 A schematic diagram of a process flow of a first-level port bounce detection provided in an embodiment of the present application;

[0041] Figure 7 A schematic diagram of a secondary port bounce detection process provided in an embodiment of the present application;

[0042] Figure 8 A flow chart of another secondary port bounce detection method provided in an embodiment of the present application;

[0043] Fig. 9 A schematic diagram of the structure of a port rebound detection device provided in an embodiment of the present application;

[0044] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0046] The terms "first", "second", "third", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. 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 limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0047] Figure 1A schematic diagram of a port rebound detection system provided by an embodiment of the present application is shown. The port rebound detection system 100 includes an intranet host, a public network server and the Internet. The intranet host in the system can be used to execute the port rebound detection method provided by this solution and the intranet area contains at least one intranet host. This method determines the presence of a port rebound attack by detecting and analyzing the traffic behavior in the intranet. The intranet host is a machine in a local area network or office network dedicated to an enterprise or organization. The intranet host has different security levels and is located in different intranet areas. Each intranet area includes an intranet host of at least one security level, for example: the core host security level of the confidential area is greater than that of the intranet host in the public area. The intranet host can be a desktop computer, a portable computer, a server (such as a physical server, a virtual server), a mobile terminal (such as a mobile phone, a smart wearable device, etc.). Among them, the Internet, i.e., a user in the external network, can directly access the public network server in the demilitarized zone (DMZ) to obtain the public information of the demilitarized zone. Under normal circumstances, the server in the intranet cannot be directly accessed.

[0048] Specifically, the DMZ area is a buffer area between the Internet (external network) and the intranet (internal network of the enterprise). Public network servers are placed in the DMZ area to display the enterprise's public network service information.

[0049] Specifically, the port bounce detection system can detect port bounce attack behaviors in which hackers attack intranet hosts through public network servers on the Internet.

[0050] In related technologies, the EDR process detects intranet port bounce attacks. EDR will monitor running processes, detect suspicious activities and collect information, build models and prevent further attacks. However, there are many types of bounce port tools, and the tool names can be changed at will, which can easily bypass EDR process detection, making it impossible to promptly notify customers of attacks on the intranet, reducing the security of the intranet.

[0051] In order to solve the above problems, this solution combines Figure 2 The flowchart of a method for detecting a port bounce provided by an embodiment of the present application is exemplarily shown. Figure 2 As shown, the port bounce detection method specifically includes the following steps:

[0052] S201. Filter out the traffic whose destination port is the intranet port and whose destination network protocol IP address is the intranet in the first time window, and mark it as the first target traffic set.

[0053] Specifically, the intranet port is configured on a host in an intranet area, the intranet area includes hosts of at least one security level, each host of each security level corresponds to at least one host, and the intranet port on which an intranet port rebound attack exists is configured on any one of the hosts.

[0054] Specifically, the intranet area includes at least one of the following: a public area, a confidential area, a secret area, and a top-secret area, and the security level of the hosts included in each area is different.

[0055] Specifically, in the intranet area, the security level of the host in the top secret area is greater than that of the host in the secret area, the security level of the host in the secret area is greater than that of the host in the confidential area, and the security level of the host in the confidential area is greater than that of the host in the public area.

[0056] Specifically, the time duration of the first time window is a first preset time duration, which is, for example but not limited to, 5 minutes.

[0057] Exemplarily, the embodiment of the present application sets the first preset duration of the first time window to 5 minutes, randomly selects 5 minutes of traffic in the intranet, and filters out the traffic whose destination port is the intranet port and whose destination IP address is the intranet, and marks it as the first target traffic set.

[0058] S202. Extract the source IP address of the first target traffic set to obtain a first target IP address set.

[0059] Specifically, the source IP address of the first target traffic set is the IP address of the host that sends the data packet.

[0060] S203. If there is an IP address in the first target IP address set that accesses the intranet port of the intranet IP address in the second time window and is accessed by the external network IP address, then the second time window is determined to be the first target time window.

[0061] Specifically, the first time window includes a plurality of the second time windows, and the time duration of the second time window is a second preset time duration, such as but not limited to 3 seconds.

[0062] Exemplarily, the embodiment of the present application sets the first preset duration of the first time window to 5 minutes, and the second preset duration of the second time window to 3 seconds. The first target IP address within 5 minutes of the first time window is screened, and the target IP address that accessed the intranet port of the intranet IP address within 3 seconds of the second time window and was accessed by the external network IP address is screened out. The 3-second time window containing the target IP address within the 5-minute time window is the first target time window.

[0063] S204: If the number of the first target time windows in the first time window reaches a preset threshold, it is determined that an intranet port rebound attack exists.

[0064] Specifically, the preset threshold value of the number of first target time windows for determining the presence of an intranet port bounce attack is, for example but not limited to, 5.

[0065] For example, Figure 3 A schematic diagram of the flow behavior of a port rebound is shown, and the embodiment of the present application sets the number of preset thresholds of the first target time window to 5 times, the intranet port is port 3389, the first time window is 5 minutes, and the second time window is 3 seconds. Within 5 minutes of the first time window, the traffic that has accessed the 3389 intranet ports and the destination IP address is also the intranet is filtered out, and is marked as the first traffic set. The source IP address in the first traffic set is extracted as the first target IP address set, which is marked as a potential public network server. There is an IP address in the first target IP address that accesses the 3389 intranet ports within 3 seconds of the second time window and is accessed by the external network IP address. Port 7777 (the port specified by the hacker), and within 5 minutes of the first time window, the number of 3 seconds of the second time window that meets the conditions reaches 5 times, then it is determined that there is a 3389 intranet port rebound attack, and the data is reported to remind that there is an intranet port rebound attack.

[0066] The embodiment of the present application selects a time window on the traffic side to detect traffic behavior, and then determines the presence of a port bounce attack based on the access record of the source IP address of the target traffic in the second window and the number of target second windows, thereby effectively avoiding the problem of being unable to detect attack behavior due to the change of the name of the bounce port tool, and improving the security protection efficiency of the intranet.

[0067] When there is a port bounce attack on the intranet, in order to quickly report data to remind customers to handle it as soon as possible and avoid false information due to errors in traffic detection, the embodiment of the present application determines the presence of an intranet port bounce attack based on the number of the first target time window. Figure 4 As shown, an embodiment of the present application shows a flow chart of another method for detecting port rebound.

[0068] S401. Filter out the traffic whose destination port is the intranet port and whose destination network protocol IP address is the intranet in the first time window, and mark it as the first target traffic set.

[0069] Specifically, S401 is consistent with S201 and will not be described in detail here.

[0070] S402. Extract the source IP address of the first target traffic set to obtain a first target IP address set.

[0071] Specifically, S402 is consistent with S202 and will not be repeated here.

[0072] S403: If there is an IP address in the first target IP address set that accesses the intranet port of the intranet IP address in the second time window and is accessed by the external network IP address, then the second time window is determined to be the first target time window.

[0073] Specifically, S403 is consistent with S203 and will not be described in detail here.

[0074] S404: If the number of the first target time windows in the first time window does not reach the preset threshold, it is determined that there is no intranet port bounce attack.

[0075] Exemplarily, the embodiment of the present application sets the preset threshold value of the number of first target time windows to 5 times. In the first time window, the first target traffic that satisfies the access to the intranet port and the destination IP address is the intranet is screened out, and its source IP address is extracted and marked as the first target IP address. The target IP address that accesses the intranet port in the second time window and is accessed by the external network IP address is screened out, and such second time window is marked as the first target time window. In the first time window, the number of first target time windows is 1 time, which is less than the preset threshold value of 5 times, then it is determined that there is no intranet port rebound attack, and the data at this time is recorded, and no warning is issued to remind the user.

[0076] The embodiment of the present application adopts a method for detecting and filtering traffic side information, and filters out traffic that accesses the intranet port within a first time window and whose destination IP address is the intranet. The source IP address of the traffic accesses the intranet port in a second time window and is accessed by an external network IP address. The second time window is the first target time window. The presence of a port bounce attack is determined based on the number of first target windows in the first time window that meet the conditions, thereby avoiding false alarms due to detection errors and improving the detection efficiency of port bounce attacks.

[0077] Large-scale enterprise intranets are often divided into multiple levels of intranet security zones, and different security level zones correspond to different host security levels. In order to quickly detect whether there is a port bounce attack in the intranet zone, the embodiment of the present application starts from the traffic side, detects whether the traffic meets the corresponding conditions, and reports the existence of port bounce attack behavior in a timely manner, thereby ensuring security for the multiple levels of intranet security zones. Figure 5 As shown, an embodiment of the present application shows a flow chart of a secondary port bounce detection method.

[0078] S501. Filter out the traffic whose destination port is the intranet port and whose destination network protocol IP address is the intranet in the first time window, and mark it as the first target traffic set.

[0079] Specifically, S501 is consistent with S201 and will not be described in detail here.

[0080] S502. Extract the source IP address of the first target traffic set to obtain a first target IP address set.

[0081] Specifically, S502 is consistent with S202 and will not be described in detail here.

[0082] S503. If there is an IP address in the first target IP address set that accesses the intranet port of the intranet IP address in the second time window and is accessed by the external network IP address, then the second time window is determined to be the first target time window.

[0083] Specifically, S503 is consistent with S203 and will not be described in detail here.

[0084] S504: If the number of the first target time windows in the first time window reaches a preset threshold, it is determined that an intranet port rebound attack exists.

[0085] Specifically, the intranet area includes hosts of a first security level and hosts of a second security level, and the first security level is higher than the second security level; the intranet port on which an intranet port rebound attack occurs is configured on the host of the first security level, and the intranet port rebound attack is a first-level intranet port rebound attack.

[0086] For example, in combination Figure 6 The schematic diagram of the first-level port rebound detection shown, in the embodiment of the present application, the intranet port 3389 is configured on the host of the first security level of the intranet, the preset duration of the first time window is 5 minutes, the preset duration of the second time window is 3 seconds, and the preset threshold of the number of the first target time window is 5 times. The traffic within 5 minutes of the first time window is selected, and the traffic with the destination port of port 3389 and the destination IP address of the intranet is screened to obtain the first target traffic set. The source IP address of the first target traffic is extracted and deduplicated to obtain the first target IP address set, which is marked as a potential springboard machine. The IP addresses in the first target IP address set are screened. Within 3 seconds of the second time window, the IP address accesses port 3389 and is accessed by the external network IP address. The fixed port 6666 port is marked as the first target IP address. After the number of 3-second time windows that meet this condition reaches the preset threshold 5 times within 5 minutes, it is determined that there is a first-level port rebound attack.

[0087] S505: Filter out the traffic whose destination port is the first destination port and whose destination IP address is the second destination IP address set in the first time window, and mark it as the second destination traffic set.

[0088] Specifically, the first target port is configured on a host at the second security level, and the second target IP address is an IP address corresponding to the host at the second security level.

[0089] Specifically, the first time window is a time window in which a first-level port rebound attack exists.

[0090] S506. Extract the source IP address of the second target traffic set to obtain a third target IP address set.

[0091] Specifically, S506 is consistent with S202 and will not be described in detail here.

[0092] S507: If there is an IP address in the third target IP address set that accesses the first target port of the second target IP address in the second time window, and the fixed port is accessed by the external network IP address, then the second time window is determined to be the second target time window.

[0093] Specifically, the fixed port accessed by the external network IP address is a fixed port randomly configured by hackers to carry out attack behaviors.

[0094] S508: The number of the second target time windows included in the first time window reaches the preset threshold, and it is determined that there is a secondary intranet port rebound attack.

[0095] Optionally, the preset threshold of the second target time window quantity is the same as the preset threshold of the first target time window quantity.

[0096] Exemplarily, in the embodiment of the present application, the preset thresholds of the number of the first target time window and the second target time window are both 5 times. After the number of the first target time windows that meet the conditions in the first time window reaches the preset threshold of 5 times, it is determined that there is a first-level port rebound attack. Continue screening in the first time window, and if the number of the second target time windows that meet the conditions reaches the preset threshold of 5 times, it is determined that there is a second-level port rebound attack.

[0097] Optionally, the preset threshold of the second target time window quantity is different from the preset threshold of the first target time window quantity.

[0098] Exemplarily, in the embodiment of the present application, the preset threshold value of the number of first target time windows is 5 times, and the preset threshold value of the number of second time windows is 10 times. After the number of first target time windows that meet the conditions in the first time window reaches the preset threshold value 5 times, it is determined that there is a first-level port rebound attack. Continue to screen in the first time window, and the number of second target time windows that meet the conditions reaches the preset threshold value 10 times, then it is determined that there is a second-level port rebound attack.

[0099] For example, in combination Figure 7 Another secondary port rebound detection schematic diagram shown, in the embodiment of the present application, the first time window duration is 5 minutes, the second time window duration is 3 seconds, the preset thresholds of the first target time window and the second target time window quantity are 5 times, the core host is the host of the first security level, and the intranet host is the host of the second security level. Take the traffic of the 5-minute time window, filter out the traffic with the destination port as port 3389 and the destination IP address as the core host, and obtain the first target traffic set. Extract its source IP address, obtain the first target IP address set, and mark it as a potential springboard machine. In the above-mentioned 5-minute time window, there is a 3-second time window, which satisfies the above-mentioned IP address to access the 3389 port of the intranet IP address, and is accessed by the external network IP address A fixed port (port 6666 in the figure), the IP address is marked as the second target IP address set (the intranet host in the figure), and the fixed port is marked as the first target port, and this type of 3-second time window quantity reaches the preset threshold 5 times, then it is determined that there is a first-level intranet port rebound attack. In the above-mentioned 5-minute time window traffic, filter out the traffic whose destination port is the first target port (6666 port) and the destination IP address is the second target IP address set (intranet host), and obtain the second target traffic set. Extract the source IP address to obtain the third target IP address set. In the third target IP address set, filter out in the above-mentioned 5-minute time window, with 3 seconds as a time window, the IP address accesses the first target port (6666 port) of the second target IP address (intranet host), and is accessed by the external network IP address A fixed port (7777 port). In the 5-minute time window, the number of 3-second time windows of this type reaches the preset threshold 5 times, and it is determined that there is a secondary port rebound attack.

[0100] In a possible embodiment, this scheme can detect multi-level port bounce attacks in intranet areas with multiple security levels according to the above steps, wherein the intranet areas with multiple security levels contain intranet hosts with multiple security levels. When an intranet host with at least one security level in the intranet area is attacked by a port bounce attack, this scheme can quickly detect and report it.

[0101] After detecting the presence of a first-level port bounce attack, the embodiment of the present application continues to detect its access behavior from the traffic side, and determines the presence of a second-level port bounce attack based on the number of time windows in which the target access behavior exists. It is capable of detecting attack behaviors on intranet hosts with multiple security levels and ensuring the security of the intranet hosts.

[0102] In order to adapt to the complex network area environment and make the intranet security detection more accurate, the embodiment of the present application determines the existence of a secondary intranet port rebound attack based on the number of the first target time window and the second target time window. Figure 8As shown, an embodiment of the present application shows a flow chart of another port bounce detection method.

[0103] S801. Filter out the traffic whose destination port is the intranet port and whose destination network protocol IP address is the intranet in the first time window, and mark it as the first target traffic set.

[0104] Specifically, S801 is consistent with S201 and will not be described in detail here.

[0105] S802. Extract the source IP address of the first target traffic set to obtain a first target IP address set.

[0106] Specifically, S802 is consistent with S202 and will not be repeated here.

[0107] S803. If there is an IP address in the first target IP address set that accesses the intranet port of the intranet IP address in the second time window and is accessed by the external IP address, then the second time window is determined to be the first target time window.

[0108] Specifically, S803 is consistent with S203 and will not be described in detail here.

[0109] S804: If the number of the first target time windows in the first time window reaches a preset threshold, it is determined that an intranet port rebound attack exists.

[0110] Specifically, S804 is consistent with S504 and will not be described in detail here.

[0111] S805: Filter out the traffic whose destination port is the first destination port and whose destination IP address is the second destination IP address set in the first time window, and mark it as the second destination traffic set.

[0112] Specifically, S805 is consistent with S505 and will not be described in detail here.

[0113] S806. Extract the source IP address of the second target traffic set to obtain a third target IP address set.

[0114] Specifically, S806 is consistent with S506 and will not be described in detail here.

[0115] S807. If there is an IP address in the third target IP address set that accesses the first target port of the second target IP address in the second time window, and the fixed port is accessed by the external network IP address, then the second time window is determined to be the second target time window.

[0116] Specifically, S807 is consistent with S507 and will not be described in detail here.

[0117] S808: The number of the second target time windows included in the first time window does not reach the preset threshold, and it is determined that there is no secondary intranet port rebound attack.

[0118] Exemplarily, the embodiment of the present application sets the preset threshold value of the second target time window number to 10 times, and the preset threshold value of the first target time window number to 5 times. After the number of first target time windows that meet the conditions in the first time window is screened out and reaches the preset threshold value 5 times, it is determined that there is a first-level port rebound attack. Continue screening in the first time window, and if the number of second target time windows that meet the conditions is less than the preset threshold value 10 times, it is determined that there is no second-level port rebound attack.

[0119] The embodiment of the present application continues to detect traffic behavior after determining that a primary port bounce attack exists, and determines whether a secondary port bounce attack exists by detecting whether the number of second windows that meet the conditions reaches a threshold, thereby improving the detection efficiency of port bounce attacks.

[0120] Fig. 9 The following is a schematic diagram showing the structure of a port bounce detection device provided in an embodiment of the present application. Fig. 9 As shown, the port bounce detection device 900 may include:

[0121] The filtering module 901 is used to filter out the traffic whose destination port is the intranet port and whose destination network protocol IP address is the intranet in the first time window, and mark it as the first target traffic set.

[0122] The extraction module 902 is used to extract the source IP address of the first target traffic set to obtain a first target IP address set.

[0123] Determination module 903 is used to determine that if there is an IP address in the first target IP address set that accesses the intranet port of the intranet IP address in the second time window and is accessed by the external IP address, then the second time window is determined to be the first target time window; the first time window contains multiple second time windows; if the number of the first target time windows in the first time window reaches a preset threshold, then it is determined that there is an intranet port rebound attack.

[0124] In some possible embodiments, the determination module 903 is further configured to determine that there is no intranet port bounce attack if the number of the first target time windows in the first time window does not reach the preset threshold.

[0125] In some possible embodiments, the intranet port is configured on a host in an intranet area, the intranet area includes hosts of at least one security level, each host of each security level corresponds to at least one host, and the intranet port that is subject to intranet port rebound attack is configured on any one of the hosts.

[0126] In some possible embodiments, the intranet area includes hosts of a first security level and hosts of a second security level, and the first security level is higher than the second security level; the intranet port on which an intranet port rebound attack occurs is configured on the host of the first security level, and the intranet port rebound attack is a first-level intranet port rebound attack.

[0127] In some possible embodiments,

[0128] The filtering module 901 is further used to filter out the traffic whose destination port is the first destination port in the first time window and whose destination IP address is the second destination IP address set, and mark it as the second destination traffic set; the first destination port is configured at the host of the second security level, and the second destination IP address is the IP address corresponding to the host of the second security level;

[0129] The extraction module 902 is further configured to extract the source IP address of the second target traffic set to obtain a third target IP address set;

[0130] Determination module 903 is also used to determine that the second time window is the second target time window if there is an IP address in the third target IP address set that accesses the first target port of the second target IP address in the second time window, and the fixed port is accessed by the external network IP address; if the number of the second target time windows included in the first time window reaches the preset threshold, it is determined that there is a secondary intranet port rebound attack.

[0131] In some possible embodiments, the determination module 903 is further configured to determine that the number of the second target time windows included in the first time window does not reach the preset threshold, and determine that there is no secondary intranet port rebound attack.

[0132] In some possible embodiments, the intranet area includes at least one of the following: a public area, a confidential area, a secret area, and a top-secret area, and the security level of the hosts included in each area is different.

[0133] The division of each module in the above-mentioned port rebound detection device is only for illustration. In other embodiments, the port rebound detection device can be divided into different modules as needed to complete all or part of the functions of the above-mentioned port rebound detection device. The implementation of each module in the port rebound detection device provided in the embodiment of the present application can be in the form of a computer program. The computer program can be run on a terminal or a server. The program module constituted by the computer program can be stored in the memory of the terminal or the server. When the computer program is executed by the processor, all or part of the steps of the port rebound detection method described in the embodiment of the present application are implemented.

[0134] See also Fig.10 , Fig.10 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown.

[0135] like Fig.10 As shown, the electronic device 1000 may include: at least one processor 1001 , at least one network interface 1004 , a user interface 1003 , a memory 1005 , a touch screen 1006 and at least one communication bus 1002 .

[0136] The communication bus 1002 may be used to realize the connection and communication among the above-mentioned components.

[0137] The user interface 1003 may include buttons, and the optional user interface may also include a standard wired interface or a wireless interface.

[0138] The network interface 1004 may optionally include a Bluetooth module, an NFC module, a Wi-Fi module, etc.

[0139] Among them, the processor 1001 may include one or more processing cores. The processor 1001 uses various interfaces and lines to connect the various parts of the entire electronic device 1000, and executes various functions and processes data of the routing device 1000 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1005, and calling data stored in the memory 1005. Optionally, the processor 1001 can be implemented in at least one hardware form of DSP, FPGA, and PLA. The processor 1001 can integrate one or a combination of CPU, GPU, modem, etc. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1001, and it can be implemented separately through a chip.

[0140] Among them, the memory 1005 may include RAM and may also include ROM. Optionally, the memory 1005 includes a non-transitory computer-readable medium. The memory 1005 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1005 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 1005 may optionally be at least one storage device located away from the aforementioned processor 1001. As Fig.10 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module and an application program.

[0141] Specifically, the processor 1001 may be used to call the application program stored in the memory 1005, and specifically perform the following operations:

[0142] Filter out the traffic whose destination port is the intranet port and whose destination network protocol IP address is the intranet in the first time window, and mark it as the first target traffic set;

[0143] Extracting the source IP addresses of the first target traffic set to obtain a first target IP address set;

[0144] If there is an IP address in the first target IP address set that accesses the intranet port of the intranet IP address in the second time window and is accessed by the external IP address, then the second time window is determined to be the first target time window; the first time window contains multiple second time windows;

[0145] If the number of the first target time windows included in the first time windows reaches a preset threshold, it is determined that an intranet port rebound attack exists.

[0146] In some possible embodiments, after the processor 1001 executes the first target IP address set, if there is an IP address that accesses the intranet port of the intranet IP address in the second time window and is accessed by the external IP address, then determines that the second time window is the first target time window, it is also used to execute:

[0147] If the number of the first target time windows included in the first time window does not reach the preset threshold, it is determined that there is no intranet port rebound attack.

[0148] In some possible embodiments, the intranet port is configured on a host in an intranet area, the intranet area includes hosts of at least one security level, each host of each security level corresponds to at least one host, and the intranet port that is subject to intranet port rebound attack is configured on any one of the hosts.

[0149] In some possible embodiments, the intranet area includes hosts of a first security level and hosts of a second security level, and the first security level is higher than the second security level; the intranet port on which an intranet port rebound attack occurs is configured on the host of the first security level, and the intranet port rebound attack is a first-level intranet port rebound attack.

[0150] In some possible embodiments, after determining that there is an intranet port bounce attack, the processor 1001 is further configured to execute:

[0151] Filter out the traffic whose destination port is the first destination port and whose destination IP address is the second destination IP address set in the first time window, and mark it as the second destination traffic set; the first destination port is configured for a host at the second security level, and the second destination IP address is an IP address corresponding to the host at the second security level;

[0152] Extracting the source IP address of the second target traffic set to obtain a third target IP address set;

[0153] If there is an IP address in the third target IP address set that accesses the first target port of the second target IP address in the second time window, and the fixed port is accessed by the external network IP address, then the second time window is determined to be the second target time window;

[0154] If the number of the second target time windows included in the first time window reaches the preset threshold, it is determined that a secondary intranet port rebound attack exists.

[0155] In some possible embodiments, after the processor 1001 executes the third target IP address set, if there is an IP address in the second time window that accesses the first target port of the second target IP address, and the fixed port is accessed by the external network IP address, then determining that the second time window is the second target time window, it is also used to execute:

[0156] The number of the second target time windows included in the first time window does not reach the preset threshold, and it is determined that there is no secondary intranet port rebound attack.

[0157] In some possible embodiments, the intranet area includes at least one of the following: a public area, a confidential area, a secret area, and a top-secret area, and the security level of the hosts included in each area is different.

[0158] The embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a computer or a processor, the computer or the processor executes the above-mentioned Figures 2 to 8 One or more steps in the illustrated embodiment. If the components of the electronic device described above are implemented in the form of software functional units and sold or used as independent products, they can be stored in the computer-readable storage medium.

[0159] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted by the computer-readable storage medium. The computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that contains one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).

[0160] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes. In the absence of conflict, the technical features in this embodiment and the implementation scheme can be combined arbitrarily.

[0161] The embodiments described above are merely preferred embodiments of the present application and are not intended to limit the scope of the present application. Without departing from the design spirit of the present application, various modifications and improvements made to the technical solutions of the present application by ordinary technicians in this field should fall within the protection scope determined by the claims of the present application.

Claims

1. A method for detecting port bounce, characterized in that: The method comprises: Filter out the traffic whose destination port is the intranet port and whose destination network protocol IP address is the intranet in the first time window, and mark it as the first target traffic set; Extracting the source IP addresses of the first target traffic set to obtain a first target IP address set; If there is an IP address in the first target IP address set that accesses the intranet port of the intranet IP address in the second time window and is accessed by the external IP address, then the second time window is determined to be the first target time window; the first time window contains multiple second time windows; If the number of the first target time windows included in the first time windows reaches a preset threshold, it is determined that an intranet port rebound attack exists.

2. The method according to claim 1, characterized in that If there is an IP address in the first target IP address set that accesses the intranet port of the intranet IP address in the second time window and is accessed by the external IP address, after determining that the second time window is the first target time window, the method further includes: If the number of the first target time windows included in the first time window does not reach the preset threshold, it is determined that there is no intranet port rebound attack.

3. The method according to claim 1, characterized in that The intranet port is configured on a host in an intranet area. The intranet area includes hosts of at least one security level. Each host of each security level corresponds to at least one host. The intranet port that has an intranet port rebound attack is configured on any one of the hosts.

4. The method according to claim 3, characterized in that The intranet area includes hosts of a first security level and hosts of a second security level, the first security level being higher than the second security level; the intranet port on which an intranet port rebound attack occurs is configured on the host of the first security level, and the intranet port rebound attack is a first-level intranet port rebound attack.

5. The method according to claim 4, characterized in that After determining that there is an intranet port rebound attack, the method further includes: Filter out the traffic whose destination port is the first destination port and whose destination IP address is the second destination IP address set in the first time window, and mark it as the second destination traffic set; the first destination port is configured for a host at the second security level, and the second destination IP address is an IP address corresponding to the host at the second security level; Extracting the source IP address of the second target traffic set to obtain a third target IP address set; If there is an IP address in the third target IP address set that accesses the first target port of the second target IP address in the second time window, and the fixed port is accessed by the external network IP address, then the second time window is determined to be the second target time window; If the number of the second target time windows included in the first time window reaches the preset threshold, it is determined that a secondary intranet port rebound attack exists.

6. The method according to claim 5, characterized in that If there is an IP address in the third target IP address set that accesses the first target port of the second target IP address in the second time window, and the fixed port is accessed by the external network IP address, after determining that the second time window is the second target time window, the method further includes: The number of the second target time windows included in the first time window does not reach the preset threshold, and it is determined that there is no secondary intranet port rebound attack.

7. The method according to any one of claims 3 to 6, characterized in that: The intranet area includes at least one of the following: a public area, a confidential area, a secret area, and a top-secret area, and the security level of the hosts included in each area is different.

8. A port rebound detection device, characterized in that: include: A filtering module, used to filter out the traffic whose destination port is an intranet port and whose destination network protocol IP address is an intranet in the first time window, and mark it as a first target traffic set; An extraction module, configured to extract the source IP address of the first target traffic set to obtain a first target IP address set; A determination module is used to determine that if there is an IP address in the first target IP address set that accesses the intranet port of the intranet IP address in the second time window and is accessed by the external IP address, then the second time window is determined to be the first target time window; the first time window contains multiple second time windows; if the number of the first target time windows in the first time window reaches a preset threshold, then it is determined that there is an intranet port rebound attack.

9. A computer storage medium, characterized in that The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 7.

10. An electronic device, characterized in that: include: A memory and a processor; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Reflection attack protection and flow cleaning method and device, equipment and medium

    CN110365658A

  • Attack detection method and device

    CN114679306A

  • Automated Prediction Of Cybersecurity Vulnerabilities

    US20230019180A1