A VPN-based intranet application security detection system

By using the KMP matching algorithm and an improved mean drift algorithm, the accuracy problem of VPN intranet application security detection in existing technologies has been solved, achieving efficient and accurate detection of VPN intranet application security.

CN117349829BActive Publication Date: 2024-09-03QINHUANGDAO NEUSOFT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311392482.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-25
Publication Date
2024-09-03
Estimated Expiration
2043-10-25

AI Technical Summary

Technical Problem

Existing VPN-based intranet application security testing methods rely on the testers' experience and cannot meet the requirements for testing accuracy. Traditional mean-shifting algorithms are not very effective.

Method used

The KMP matching algorithm is used to detect duplicate substrings in encrypted data and calculate the intrinsic risk coefficient. The mean drift algorithm is improved by using the difference sequence of approximation factor and non-confusion factor changes to determine the security of VPN intranet applications.

Benefits of technology

It enables more accurate detection of VPN intranet application security, and improves the accuracy and reliability of detection by identifying the nonlinear properties of encryption algorithms through an improved mean drift algorithm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117349829B
    Figure CN117349829B
Patent Text Reader

Abstract

The present invention relates to the technical field of data processing, and in particular to a VPN-based intranet application security detection system, the system comprising: a data acquisition module: acquiring each group of ciphertext data; a data analysis module: obtaining the intrinsic risk coefficient of the ciphertext data according to the detection of repeated ciphertext substrings of various lengths of the ciphertext data; for any two groups of ciphertext data in all ciphertext data, obtaining the non-confusion factors of the two groups of ciphertext data according to the common substrings of the two groups of ciphertext data; obtaining the separation coefficient according to the non-confusion factors of all the two groups of ciphertext data; improving the mean shift clustering algorithm according to the separation coefficient and the non-confusion factors of all the two groups of ciphertext data to obtain each non-confusion factor clustering cluster; a security detection module: judging the security of the VPN intranet application according to all the non-confusion factor clustering clusters. The present invention makes the security detection result of the VPN intranet application more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a VPN-based intranet application security detection system. Background Art

[0002] VPN is a virtual private network, which builds a virtual, encrypted network to make the transmission of information have the characteristics of a private network. Usually, the intranet can be easily connected to the external network, but it is difficult for the external network to connect to the intranet. VPN connects different intranets by establishing connections, and no longer needs to lay expensive dedicated network communications. Communication can be completed with the help of network service providers. At the same time, VPN technology establishes intranet connections and encrypts data before data transmission, which ensures the security of user communication information, simplifies network architecture, and reduces the complexity and management costs of enterprises.

[0003] Intranet applications based on VPNs convert plaintext data into ciphertext data by encrypting the data. This encrypted ciphertext data is difficult to crack and is one of the important directions to ensure the security of intranet applications. Testing the nonlinear properties of encryption algorithms is one of the important tests to verify encryption algorithms. When testing the nonlinear properties of encryption algorithms, the traditional mean shift algorithm is usually used, but the test effect depends on the experience and professional background of the tester and cannot meet the accuracy requirements of the test. Summary of the invention

[0004] In order to solve the above technical problems, the present invention provides a VPN-based intranet application security detection system, the system comprising:

[0005] Data collection module: obtain each group of ciphertext data;

[0006] Data analysis module: for each group of ciphertext data; use the KMP matching algorithm to obtain repeated ciphertext substrings of various lengths in the ciphertext data; obtain the intrinsic risk coefficient of the ciphertext data based on repeated ciphertext substrings of various lengths in the ciphertext data;

[0007] For any two groups of ciphertext data among all ciphertext data, the KMP algorithm is used to obtain the common substrings of the two groups of ciphertext data; the approximate factors of the two groups of ciphertext data are obtained according to the common substrings of the two groups of ciphertext data; the non-confusion factors of the two groups of ciphertext data are obtained according to the approximate factors of the two groups of ciphertext data; the non-confusion factor change difference sequence is obtained according to the non-confusion factor change difference sequence of all the random non-confusion factors of the two groups of ciphertext data; the separation coefficient is obtained according to the separation coefficient and the non-confusion factors of all the random non-confusion factors of the two groups of ciphertext data, and the mean shift clustering algorithm is improved to obtain each non-confusion factor clustering cluster;

[0008] Security detection module: Determine the security of VPN intranet applications based on all non-confusion factor clusters.

[0009] Preferably, the obtaining of each group of ciphertext data includes:

[0010] Randomly select m groups of test case data from the data transmitted during the intranet application;

[0011] Select a set of test case data from any of the m sets of test case data, modify the selected set of test case data W times, and the content of each modification must be less than 5% of the original data content, to obtain W sets of modified test case data;

[0012] M groups of test case data and W groups of modified test case data are used as test data; and each group of ciphertext data is obtained by using an encryption algorithm of a VPN intranet application program on each group of test data.

[0013] Preferably, the step of obtaining the intrinsic risk coefficient of the ciphertext data by detecting repeated ciphertext substrings of various lengths of the ciphertext data includes:

[0014] Obtain the number of types of different lengths of ciphertext repetition substrings in the ciphertext data; obtain the lengths and numbers of ciphertext repetition substrings of various lengths in the ciphertext data; calculate the sum of the ratios of the lengths of ciphertext repetition substrings of all lengths of the ciphertext data to the number of types;

[0015] For the detection ciphertext repetitive substrings of various lengths in the ciphertext data, the inverse number of the lengths of the detection ciphertext repetitive substrings is used as the exponent of an exponential function with a natural constant as the base, and the product result of the exponential function of the detection ciphertext repetitive substrings of all lengths of the ciphertext data is calculated;

[0016] The result of multiplying the sum and product is used as the intrinsic risk coefficient of the ciphertext data.

[0017] Preferably, obtaining the approximate factors of the two sets of ciphertext data according to the common substrings of the two sets of ciphertext data comprises:

[0018] Calculate the square root value of the product of the intrinsic risk coefficients of the two sets of ciphertext data; calculate the sum of the products of the lengths and numbers of the common substrings of all lengths of the two sets of ciphertext data; and use the normalized value of the product of the square root value and the sum of the products as the approximate factor of the two sets of ciphertext data.

[0019] Preferably, obtaining the unobfuscation factors of the two sets of ciphertext data according to the approximation factors of the two sets of ciphertext data comprises:

[0020] Calculate the product of the reciprocal of the approximation factor of the two sets of ciphertext data and the normalized value of the DTW distance;

[0021] Obtaining the maximum common substring length of two sets of ciphertext data; calculating the ratio of the sum of the ciphertext lengths of the two sets of ciphertext data to the maximum common substring length;

[0022] The product of the product and the ratio is used as a de-aliasing factor of two groups of ciphertext data.

[0023] Preferably, the step of obtaining a non-aliasing factor variation difference sequence according to the non-aliasing factors of all two arbitrary sets of ciphertext data comprises:

[0024] The non-obfuscation factors of all arbitrary two groups of ciphertext data are sorted in ascending order, and the sorting results are formed into a non-obfuscation factor sequence; the difference between the non-obfuscation factors of the next element and the previous element in the non-obfuscation factor sequence is formed into a non-obfuscation factor change difference sequence.

[0025] Preferably, the step of obtaining the separation coefficient according to the non-aliasing factor variation difference sequence comprises:

[0026] The mean of the normalized values ​​of all elements in the non-confusion factor change difference sequence is obtained; the separation factor is calculated based on the distribution of each element in the non-confusion factor change difference sequence; and the product of the mean and the separation factor is used as the separation coefficient.

[0027] Preferably, the distance factor is calculated based on the distribution of each element in the non-aliasing factor change difference sequence, including:

[0028] Obtain the maximum, minimum and interquartile range of the non-confounding factor change difference series;

[0029] The difference between the maximum value and the minimum value is calculated, and the ratio of the interquartile range to the difference is used as the interval factor.

[0030] Preferably, the method of improving the mean shift clustering algorithm according to the separation coefficient and the non-aliasing factors of all two arbitrary groups of ciphertext data to obtain each non-aliasing factor clustering cluster includes:

[0031] The separation coefficient is used as the bandwidth of the kernel function in the mean shift clustering algorithm, and the non-aliasing factors of any two sets of ciphertext data are used as the input of the mean shift clustering algorithm. The output result is the clustering clusters of each non-aliasing factor.

[0032] Preferably, the method of determining the security of the VPN intranet application program based on all non-confusion factor clusters includes:

[0033] When the number of non-confusion factor clusters is greater than 1, it means that the security of the VPN intranet application is poor;

[0034] When the number of non-obfuscation factor clusters is equal to 1, the value of the minimum non-obfuscation factor and the sum of the lengths of the two groups of ciphertext data to which the minimum non-obfuscation factor belongs are obtained; the ratio of the minimum non-obfuscation factor to the sum of the lengths is calculated; when the ratio is greater than or equal to a threshold, it indicates that the security of the VPN intranet application is good; when the ratio is less than the threshold, it indicates that the security of the VPN intranet application is poor.

[0035] The present invention has at least the following beneficial effects:

[0036] The present invention uses the string arrangement regularity of the ciphertext data itself to calculate the intrinsic risk coefficient of each group of ciphertext data, which can reflect the regularity of the ciphertext data. The more regular the encryption algorithm is, the less secure it is. The intrinsic risk coefficient of each group of ciphertext data and the similarity between each group of ciphertext data are used to calculate the approximation factor between any two groups of ciphertext data. The approximation factor can reflect the connection between the two groups of ciphertext data. The stronger the connection, the less secure the indirect encryption algorithm is.

[0037] The present invention uses the difference between ciphertext data and the approximation factor to obtain the non-aliasing factor between ciphertext data, and the non-aliasing factor can reflect the degree of nonlinear property of the encryption algorithm; the separation coefficient is calculated by the size of the non-aliasing factor to reflect the difference between the similarity and dissimilarity between the ciphertext data, so as to improve the mean shift algorithm by using the separation coefficient, so as to more comprehensively evaluate the similarity between the ciphertext data according to the difference degree within the ciphertext data and between the ciphertext data, so as to make the security detection result of the VPN intranet application program more accurate. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention 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 invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0039] Figure 1 A flowchart of a VPN-based intranet application security detection system provided by the present invention;

[0040] Figure 2 Schematic diagram of detecting repeated ciphertext strings in ciphertext data. DETAILED DESCRIPTION

[0041] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of a VPN-based intranet application security detection system proposed by the present invention 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.

[0042] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0043] The following is a detailed description of a VPN-based intranet application security detection system provided by the present invention in conjunction with the accompanying drawings.

[0044] An embodiment of the present invention provides a VPN-based intranet application security detection system, which includes a data collection module, a data analysis module, and a security detection module.

[0045] Specifically, the Internet of Things engineering information collection and processing system of this embodiment provides the following VPN-based intranet application security detection system, please refer to Figure 1 The system comprises the following steps:

[0046] Data collection module, this embodiment uses multiple groups of test data to perform security tests on intranet applications. In order to accurately test the security of intranet applications and make the test results more accurate, this embodiment selects data with high similarity and data with low similarity between each group of test data as test data, that is, when multiple groups of data are relatively similar or relatively dissimilar, the security of the intranet application is tested based on whether each group of test data can pass the security test.

[0047] In order to ensure that each group of test data has relatively dissimilar data during the testing process, this embodiment randomly selects m groups of test case data from the data during the transmission process of the intranet application. The size of each group of test case data takes an empirical value of 10MB, and the similarity between these m groups of test case data needs to be less than 5%. Among them, the similarity calculation method in this embodiment adopts ED edit distance. Since ED edit distance is a well-known technology, it will not be repeated in this embodiment.

[0048] In order to ensure that each group of test data in the test process has relatively similar data, this embodiment randomly selects a group of data from the above m groups of test case data, and randomly modifies less than 5% of the data content in this group of data, so that the similarity between the modified data and the original data reaches more than 95%, wherein this group of data is modified W times to obtain W groups of modified test case data after the group of test case data is modified W times. The above process is only for obtaining the modified test case data, and the specific modification method can be set by the implementer. Among them, this embodiment sets W to 10000, and the implementer can set it according to the actual situation.

[0049] The above m groups of test case data and W groups of modified test case data are used together as test data. The test data is encrypted using the encryption algorithm used by the VPN-based intranet application to obtain the ciphertext data of the test data. , Indicates The ciphertext data of the test data.

[0050] At this point, the ciphertext data used to test the security of the intranet application can be obtained through the above method.

[0051] Data analysis module: The ciphertext data obtained by the encryption algorithm should be highly random and chaotic, with no obvious pattern to follow; and the internal repetitiveness of the ciphertext data should be as low as possible, even if the plaintext input is the same, the ciphertext obtained should be different. This randomness and irregularity makes it impossible for attackers to crack the encryption algorithm or restore the original data by observing the characteristics of the ciphertext data.

[0052] In order to determine whether there is such randomness and irregularity between these ciphertext data, and thus detect the security of VPN intranet applications, this embodiment analyzes the similarity within and between ciphertext data through the following steps.

[0053] Ciphertext data For example, the KMP algorithm is used to find the ciphertext data The ciphertext repetition substring is repeated twice or more, and at the same time, the length of the ciphertext repetition substring is set to be greater than 3. The KMP algorithm is a well-known technology and will not be described in detail in this embodiment. Figure 2 Schematic diagram of detecting repeated ciphertext strings in ciphertext data.

[0054] exist Figure 2 In the ciphertext data, there are two detection ciphertext repeated substrings with a length of 5, namely D6C40 and 67EAF, and the number is 2 and 3 respectively. Therefore, the number of detection ciphertext repeated substrings with a length of 5 in the ciphertext data is 5.

[0055] For ciphertext data , through the ciphertext data obtained above The ciphertext data is calculated by using two indicators: the number of ciphertext repeated substrings of various lengths and the number of ciphertext repeated substrings of their corresponding lengths. The intrinsic risk factor :

[0056]

[0057] In the formula, Represents ciphertext data The intrinsic risk factor of Represents ciphertext data The number of types of different lengths of repeated substrings of ciphertext detected; Indicates the length of the k-th length of the repeated substring of the detected ciphertext; Indicates the number of repeated substrings of the k-th length of the detected ciphertext, Represents an exponential function with the natural constant e as base.

[0058] The greater the data repetition in the ciphertext data, the longer the length of the repeated substring of the ciphertext is detected. The larger the value, the mean length of the repeated substring of the ciphertext can be obtained. The larger the data repetition in the ciphertext data is, the more repetitive the ciphertext substrings are. The larger the value, the smaller the factor divided by the endogenous risk factor. The smaller the value of is, the greater the intrinsic risk coefficient of the ciphertext data is. In summary, when the ciphertext data The higher the repetitiveness of the internal data, the more encrypted data will be obtained. The intrinsic risk factor The larger the value of The larger the value, the higher the risk of the ciphertext data.

[0059] Generally speaking, encryption algorithms should have high-strength nonlinear properties. In the test of encryption algorithm nonlinear properties, differential testing is one of the important directions to detect the nonlinear linear properties of encryption algorithms, that is, when the original plaintext changes slightly, the generated ciphertext will also change significantly when the same secret key is used for encryption. Encryption algorithms with high-strength nonlinear properties make it impossible for attackers to crack the encryption algorithm simply by analyzing the linear relationship between plaintext and ciphertext. This improves the security of VPN intranet applications.

[0060] Use the KMP algorithm to find the ciphertext data With ciphertext data The common substring of two sets of ciphertext data is set to have a length greater than 5, and The KMP algorithm is a well-known technology and will not be described in detail in this embodiment.

[0061] For ciphertext data With ciphertext data , classify the common substrings with the same length into one category, sort them from small to large according to the length of the common substrings, and record the length of each category of common substrings as , ,…, (n represents the ciphertext data With ciphertext data The number of common substrings of different lengths), the number of each type of common substring is recorded as , ,…, .

[0062] The approximate factor between the ciphertext data i and the ciphertext data j is constructed by the length and quantity index of the common substrings in the above two sets of ciphertext data.

[0063]

[0064] In the formula, Represents ciphertext data With ciphertext data Approximate factors of ; represents the normalization function; Represents ciphertext data The intrinsic risk factor of Represents ciphertext data The intrinsic risk factor of Represents ciphertext data With ciphertext data The number of types of common substrings of different lengths; represents the length of the k-th common substring, Represents the number of common substrings in the kth category.

[0065] The higher the data repetitiveness of the ciphertext data, the greater the product of the intrinsic risk coefficients of the two ciphertext data, that is, The larger the length, the length of the common substring between the ciphertext data. ,quantity The larger the The larger the value is, the higher the data similarity between the ciphertext data is. The approximate factor between the ciphertext data is calculated In the best case of encryption algorithm, the approximation factor is obtained. The value of is close to 0, which means that the similarity between the two sets of ciphertext data is low.

[0066] Through the above indicators and ciphertext data With ciphertext data The similarity between them is combined to calculate the ciphertext data With ciphertext data Unconfounding factor .

[0067]

[0068] In the formula, Represents ciphertext data With ciphertext data The non-confounding factor of Represents ciphertext data With ciphertext data Approximate factors of ; Represents ciphertext data The ciphertext length is Represents ciphertext data The ciphertext length; represents the i-th group of ciphertext data, Represents the jth group of ciphertext data; Represents ciphertext data With ciphertext data The maximum common substring length between them; is the normalization function, represents the DTW distance. The distance is a well-known technology and will not be described in detail in this embodiment.

[0069] The greater the data repetition between the two sets of ciphertext data, the approximate factor between the ciphertext data is obtained. The larger the value is, the stronger the similarity between the ciphertext data is, that is, The smaller the non-aliasing factor is, the more confused the two sets of ciphertext data are; when the length of the two sets of ciphertext data is fixed, the longer the maximum common substring length between the ciphertext data is, the The smaller the value, the greater the similarity between the two sets of ciphertext data. The smaller it is, the more similar the two sets of data are, which makes the non-confusion factor between the two sets of ciphertext data The smaller it is, the more likely it is that the two sets of ciphertext data will be confused, and the lower the security of the encryption algorithm of the VPN intranet application.

[0070] Based on the above analysis, there is a non-obfuscation factor between any two sets of ciphertext data. The value of the non-obfuscation factor can reflect the security of the VPN intranet application. Arrange the calculated non-obfuscation factors between any two sets of ciphertext data from small to large, and record the sorting results as the non-obfuscation factor sequence , , …, , where N represents the number of unaliasing factors.

[0071] The difference between the next element and the previous element in the non-confusion factor sequence is used to form a non-confusion factor change difference sequence , non-aliasing factor variation difference sequence The length is If the element value in the non-obfuscation factor change difference sequence is larger, it means that there is a large difference in the non-obfuscation factor in the non-obfuscation factor sequence, which indirectly means that among all two arbitrary sets of ciphertext data, there are not only two sets of relatively similar ciphertext data, but also two sets of relatively dissimilar ciphertext data, and the degree of similarity and dissimilarity between the ciphertext data is quite different, which means that the relationship between all ciphertext data is relatively scattered, and the security of the VPN intranet application is relatively low.

[0072] Thus, based on the unconfounding factor variation difference sequence The distribution of each element in the ciphertext is used to calculate the separation factor of the ciphertext data, which is used to characterize the dispersion degree of the similarity characteristics between all ciphertext data. The larger the separation factor, the more dispersed the similar and dissimilar characteristics between each group of ciphertexts.

[0073]

[0074]

[0075] In the formula, represents the separation factor; The interquartile range of the non-aliasing factor change difference sequence is represented by the difference obtained by subtracting the 25th percentile data value from the 75th percentile data value, wherein the interquartile range is a well-known technology and will not be described in detail in this embodiment; represents the maximum value function, represents the minimum function; represents the sequence of non-confounding factor variation differences; represents the separation coefficient; Represents the difference sequence of unconfounding factor changes Length, is the normalization function.

[0076] The more dispersed the non-confusion factors between the ciphertext data are, the larger the interval difference of the non-confusion factors is, that is, The larger the interquartile range The difference between the maximum and minimum values ​​in the sequence of non-aliasing factor variation differences The larger the basis, the greater the score distance factor The larger the value, the more dispersed the non-aliasing factors between the ciphertext data are. The larger it is, the greater the difference between the similarities and dissimilarities between groups of ciphertext data.

[0077] The unobfuscation factor between any two sets of ciphertext data As input, the distance coefficients calculated from all ciphertext data The bandwidth of the kernel function in the mean shift clustering algorithm is replaced to improve the mean shift algorithm. The output result of the improved mean shift algorithm is each non-confusion factor clustering cluster, and the number of the obtained non-confusion factor clustering clusters is recorded as K.

[0078] The improved clustering algorithm can effectively cluster different degrees of non-confusion factors, and the security of VPN intranet applications can be identified by analyzing the clustering clusters.

[0079] The security detection module analyzes each non-confusion factor cluster. When the number of non-confusion factor clusters K>1, it means that the encryption algorithm has not completed the nonlinear property test, that is, there is still a large difference in the similarity between the encrypted ciphertext data groups, that is, there are some ciphertext data with low similarity and some ciphertext data with high similarity, which indirectly reflects the poor encryption effect and the poor security of the VPN intranet application.

[0080] When the number of non-confusion factor clusters K = 1, the value of the minimum non-confusion factor in the non-confusion factor cluster is recorded as , the sum of the lengths of the two sets of ciphertext data with the minimum non-confusion factor is recorded as .make , set the threshold T, the empirical value of this embodiment is 0.05, and the implementer can set it by himself. When , it means that the encryption algorithm has completed the nonlinear property test, indicating that the security detection effect of the VPN intranet application is good; when When , it means that the encryption algorithm has not completed the nonlinear property test, which means that the encryption effect is not good and the security of the VPN intranet application is poor.

[0081] In summary, the embodiment of the present invention proposes a VPN-based intranet application security detection system, which improves the mean shift clustering algorithm by obtaining the distribution of character strings in each group of ciphertext data and the similarity characteristics between the ciphertext data, and uses the clustering results to complete the VPN network application security detection.

[0082] The embodiment of the present invention uses the string arrangement regularity of the ciphertext data itself to calculate the intrinsic risk coefficient of each group of ciphertext data, which can reflect the regularity of the ciphertext data. The more regular the encryption algorithm is, the less secure it is. The intrinsic risk coefficient of each group of ciphertext data and the similarity between each group of ciphertext data are used to calculate the approximation factor between any two groups of ciphertext data. The approximation factor can reflect the connection between the two groups of ciphertext data. The stronger the connection is, the less secure the encryption algorithm is.

[0083] The embodiment of the present invention utilizes the difference between ciphertext data and the approximation factor to obtain the non-aliasing factor between ciphertext data, and the non-aliasing factor can reflect the degree of non-linear property of the encryption algorithm; the separation coefficient is calculated by the size of the non-aliasing factor to reflect the difference between the similarity and dissimilarity between the ciphertext data, so as to improve the mean shift algorithm by utilizing the separation coefficient, so as to more comprehensively evaluate the similarity between the ciphertext data according to the degree of difference within the ciphertext data and between the ciphertext data, so as to make the security detection result of the VPN intranet application program more accurate.

[0084] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The above is a description of a specific embodiment of this 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.

[0085] 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.

[0086] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A VPN-based intranet application security detection system, It is characterized in that The system comprises: Data collection module: obtain each group of ciphertext data; Data analysis module: for each group of ciphertext data; use the KMP matching algorithm to obtain repeated ciphertext substrings of various lengths in the ciphertext data; obtain the intrinsic risk coefficient of the ciphertext data based on repeated ciphertext substrings of various lengths in the ciphertext data; For any two groups of ciphertext data among all ciphertext data, the KMP algorithm is used to obtain the common substrings of the two groups of ciphertext data; the approximate factors of the two groups of ciphertext data are obtained according to the common substrings of the two groups of ciphertext data; the non-confusion factors of the two groups of ciphertext data are obtained according to the approximate factors of the two groups of ciphertext data; the non-confusion factor change difference sequence is obtained according to the non-confusion factor change difference sequence of all the random non-confusion factors of the two groups of ciphertext data; the separation coefficient is obtained according to the separation coefficient and the non-confusion factors of all the random non-confusion factors of the two groups of ciphertext data, and the mean shift clustering algorithm is improved to obtain each non-confusion factor clustering cluster; Security detection module: determines the security of VPN intranet applications based on all non-confusion factor clusters; The method of obtaining the intrinsic risk coefficient of the ciphertext data according to the repeated substrings of the ciphertext data of various lengths includes: Obtain the number of types of different lengths of ciphertext repetition substrings in the ciphertext data; obtain the lengths and numbers of ciphertext repetition substrings of various lengths in the ciphertext data; calculate the sum of the ratios of the lengths of ciphertext repetition substrings of all lengths of the ciphertext data to the number of types; For the detection ciphertext repetitive substrings of various lengths in the ciphertext data, the inverse number of the lengths of the detection ciphertext repetitive substrings is used as the exponent of an exponential function with a natural constant as the base, and the product result of the exponential function of the detection ciphertext repetitive substrings of all lengths of the ciphertext data is calculated; The result of multiplying the sum and product is used as the intrinsic risk coefficient of the ciphertext data.

2. A VPN-based intranet application security detection system as claimed in claim 1, It is characterized in that The obtaining of each group of ciphertext data includes: Randomly select m groups of test case data from the data transmitted during the intranet application; Select a set of test case data from any of the m sets of test case data, modify the selected set of test case data W times, and the content of each modification must be less than 5% of the original data content, to obtain W sets of modified test case data; M groups of test case data and W groups of modified test case data are used as test data; and each group of ciphertext data is obtained by using an encryption algorithm of a VPN intranet application program on each group of test data.

3. A VPN-based intranet application security detection system as claimed in claim 1, It is characterized in that The obtaining of approximate factors of the two sets of ciphertext data according to the common substrings of the two sets of ciphertext data includes: Calculate the square root value of the product of the intrinsic risk coefficients of the two sets of ciphertext data; calculate the sum of the products of the lengths and numbers of the common substrings of all lengths of the two sets of ciphertext data; and use the normalized value of the product of the square root value and the sum of the products as the approximate factor of the two sets of ciphertext data.

4. A VPN-based intranet application security detection system as claimed in claim 3, It is characterized in that The step of obtaining the unobfuscating factors of the two sets of ciphertext data according to the approximate factors of the two sets of ciphertext data includes: Calculate the product of the reciprocal of the approximation factor of the two sets of ciphertext data and the normalized value of the DTW distance; Obtaining the maximum common substring length of two sets of ciphertext data; calculating the ratio of the sum of the ciphertext lengths of the two sets of ciphertext data to the maximum common substring length; The product of the product and the ratio is used as a de-aliasing factor of two groups of ciphertext data.

5. A VPN-based intranet application security detection system as claimed in claim 4, It is characterized in that The step of obtaining a non-aliasing factor variation difference sequence according to the non-aliasing factors of all two arbitrary sets of ciphertext data includes: The non-obfuscation factors of all arbitrary two groups of ciphertext data are sorted in ascending order, and the sorting results are formed into a non-obfuscation factor sequence; the difference between the non-obfuscation factors of the next element and the previous element in the non-obfuscation factor sequence is formed into a non-obfuscation factor change difference sequence.

6. A VPN-based intranet application security detection system as claimed in claim 5, It is characterized in that The step of obtaining the separation coefficient according to the non-aliasing factor variation difference sequence includes: The mean of the normalized values ​​of all elements in the non-confusion factor change difference sequence is obtained; the separation factor is calculated based on the distribution of each element in the non-confusion factor change difference sequence; and the product of the mean and the separation factor is used as the separation coefficient.

7. A VPN-based intranet application security detection system as claimed in claim 6, It is characterized in that The distance factor is calculated based on the distribution of each element in the non-confusion factor change difference sequence, including: Obtain the maximum, minimum and interquartile range of the non-confounding factor change difference series; The difference between the maximum value and the minimum value is calculated, and the ratio of the interquartile range to the difference is used as the interval factor.

8. A VPN-based intranet application security detection system as claimed in claim 1, It is characterized in that The non-confusion factor clustering clusters obtained by improving the mean shift clustering algorithm according to the separation coefficient and the non-confusion factor of all arbitrary two groups of ciphertext data include: The separation coefficient is used as the bandwidth of the kernel function in the mean shift clustering algorithm, and the non-aliasing factors of any two sets of ciphertext data are used as the input of the mean shift clustering algorithm. The output result is the clustering clusters of each non-aliasing factor.

9. A VPN-based intranet application security detection system as claimed in claim 8, It is characterized in that The method of judging the security of the VPN intranet application program based on all the non-confusion factor clusters includes: When the number of non-confusion factor clusters is greater than 1, it means that the security of the VPN intranet application is poor; When the number of non-obfuscation factor clusters is equal to 1, the value of the minimum non-obfuscation factor and the sum of the lengths of the two groups of ciphertext data to which the minimum non-obfuscation factor belongs are obtained; the ratio of the minimum non-obfuscation factor to the sum of the lengths is calculated; when the ratio is greater than or equal to a threshold, it indicates that the security of the VPN intranet application is good; when the ratio is less than the threshold, it indicates that the security of the VPN intranet application is poor.