Intranet penetration test control method and system based on artificial intelligence

Using artificial intelligence to analyze network traffic and transmission time, optimize the allocation of penetration testing equipment, solve the problem of insufficient coordination of intranet penetration testing equipment in the existing technology, and improve the efficiency and accuracy of penetration testing.

CN118400190BActive Publication Date: 2024-08-23HUNAN YIJING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410832101.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-08-23
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

Existing intranet penetration testing equipment cannot be effectively coordinated, resulting in low penetration testing efficiency. The inability to accurately allocate equipment leads to inconsistent penetration testing complexity due to differences in network traffic transmission, which affects testing efficiency.

Method used

Use artificial intelligence to analyze the network traffic, transmission time and traffic deviation of each network segment to be tested, calculate the penetration test complexity and complexity consistency, construct the pre-allocation adjustment coefficient and standard allocation adjustment coefficient, optimize the allocation of penetration testing equipment, and ensure that the equipment Reasonable distribution of quantities to improve synergy.

Benefits of technology

It improves the efficiency of intranet penetration testing, ensures the reasonable distribution of penetration testing equipment in each network segment to be tested, enhances the synergy between equipment, and improves the efficiency and accuracy of testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118400190B
    Figure CN118400190B
Patent Text Reader

Abstract

The present application relates to the technical field of network security testing, and specifically to an intranet penetration test control method and system based on artificial intelligence, the method comprising: obtaining the network traffic, network traffic transmission time, and total network traffic of each IP address in each network segment to be tested at each moment; determining the penetration test complexity and test complexity consistency of each IP address; determining the pre-allocated adjustment coefficient of each network segment to be tested based on the penetration test complexity and the test complexity consistency; determining the penetration test time characteristic value of each network segment to be tested based on the deviation of the total network traffic of each network segment to be tested at each moment; and then determining the standard allocation adjustment coefficient of each network segment to be tested; determining the number of penetration test devices after optimized control of each network segment to be tested based on the standard allocation adjustment coefficient, and performing scanning penetration test on each network segment to be tested. The present application improves the efficiency of intranet penetration testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network security testing technology, and specifically to an intranet penetration testing control method and system based on artificial intelligence. Background Art

[0002] With the continuous development of computer information technology, network security issues have become more prominent, and the accompanying security risks have continued to increase. At present, many companies build internal LANs by setting up servers, and corporate workers use specific internal LANs to work in order to avoid the risk of information leakage.

[0003] However, in order to detect the security strength of the enterprise's internal LAN and the feasibility of the security policy, it is necessary to conduct an intranet penetration test. The intranet penetration test aims to evaluate the security of the target local area network by simulating the attack method of an attacker, timely discover the existing security vulnerabilities and propose solutions, in order to ensure the security of the enterprise information system.

[0004] Most of the existing technologies use network penetration testing equipment to perform penetration testing on the target local area network and security system. However, due to the large differences in network traffic transmission in the network segment to be tested, it is easy to produce an unreasonable number of network penetration testing equipment allocated to the test network segment, making it impossible for the penetration testing equipment to cooperate well with each other to realize the intranet penetration testing function, resulting in low efficiency of the intranet penetration testing. Summary of the invention

[0005] In order to solve the above technical problems, the purpose of this application is to provide an intranet penetration test control method and system based on artificial intelligence. The technical solutions adopted are as follows:

[0006] In a first aspect, an embodiment of the present application provides an intranet penetration test control method based on artificial intelligence, the method comprising the following steps:

[0007] Obtain the network traffic of each IP address in each network segment to be tested at each time, the network traffic transmission time, and the total network traffic of each network segment to be tested through the server;

[0008] For each IP address in each network segment to be tested, determine the penetration test complexity of each IP address based on the network traffic of each IP address and the network traffic transmission time;

[0009] Determine the consistency of the test complexity of each IP address based on the changes in the penetration test complexity of each IP address;

[0010] Determine the pre-allocation adjustment coefficient of each network segment to be tested based on the penetration test complexity and the test complexity consistency, wherein the pre-allocation adjustment coefficient of each network segment to be tested is the average value of the product of the penetration test complexity and the test complexity consistency of all IP addresses in each network segment to be tested;

[0011] Determine the penetration test time characteristic value of each network segment to be tested based on the deviation of the total network traffic of each network segment to be tested at each time;

[0012] Determine the standard allocation adjustment coefficient of each network segment to be tested based on the pre-allocated adjustment coefficient of each network segment to be tested and the penetration test time characteristic value, wherein the standard allocation adjustment coefficient is the product of the pre-allocated adjustment coefficient and the penetration test time characteristic value;

[0013] Based on the standard allocation adjustment coefficient, and combined with the number of IP addresses in each network segment to be tested and the IP address test rate of each penetration testing device, the number of penetration testing devices after optimized control of each network segment to be tested is determined, and a scanning penetration test is performed on each network segment to be tested.

[0014] In combination with the first aspect above, in some embodiments of the present application, the process of determining the complexity of the penetration test of each IP address is as follows:

[0015] Determine the flow deviation coefficient of each IP address based on the difference between the network flows of each IP address;

[0016] The average value of the network traffic of all IP addresses in each network segment to be tested is taken as the average traffic level value of each network segment to be tested;

[0017] Analyze the difference between the network traffic of each IP address and the average traffic level value of the network segment to be tested, and take the absolute value, and use the product of the absolute value and the traffic deviation coefficient as the deviation degree value of each IP address;

[0018] Analyze the average value of the difference between the network traffic transmission time of each IP address and all other IP addresses in the network segment to be tested as the transmission average time difference, and determine the normalized result of the transmission average time difference as the offset time characteristic value of each IP address;

[0019] The penetration test complexity of each IP address is positively correlated with the offset degree value and the offset time characteristic value respectively.

[0020] In combination with the first aspect above, in some embodiments of the present application, the process of determining the flow shift coefficient of each IP address is as follows:

[0021] For each IP address, the difference between the network traffic of the IP address and other IP addresses is analyzed, the differences obtained by analyzing the IP address and all other IP addresses are combined into a set, and the coefficient of variation of the set is used as the traffic deviation coefficient of the IP address.

[0022] In combination with the first aspect above, in some embodiments of the present application, the process of determining the complex consistency of the test of each IP address is as follows:

[0023] Combine the differences in penetration test complexity of different IP addresses to build a complex consistency feature sequence for each IP address;

[0024] Analyze the information entropy of the complex consistency feature sequence of each IP address; obtain the average value of all elements in the complex consistency feature sequence of each IP address, which is recorded as the complexity deviation mean;

[0025] The test complexity consistency of each IP address is negatively correlated with the information entropy and the complexity deviation mean value respectively.

[0026] In combination with the first aspect above, in some embodiments of the present application, the process of constructing the complex consistency feature sequence of each IP address is as follows:

[0027] Analyze the difference between the penetration test complexity of each IP address and the rest of the IP addresses, and record it as the complexity difference;

[0028] The first-order difference sequence of the sequence consisting of the complexity differences obtained by analyzing each IP address and all other IP addresses is determined as the complex consistency feature sequence of each IP address.

[0029] In combination with the first aspect above, in some embodiments of the present application, the process of determining the penetration test time characteristic value of each network segment to be tested is as follows:

[0030] The total network traffic of each network segment to be tested at all times is arranged in chronological order to form a time series of the total network traffic of each network segment to be tested, and a trend feature sequence of the total network traffic of each network segment to be tested is obtained by trend decomposition;

[0031] Analyze the difference between each element except the first element in the total network traffic trend characteristic sequence of each network segment to be tested and the adjacent previous element, and record it as the traffic trend progressive difference;

[0032] Analyze the degree of dispersion of elements in the trend characteristic sequence of the total network traffic of each network segment to be tested;

[0033] The penetration test time characteristic value of each network segment to be tested is positively correlated with the progressive difference of each traffic trend and the degree of dispersion of elements in the characteristic sequence of the total network traffic trend.

[0034] In combination with the first aspect above, in some embodiments of the present application, the process of determining the number of penetration test devices after the optimization control of each network segment to be tested is as follows:

[0035] Obtain the IP address test rate of a single penetration test device through the SAAS server;

[0036] The ratio of the number of IP addresses in each network segment to be tested to the IP address test rate of a single penetration test device is used as a first test ratio;

[0037] Determine the sum of the number 1 and the standard allocation adjustment coefficient of each network segment to be tested as the first coefficient sum;

[0038] The result of multiplying the first test ratio by the sum of the first coefficients and rounding up is used to determine the number of penetration test devices after optimized control of each network segment to be tested.

[0039] In a second aspect, the embodiment of the present application further provides an intranet penetration test control system based on artificial intelligence, the system comprising:

[0040] The penetration test traffic extraction module is used to obtain the network traffic of each IP address in each network segment to be tested at each time, the network traffic transmission time, and the total network traffic of each network segment to be tested through the server;

[0041] A network segment penetration test analysis module, used to determine the penetration test complexity of each IP address based on the network traffic of each IP address and the network traffic transmission time; determine the test complexity consistency of each IP address based on the changes between the penetration test complexities of each IP address; determine the pre-allocation adjustment coefficient of each network segment to be tested based on the penetration test complexity and the test complexity consistency, the pre-allocation adjustment coefficient of each network segment to be tested is the average value of the product of the penetration test complexity and the test complexity consistency of all IP addresses in each network segment to be tested; determine the penetration test time characteristic value of each network segment to be tested based on the deviation of the total network traffic of each network segment to be tested at each moment; determine the standard allocation adjustment coefficient of each network segment to be tested based on the pre-allocation adjustment coefficient of each network segment to be tested and the penetration test time characteristic value, the standard allocation adjustment coefficient is the product of the pre-allocation adjustment coefficient and the penetration test time characteristic value;

[0042] The penetration test module is used to allocate the adjustment coefficient based on the standard, and determine the number of penetration test devices after optimized control of each network segment to be tested in combination with the number of IP addresses in each network segment to be tested and the IP address test rate of each penetration test device, and perform scanning penetration test on each network segment to be tested.

[0043] It can be seen from the above embodiments that the intranet penetration test control method based on artificial intelligence provided by the embodiments of the present application has at least the following beneficial effects:

[0044] This application is based on the analysis of the complexity of intranet penetration testing of IP addresses in the network segment to be tested, and constructs the penetration test complexity to reflect the time complexity of penetration testing equipment in the IP addresses in the network segment to be tested; based on the analysis of the complex consistency characteristics when performing penetration testing on different IP addresses in the network segment to be tested, the test complexity consistency is constructed to reflect the degree of complex consistency of intranet penetration testing on different IP addresses in the network segment to be tested; based on the penetration test complexity and the test complexity consistency, a pre-allocation adjustment coefficient is constructed to improve the rationality of subsequent allocation of penetration test equipment to the network segment to be tested; based on the trend fluctuation characteristics of the total network traffic, a penetration test time characteristic value is constructed, and based on the penetration test time characteristic value and the pre-allocation adjustment coefficient, a standard allocation adjustment coefficient is constructed to reflect whether more penetration test equipment is needed to perform intranet penetration testing on the network segment to be tested. This application uses the standard allocation adjustment coefficient to improve the traditional method of allocating penetration test equipment, so that the number of penetration test equipment allocated to the network segment to be tested is more reasonable, which is convenient for the penetration test equipment to cooperate with each other to realize the intranet penetration test function, so as to improve the efficiency of the intranet penetration test. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art descriptions are 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 creative work.

[0046] Figure 1 A flowchart of the steps of an intranet penetration test control method based on artificial intelligence provided by one embodiment of the present application;

[0047] Figure 2 This is a flowchart of an intranet penetration test control method based on artificial intelligence;

[0048] Figure 3 A schematic diagram of the process of determining the number of penetration test devices after optimizing the control for each network segment to be tested;

[0049] Figure 4 A block diagram of an intranet penetration test control system based on artificial intelligence provided for one embodiment of the present application. DETAILED DESCRIPTION

[0050] In order to further explain the technical means and effects adopted by the present application to achieve the predetermined invention purpose, the following is a detailed description of the artificial intelligence-based intranet penetration test control method and system proposed in the present application, its specific implementation method, structure, features and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0051] Unless otherwise specified and limited, terms such as "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a circuit structure, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such articles or devices. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the article or device including the element. In addition, the term "and\or" used herein includes any and all combinations of one or more related listed items. All technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of this application.

[0052] The specific scheme of the intranet penetration testing control method and system based on artificial intelligence provided by the present application is described in detail below with reference to the accompanying drawings.

[0053] See also Figure 1 , which shows a flowchart of the steps of an intranet penetration test control method based on artificial intelligence provided by an embodiment of the present application;

[0054] The flowchart of the intranet penetration test control method based on artificial intelligence provided by this application is as follows. Figure 2 .

[0055] An artificial intelligence-based intranet penetration test control method provided by an embodiment of the present application includes the following steps:

[0056] The first step: obtain network traffic, network traffic transmission time and total network traffic through the SAAS server.

[0057] It should be noted that there are large differences between the network traffic of different IP addresses in the network segment to be tested. For example, if the network traffic of a certain IP address in the network segment to be tested is large, a single penetration test device often needs a long time to perform intranet penetration testing; if the network traffic of a certain IP address is small, a single penetration test device often needs a short time to perform intranet penetration testing. Most of the existing technologies determine the number of network penetration test devices to be configured for the network segment to be tested by the ratio between the number of IP addresses in the network segment to be tested and the IP address test rate of a single penetration test device. Since there are large differences between the network traffic of different IP addresses in the network segment to be tested, it is unreasonable to configure the number of network penetration test devices for the network segment to be tested, resulting in low efficiency of intranet penetration testing.

[0058] The purpose of this application is to optimize and control the number of network penetration testing devices in the network segment to be tested, so as to improve the mutual coordination between the penetration testing equipment and improve the efficiency of intranet penetration testing.

[0059] Furthermore, the intranet penetration test request of the intranet host is obtained through the SAAS (Software as a Service) server, and the intranet penetration test request includes 20 network segments to be tested in the internal LAN where the intranet host is located, and the number of IP addresses in each network segment to be tested is counted, and the network traffic size and network traffic transmission time of each IP address in each network segment to be tested are counted. In addition, for each network segment to be tested, the total network traffic size at each moment is counted, and the time interval between adjacent moments is 0.2s.

[0060] At this point, the network traffic size, network traffic transmission time, and total network traffic size are obtained.

[0061] The second step: obtain the complexity of penetration testing based on network traffic and network traffic transmission time.

[0062] Furthermore, under normal circumstances, the greater the difference between the network traffic on a certain IP address in the tested network segment and the overall average level of network traffic, that is, the greater the degree of deviation, and at the same time, the higher the network traffic transmission time on the IP address is than the network traffic transmission time on other IP addresses, the higher the complexity of the intranet penetration test on the IP address.

[0063] Specifically, the mean of the network traffic of all IP addresses in each network segment to be tested is taken as the average traffic level value of each network segment to be tested. At the same time, for each IP address in each network segment to be tested, the difference between the network traffic of the IP address and the network traffic of the remaining IP addresses is calculated, and the coefficient of variation of the set composed of all the differences is taken as the traffic deviation coefficient of the IP address, wherein the calculation of the coefficient of variation is a well-known technology, and the specific process is not repeated here.

[0064] It should be noted that in one embodiment of the present application, the difference between the network traffic of the IP address and the network traffic of other IP addresses is analyzed by difference calculation, that is, the difference between the network traffic of the IP address and the network traffic of other IP addresses is calculated. It can be understood that the implementer can use other calculation methods to analyze the difference between the network traffic of IP addresses, not limited to analysis by difference, and the present application does not impose any special restrictions on this.

[0065] Furthermore, for each network segment to be tested, the penetration test complexity of each IP address is calculated:

[0066] For the ith IP address, calculate the absolute value of the difference between the network traffic of the IP address and the average traffic level value of the network segment to be tested to which the IP address belongs, and take the product of the absolute value and the traffic deviation coefficient of the IP address as the deviation degree value of the ith IP address;

[0067] Calculate the difference between the network traffic transmission time of the ith IP address and each other IP address in the network segment to be tested, and record it as the transmission time difference; calculate the average of the transmission time differences calculated between the ith IP address and all other IP addresses in the network segment to be tested, and record it as the transmission average time difference; use the normalized result of the transmission average time difference as the offset time characteristic value of the ith IP address;

[0068] Then, the penetration test complexity of the i-th IP address is positively correlated with the offset degree value of the i-th IP address and the offset time characteristic value of the i-th IP address respectively.

[0069] Specifically, as an embodiment of the present application, the product of the offset degree value of the i-th IP address and the offset time characteristic value of the i-th IP address is used as the penetration test complexity of the i-th IP address.

[0070] It should be noted that the positive correlation described in the present application refers to the same changing trend between variables, the dependent variable increases as the independent variable increases, and decreases as the independent variable decreases. The specific calculation relationship of the positive correlation can be determined by the implementer according to the actual application scenario. One embodiment of the present application selects multiplication calculation. As another implementation method, the penetration test complexity of the i-th IP address can also be the sum of the offset degree value of the i-th IP address and the offset time characteristic value of the i-th IP address.

[0071] It can be understood that the complexity of the penetration test reflects the time complexity of the penetration test device performing penetration testing on the IP address in the tested network segment, that is, the higher the penetration test complexity of the IP address, the longer it takes for the penetration test device to perform intranet penetration testing on the IP address.

[0072] The third step: obtain the complex consistency feature sequence based on the complexity of the penetration test, and obtain the test complexity consistency based on the complex consistency feature sequence.

[0073] Furthermore, in order to reflect the complex consistency characteristics of penetration testing of different IP addresses in the network segment to be tested, further analysis is needed based on the complexity of penetration testing.

[0074] When the complex consistency characteristics are strong during penetration testing of different IP addresses in the network segment to be tested, it means that the IP addresses in the network segment to be tested have more IP address information, and more penetration testing equipment is needed to cooperate to complete the intranet penetration test of all IP addresses in the network segment to be tested.

[0075] Specifically, for each IP address in each network segment to be tested, the difference in penetration test complexity between each IP address and each of the remaining IP addresses is calculated and recorded as the complexity difference. The first-order difference sequence of the sequence composed of the complexity differences calculated between each IP address and all other IP addresses is determined as the complex consistency feature sequence of each IP address, where the calculation of the first-order difference sequence is a well-known technology and the specific process will not be repeated here.

[0076] Furthermore, for each network segment to be tested, the test complexity consistency of each IP address is calculated:

[0077] For the i-th IP address, calculate the information entropy of the complex consistency feature sequence of the IP address; obtain the average value of all elements in the complex consistency feature sequence of the IP address, which is recorded as the complexity deviation mean, wherein the calculation of information entropy is a well-known technology and the specific process is not repeated here;

[0078] The test complexity consistency of the i-th IP address is negatively correlated with the information entropy and the complexity deviation mean, respectively.

[0079] It should be noted that the negative correlation described in this application refers to the opposite trend of changes between variables, that is, the dependent variable decreases as the independent variable increases, and increases as the independent variable decreases. The specific calculation relationship is determined by the implementer according to the actual application scenario, and this application does not impose any special restrictions on this.

[0080] Specifically, as an embodiment of the present application, the negative mapping result with the natural constant as the base and the information entropy as the exponent is used as the numerator; the sum of the complexity deviation mean and the first artificial threshold parameter is used as the denominator; the role of the first artificial threshold parameter is to avoid the denominator taking a value of 0, and in an embodiment of the present application, the value is 1, and the ratio of the numerator to the denominator is used as the test complexity consistency of the i-th IP address.

[0081] It can be understood that the test complexity consistency reflects the complexity consistency of the intranet penetration test for different IP addresses in the network segment to be tested. That is, the larger the test complexity consistency value of the IP address, the more consistent the complexity of the penetration test is when the intranet penetration test is performed on different IP addresses in the network segment to be tested to which the IP address belongs.

[0082] Step 4: Obtain the pre-allocated adjustment factor based on the penetration test complexity and test complexity consistency.

[0083] Furthermore, for each network segment to be tested, when the complexity of the penetration test on the IP addresses within it is high and the complexity of the penetration test is relatively consistent, it means that when the penetration test equipment is used to perform penetration test on the IP addresses within the network segment to be tested, most IP addresses require a longer penetration test time, so more penetration test equipment needs to be allocated to the network segment to be tested to improve the efficiency of the intranet penetration test.

[0084] Therefore, this application will construct a pre-allocated adjustment coefficient for each network segment to be tested, wherein the pre-allocated adjustment coefficient for each network segment to be tested is positively correlated with the penetration test complexity of all IP addresses within each network segment to be tested, and the test complexity consistency.

[0085] Specifically, as an embodiment of the present application, for the g-th network segment to be tested, the multiplication result of the penetration test complexity and the test complexity consistency of each IP address is calculated, and the average of the multiplication result on all IP addresses in the g-th network segment to be tested is used as the pre-allocated adjustment coefficient of the g-th network segment to be tested.

[0086] It can be understood that the greater the penetration test complexity of the IP address in the tested network segment and the greater the consistency of the test complexity, the more penetration test equipment needs to be allocated to the tested network segment to complete the intranet penetration test, and the larger the pre-allocation adjustment coefficient at this time.

[0087] The fifth step: obtain the penetration test time characteristic value based on the total network traffic.

[0088] Furthermore, the upward trend fluctuation characteristics of the total network traffic size at continuous moments in the network segment to be tested can reflect the changes in the network traffic transmission of all IP addresses at different moments. The stronger the upward trend fluctuation characteristics of the total network traffic size at continuous moments in the network segment to be tested, the greater the upward trend change characteristics of the network traffic transmission of all IP addresses at different moments. At this time, a longer penetration test time is required, and an intranet penetration test is performed on the IP addresses of the network segment to be tested.

[0089] Specifically, a sequence composed of the total network traffic at all times in each network segment to be tested in chronological order is used as a time series of the total network traffic of each network segment to be tested.

[0090] In order to analyze the rising trend fluctuation characteristics of the total network traffic time series of different network segments to be tested, the total network traffic time series of each network segment to be tested is used as the input of the STL seasonal trend decomposition algorithm (Seasonal and Trend decomposition using Loess, STL), and the STL seasonal trend decomposition algorithm is used to obtain the trend feature sequence of the total network traffic of each network segment to be tested. The STL seasonal trend decomposition algorithm is a well-known technology and the specific process will not be repeated here.

[0091] Furthermore, the penetration test time characteristic value of each network segment to be tested is calculated:

[0092] For each network segment to be tested, the difference between each element except the first element in the network total traffic trend feature sequence and the adjacent previous element is calculated, and recorded as the traffic trend progressive difference;

[0093] Analyze the degree of dispersion of elements in the trend characteristic sequence of the total network traffic of each network segment to be tested;

[0094] The penetration test time characteristic value of each network segment to be tested is positively correlated with the progressive difference of each traffic trend and the degree of dispersion of elements in the characteristic sequence of the total network traffic trend.

[0095] Specifically, in one embodiment of the present application, for the g-th network segment to be tested, the mean of the traffic trend progressive differences of all elements except the first element in the network total traffic trend feature sequence is determined as the traffic deviation mean;

[0096] In this embodiment, the mean square error is used to characterize the dispersion degree of elements in the network total flow trend characteristic sequence of the network segment to be tested, that is, the mean square error of all elements in the network total flow trend characteristic sequence is calculated. It should be noted that, as other implementation methods, under the premise of ensuring the purpose of analyzing the dispersion degree of elements in the network total flow trend characteristic sequence, the implementer can use other methods in the prior art to evaluate the dispersion degree of elements in the network total flow trend characteristic sequence, and this application does not impose any special restrictions on this;

[0097] The product of the mean square error and the mean value of the flow deviation is used as the penetration test time characteristic value of the g-th network segment to be tested.

[0098] It can be understood that the penetration test time characteristic value reflects the penetration test time characteristics of different network segments to be tested when conducting intranet penetration testing, that is, the larger the penetration test time characteristic value of the network segment to be tested, the longer the penetration time required when using the penetration test equipment to conduct penetration testing on the network segment to be tested.

[0099] The sixth step: obtaining the standard allocation adjustment coefficient based on the pre-allocated adjustment coefficient and the penetration test time characteristic value.

[0100] Furthermore, when the penetration test time characteristic value of the network segment to be tested is larger, more penetration test devices are needed to complete the penetration test of the network segment to be tested, thereby improving the efficiency of the penetration test.

[0101] Therefore, based on the pre-allocated adjustment coefficient and the penetration test time characteristic value, the standard allocation adjustment coefficient of each network segment to be tested is calculated:

[0102] The product of the penetration test time characteristic value and the pre-allocated adjustment coefficient of each network segment to be tested is calculated and determined as the time adjustment product. The standard allocation adjustment coefficient of each network segment to be tested is positively correlated with the time adjustment product. That is, it can be understood that the standard allocation adjustment coefficient of each network segment to be tested is positively correlated with the penetration test time characteristic value and the pre-allocated adjustment coefficient of each network segment to be tested, respectively.

[0103] Specifically, as an embodiment of the present application, for the g-th network segment to be tested, a negative mapping result is calculated with a natural constant as the base and the time adjustment product as the exponent; the addition result of the opposite of the negative mapping result and the value 1 is used as the standard allocation adjustment coefficient of the g-th network segment to be tested.

[0104] It is understandable that the larger the standard allocation adjustment coefficient of the network segment to be tested, the more penetration testing equipment is needed to perform intranet penetration testing on the network segment to be tested, so as to improve the efficiency of intranet penetration testing.

[0105] At this point, the above process of this application is repeated to obtain the standard allocation adjustment coefficient of each network segment to be tested.

[0106] The seventh step: based on the standard allocation adjustment coefficient, obtain the number of penetration test devices after optimization control, and establish a penetration test tunnel between the penetration test device and the intranet host to complete the scanning penetration test of each network segment to be tested in the internal LAN.

[0107] The IP address test rate of a single penetration test device is obtained through the SAAS server. The IP address test rate is the number of IP address tests of a single penetration test device within a unit time of 1 hour, and the number of IP addresses in each network segment to be tested is counted at the same time.

[0108] Furthermore, the number of penetration test devices after optimized control of each network segment to be tested is calculated:

[0109] For the g-th network segment to be tested, the ratio between the number of IP addresses in the network segment to be tested and the IP address test rate of a single penetration testing device is taken as the first test ratio, the sum of the number 1 and the standard allocation adjustment coefficient of the network segment to be tested is determined as the first coefficient sum, the first test ratio is multiplied by the first coefficient sum and the result is rounded up to determine the number of penetration testing devices after optimized control of the g-th network segment to be tested.

[0110] Specifically, as an embodiment of the present application, the schematic diagram of the process of determining the number of penetration test devices after the optimization control of each network segment to be tested is shown in FIG. Figure 3 .

[0111] Furthermore, by calling the penetration test device of each network segment to be tested, a penetration test tunnel is established between the penetration test device and the intranet host, and the penetration test device is controlled to scan and penetrate each network segment to be tested in the internal LAN through the penetration test tunnel.

[0112] Based on the same inventive concept as the above method, the embodiment of the present application also provides an intranet penetration test control system based on artificial intelligence, the system comprising:

[0113] The penetration test traffic extraction module is used to obtain the network traffic of each IP address in each network segment to be tested at each time, the network traffic transmission time, and the total network traffic of each network segment to be tested through the server;

[0114] A network segment penetration test analysis module, used to determine the penetration test complexity of each IP address based on the network traffic of each IP address and the network traffic transmission time; determine the test complexity consistency of each IP address based on the changes between the penetration test complexities of each IP address; determine the pre-allocation adjustment coefficient of each network segment to be tested based on the penetration test complexity and the test complexity consistency, the pre-allocation adjustment coefficient of each network segment to be tested is the average value of the product of the penetration test complexity and the test complexity consistency of all IP addresses in each network segment to be tested; determine the penetration test time characteristic value of each network segment to be tested based on the deviation of the total network traffic of each network segment to be tested at each moment; determine the standard allocation adjustment coefficient of each network segment to be tested based on the pre-allocation adjustment coefficient of each network segment to be tested and the penetration test time characteristic value, the standard allocation adjustment coefficient is the product of the pre-allocation adjustment coefficient and the penetration test time characteristic value;

[0115] The penetration test module is used to allocate the adjustment coefficient based on the standard, and determine the number of penetration test devices after optimized control of each network segment to be tested in combination with the number of IP addresses in each network segment to be tested and the IP address test rate of each penetration test device, and perform scanning penetration test on each network segment to be tested.

[0116] Specifically, the block diagram of an intranet penetration test control system based on artificial intelligence in one embodiment of the present application can be found in Figure 4 .

[0117] It is to be understood that the sequence of the embodiments of the present application described above is for description only and does not represent the advantages and disadvantages of the embodiments. The above describes specific embodiments of the present specification. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0118] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

[0119] The above content is only an implementation method of the present application and is not intended to limit the scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly used in other related technical fields, are also included in the protection scope of the present application.

Claims

1. An intranet penetration test control method based on artificial intelligence, characterized in that: The method comprises the following steps: Obtain the network traffic of each IP address in each network segment to be tested at each time, the network traffic transmission time, and the total network traffic of each network segment to be tested through the server; For each IP address in each network segment to be tested, determine the penetration test complexity of each IP address based on the network traffic of each IP address and the network traffic transmission time; Determine the consistency of the test complexity of each IP address based on the changes in the penetration test complexity of each IP address; Determine the pre-allocation adjustment coefficient of each network segment to be tested based on the penetration test complexity and the test complexity consistency, wherein the pre-allocation adjustment coefficient of each network segment to be tested is the average value of the product of the penetration test complexity and the test complexity consistency of all IP addresses in each network segment to be tested; Determine the penetration test time characteristic value of each network segment to be tested based on the deviation of the total network traffic of each network segment to be tested at each time; Determine the standard allocation adjustment coefficient of each network segment to be tested based on the pre-allocated adjustment coefficient of each network segment to be tested and the penetration test time characteristic value, wherein the standard allocation adjustment coefficient is the product of the pre-allocated adjustment coefficient and the penetration test time characteristic value; Based on the standard allocation adjustment coefficient, and combined with the number of IP addresses in each network segment to be tested and the IP address test rate of each penetration testing device, the number of penetration testing devices after optimized control of each network segment to be tested is determined, and a scanning penetration test is performed on each network segment to be tested.

2. The intranet penetration test control method based on artificial intelligence as claimed in claim 1, characterized in that: The process of determining the penetration test complexity of each IP address is as follows: Determine the flow rate deviation coefficient of each IP address based on the difference between the network flows of each IP address; The average value of the network traffic of all IP addresses in each network segment to be tested is taken as the average traffic level value of each network segment to be tested; Analyze the difference between the network traffic of each IP address and the average traffic level value of the network segment to be tested, and take the absolute value, and use the product of the absolute value and the traffic deviation coefficient as the deviation degree value of each IP address; Analyze the average value of the difference between the network traffic transmission time of each IP address and all other IP addresses in the network segment to be tested as the transmission average time difference, and determine the normalized result of the transmission average time difference as the offset time characteristic value of each IP address; The penetration test complexity of each IP address is positively correlated with the offset degree value and the offset time characteristic value respectively.

3. The intranet penetration test control method based on artificial intelligence as claimed in claim 2 is characterized in that: The process of determining the flow deviation coefficient of each IP address is as follows: For each IP address, the difference between the network traffic of the IP address and other IP addresses is analyzed, the differences obtained by analyzing the IP address and all other IP addresses are combined into a set, and the coefficient of variation of the set is used as the traffic deviation coefficient of the IP address.

4. The intranet penetration test control method based on artificial intelligence as claimed in claim 1, characterized in that: The determination process of the test complexity consistency of each IP address is as follows: Combine the differences in penetration test complexity of different IP addresses to build a complex consistency feature sequence for each IP address; Analyze the information entropy of the complex consistency feature sequence of each IP address; obtain the average value of all elements in the complex consistency feature sequence of each IP address, which is recorded as the complexity deviation mean; The test complexity consistency of each IP address is negatively correlated with the information entropy and the complexity deviation mean value respectively.

5. The intranet penetration test control method based on artificial intelligence as claimed in claim 4 is characterized in that: The complex consistency feature sequence construction process of each IP address is as follows: Analyze the difference between the penetration test complexity of each IP address and the rest of the IP addresses, and record it as the complexity difference; The first-order difference sequence of the sequence consisting of the complexity differences obtained by analyzing each IP address and all other IP addresses is determined as the complex consistency feature sequence of each IP address.

6. The intranet penetration test control method based on artificial intelligence as claimed in claim 1, characterized in that: The process of determining the penetration test time characteristic value of each network segment to be tested is as follows: The total network traffic of each network segment to be tested at all times is arranged in chronological order to form a time series of the total network traffic of each network segment to be tested, and a trend feature sequence of the total network traffic of each network segment to be tested is obtained by trend decomposition; Analyze the difference between each element except the first element in the total network traffic trend characteristic sequence of each network segment to be tested and the adjacent previous element, and record it as the traffic trend progressive difference; Analyze the degree of dispersion of elements in the trend characteristic sequence of the total network traffic of each network segment to be tested; The penetration test time characteristic value of each network segment to be tested is positively correlated with the progressive difference of each traffic trend and the degree of dispersion of elements in the characteristic sequence of the total network traffic trend.

7. The intranet penetration test control method based on artificial intelligence as claimed in claim 1, characterized in that: The process of determining the number of penetration test devices after the optimization control of each network segment to be tested is as follows: Obtain the IP address test rate of a single penetration test device through the SAAS server; The ratio of the number of IP addresses in each network segment to be tested to the IP address test rate of a single penetration test device is used as a first test ratio; Determine the sum of the number 1 and the standard allocation adjustment coefficient of each network segment to be tested as the first coefficient sum; The result of multiplying the first test ratio by the sum of the first coefficients and rounding up is used to determine the number of penetration test devices after optimized control of each network segment to be tested.

8. The intranet penetration test control system based on artificial intelligence is characterized by: The system comprises: The penetration test traffic extraction module is used to obtain the network traffic of each IP address in each network segment to be tested at each time, the network traffic transmission time, and the total network traffic of each network segment to be tested through the server; A network segment penetration test analysis module, used to determine the penetration test complexity of each IP address based on the network traffic of each IP address and the network traffic transmission time; determine the test complexity consistency of each IP address based on the changes between the penetration test complexities of each IP address; determine the pre-allocation adjustment coefficient of each network segment to be tested based on the penetration test complexity and the test complexity consistency, the pre-allocation adjustment coefficient of each network segment to be tested is the average value of the product of the penetration test complexity and the test complexity consistency of all IP addresses in each network segment to be tested; determine the penetration test time characteristic value of each network segment to be tested based on the deviation of the total network traffic of each network segment to be tested at each moment; determine the standard allocation adjustment coefficient of each network segment to be tested based on the pre-allocation adjustment coefficient of each network segment to be tested and the penetration test time characteristic value, the standard allocation adjustment coefficient is the product of the pre-allocation adjustment coefficient and the penetration test time characteristic value; The penetration test module is used to allocate the adjustment coefficient based on the standard, and determine the number of penetration test devices after optimized control of each network segment to be tested in combination with the number of IP addresses in each network segment to be tested and the IP address test rate of each penetration test device, and perform scanning penetration test on each network segment to be tested.