A network security big data status assessment method based on pattern recognition
By obtaining the overlap rate and concentration representation values of network security data and generating pattern distribution characteristic values, the problem of inaccurate network security status assessment caused by traditional clustering algorithms is solved, and higher assessment accuracy and reliability are achieved.
Patent Information
- Application Number
- CN202411034616.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-31
AI Technical Summary
Traditional clustering algorithms lead to inaccurate or unreliable clustering results in network security data assessment, reducing the accuracy and reliability of network security status assessment.
By obtaining the overlap rate characterization value and centralization characterization value of the network security data sequence, a target data sequence set is generated, and the pattern distribution characteristic value of the data point set is further obtained to accurately assess the network security status.
It improves the accuracy and reliability of network security status assessment and can more accurately identify network security anomalies.
Smart Images

Figure CN118568455B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data status assessment, and in particular to a network security big data status assessment method based on pattern recognition. Background Art
[0002] Network security big data refers to data related to network security collected through various technical means, that is, network security big data refers to a large amount of network security data, and these network security data usually come from various channels in the terminal, that is, the source of network security big data is relatively wide. For example, the source IP address data, destination IP address data, data packet size, traffic size, etc. collected and obtained in the network traffic log channel in any terminal are all network security data. Since the network security data in various channels in the terminal can evaluate the network security status of each channel, and by evaluating the network security status of each channel, network security anomalies can be discovered and handled in a timely manner, therefore, evaluating the network security status of each channel is crucial to ensuring network security; the terminal is a computer or computer system that can be used for users to input data and display the results of their calculations, and the channels in the terminal include at least network traffic log channels, system log channels, etc.
[0003] Currently, traditional clustering algorithms are usually used to cluster the network security data in each channel, and then the network security status of each channel is evaluated by analyzing the clustering results. However, in the process of clustering using traditional clustering algorithms, the clustering results may be inaccurate or unreliable, which will lead to low accuracy or reliability of the network security status evaluation of each channel. Therefore, improving the accuracy or reliability of the network security status evaluation of each channel is an urgent problem to be solved. Summary of the invention
[0004] In order to solve the above problems, the present invention provides a network security big data status assessment method based on pattern recognition, and the technical solution adopted is as follows:
[0005] An embodiment of the present invention provides a network security big data status assessment method based on pattern recognition, comprising the following steps:
[0006] Acquire a channel set in a target terminal and a network security data sequence set corresponding to each channel in the channel set;
[0007] According to each network security data in each network security data sequence in the network security data sequence set, obtaining an overlap rate characterization value corresponding to each network security data sequence and a centrality characterization value corresponding to each network security data sequence;
[0008] Obtaining a target data sequence set corresponding to each channel according to the overlap rate representation value and the concentration representation value;
[0009] According to the target data sequence set corresponding to each channel, a data point set corresponding to each channel is obtained;
[0010] Obtaining a set of neighboring data points corresponding to each data point in the set of data points corresponding to each channel, and obtaining a pattern distribution feature value corresponding to each data point in the set of data points according to the set of neighboring data points corresponding to each data point;
[0011] The network security status corresponding to each channel is obtained according to the pattern distribution characteristic value corresponding to each data point in the data point set.
[0012] Beneficial effects: The present invention obtains the overlapping rate characterization value and the concentration characterization value corresponding to each network security data sequence according to each network security data in each network security data sequence set corresponding to each channel in the channel set obtained in the target terminal, and obtains the target data sequence set corresponding to each channel according to the overlapping rate characterization value and the concentration characterization value; then obtains the data point set corresponding to each channel according to the target data sequence set corresponding to each channel, and obtains the pattern distribution characteristic value corresponding to each data point in the data point set according to the neighboring data point set corresponding to each data point in the data point set; finally, obtains the network security status corresponding to each channel according to the pattern distribution characteristic value corresponding to each data point. The present invention can more accurately evaluate the network security status corresponding to each channel according to the pattern distribution characteristic value corresponding to each data point in the data point set. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] 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.
[0014] Figure 1 This is a flow chart of a network security big data status assessment method based on pattern recognition according to the present invention;
[0015] Figure 2 Schematic diagram of the characteristic straight line set. DETAILED DESCRIPTION
[0016] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the embodiments of the present invention.
[0017] 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.
[0018] This embodiment provides a network security big data status assessment method based on pattern recognition, which is described in detail as follows:
[0019] like Figure 1 As shown, the network security big data status assessment method based on pattern recognition includes the following steps:
[0020] Step S001: Acquire a channel set in a target terminal and a network security data sequence set corresponding to each channel in the channel set.
[0021] This embodiment mainly improves the accuracy or reliability of evaluating the network security status of each channel in the terminal by improving the accuracy of clustering the network security data corresponding to each channel.
[0022] In order to facilitate analysis in this embodiment, any terminal will be taken as an example for analysis, that is, in this embodiment, any terminal is selected as the target terminal, and the terminal refers to an input and output device connected to the computer system or a computer or computer system, and can be used for users to input data and display its calculation results; then all channels in the target terminal are obtained, and the channel set constructed by all channels in the target terminal is recorded as the channel set in the target terminal, and the channels in the target terminal in this embodiment include but are not limited to network traffic log channels, system log channels, application log channels, security incident reporting channels, and user behavior channels, and multi-dimensional network security data corresponding to each channel can also be collected at each monitoring and collection time, and the multi-dimensional network security data obtained in this embodiment are all numerical data, so the obtained multi-dimensional network security data do not include text data, that is, all network security data collected in each channel at each monitoring and collection time in this embodiment are all numerical data, for example, the source IP address, destination IP address, traffic size, and data packet size in the network traffic log channel can be obtained at each monitoring time, and the source IP address, destination IP address, traffic size, and data packet size are all numerical data.
[0023] In this embodiment, the specific process of obtaining the network security data sequence set corresponding to each channel is as follows: for any channel A in the channel set in the target terminal, at each monitoring and collection moment in the current monitoring time period, the network security data in channel A is collected in multiple dimensions to obtain the multi-dimensional network security data corresponding to channel A at each monitoring and collection moment, that is, multiple different types of numerical network security data can be collected in channel A at one collection moment, and the set constructed by the multi-dimensional network security data corresponding to channel A at each monitoring and collection moment is recorded as the network security data set corresponding to channel A at the corresponding collection moment; and in this embodiment, the number and type of network security data in channel A collected at each monitoring and collection moment are the same. For example, if channel A is a network traffic log channel, and the four different types of network security data in channel A that can be collected at any monitoring and collection moment in the current monitoring time period are source IP address, destination IP address, traffic size and data packet size, then the types of network security data in channel A collected at other monitoring and collection moments in the current monitoring time period are also four, and they are also source IP address, destination IP address, traffic size and data packet size. Then, a new set constructed from all network security data sets corresponding to channel A obtained in the current monitoring time period is recorded as the comprehensive network security data set corresponding to channel A in the current monitoring time period, and then all network security data types appearing in the comprehensive network security data set corresponding to channel A are obtained and recorded as the network security data type corresponding to channel A; for any network security data type corresponding to channel A, in the comprehensive network security data set corresponding to channel A, a sequence constructed from all network security data belonging to the network security data type is recorded as the data sequence to be regularized corresponding to the network security data type, and then all data in the data sequence to be regularized corresponding to the network security data type is normalized, and the normalized data sequence to be regularized is recorded as the network security data sequence corresponding to the network security data type; then the sequence set constructed from the network security data sequences corresponding to all network security data types corresponding to channel A is recorded as the network security data sequence set corresponding to channel A, and the data in the network security data sequence are obtained in chronological order of collection time.
[0024] In addition, in this embodiment, the implementer needs to set the current monitoring time period and the time interval between adjacent monitoring and collection moments in the current monitoring time period according to actual conditions. For example, in this embodiment, the time length corresponding to the current monitoring time period can be set to 10 seconds, and the last moment in the current monitoring time period is required to be the current moment. In this embodiment, the time interval between adjacent monitoring and collection moments in the current monitoring time period can be set to 0.01 seconds.
[0025] Therefore, this embodiment can obtain the network security data sequence set corresponding to each channel in the channel set according to the above process of obtaining the network security data sequence set corresponding to channel A.
[0026] Step S002, according to each network security data in each network security data sequence in the network security data sequence set, obtain the overlapping rate representation value corresponding to each network security data sequence and the concentration representation value corresponding to each network security data sequence; according to the overlapping rate representation value and the concentration representation value, obtain the target data sequence set corresponding to each channel.
[0027] At present, the traditional K-means clustering algorithm is usually used to cluster the network security data in each channel first, and then the network security status of each channel is evaluated by analyzing the clustering results. However, in the process of clustering using the traditional K-means clustering algorithm, clustering is usually completed based on the Euclidean distance between data points. However, if clustering is completed based only on the Euclidean distance, it will lead to inaccurate or unreliable clustering results. For example, it is not possible to well or accurately divide the network security data representing the normal channel status and the network security data representing the abnormal channel status into different clusters. Therefore, the inaccurate clustering results will lead to the accuracy or unreliability of the network security status evaluation of each channel. The reliability is low. Therefore, in order to improve the accuracy of the clustering results and to improve the accuracy or reliability of the evaluation of the network security status of each channel, this embodiment will first obtain the overlap rate characterization value and the corresponding centrality characterization value corresponding to each network security data sequence in the network security data sequence set corresponding to each channel to obtain the target data sequence set corresponding to each channel, and then analyze the target data sequence set corresponding to each channel to obtain the pattern distribution characteristic value corresponding to each data point in the data point set corresponding to each channel, and finally achieve the purpose of accurately or reliably evaluating the network security status corresponding to each channel based on the pattern distribution characteristic value corresponding to each data point.
[0028] Therefore, based on the above analysis, it can be known that the mode distribution characteristic value is an important indicator for accurately or reliably evaluating the network security status corresponding to each channel. Before obtaining the mode distribution characteristic value, it is necessary to first obtain the target data sequence set corresponding to each channel, and the target data sequence set corresponding to each channel is determined based on the overlap rate representation value and the corresponding concentration representation value corresponding to each network security data sequence in the network security data sequence set corresponding to each channel. Therefore, this embodiment will first obtain the overlap rate representation value corresponding to each network security data sequence and the concentration representation value corresponding to each network security data sequence according to each network security data in each network security data sequence in the network security data sequence set corresponding to each channel. The specific acquisition process is:
[0029] For the a-th network security data in any network security data sequence C, and the network security data sequence C belongs to the network security data sequence set B corresponding to the channel A in the channel set: in the network security data sequence C, obtain the number of all network security data with the same value as the a-th network security data and record it as the first eigenvalue corresponding to the a-th network security data; for the network security data sequence C, record the cumulative sum of the first eigenvalues corresponding to all network security data in the network security data sequence C as the overlapping rate representation value corresponding to the network security data sequence C; and when the first eigenvalue corresponding to the network security data in the network security data sequence C is larger, it indicates that the overlapping rate representation value corresponding to the network security data sequence C is larger, and the overlapping rate representation value is larger. The larger the eigenvalue is, the higher the repetition rate of the network security data in the network security data sequence C is, and it also indicates that the data diversification characteristics of the network security data in the network security data sequence C are weaker. Conversely, when the overlapping rate characterization value corresponding to the network security data sequence C is smaller, it indicates that the repetition rate of the network security data in the network security data sequence C is lower, and it also indicates that the data diversification characteristics of the network security data in the network security data sequence C are stronger. The weaker data diversification characteristics refer to the fewer types of data values in the network security data sequence or the lower repetition rate of the network security data in the sequence C, and the stronger data diversification characteristics refer to the more types of data values in the network security data sequence or the higher repetition rate of the network security data in the sequence C.
[0030] Then, all network security data except the first network security data and the last network security data in the network security data sequence C are recorded as the data to be analyzed corresponding to the network security data sequence C; then, the adjacent difference means corresponding to each data to be analyzed corresponding to the network security data sequence C are obtained, and for ease of understanding, this embodiment will take the acquisition process of the adjacent difference means corresponding to any data to be analyzed a0 corresponding to the network security data sequence C as an example for description, that is, the acquisition process of the adjacent difference means corresponding to the data to be analyzed a0 is:
[0031] In the network security data sequence C, two network security data adjacent to the data a0 to be analyzed are obtained, and are respectively recorded as the first data and the corresponding second data corresponding to the data a0 to be analyzed, and the first data and the corresponding second data corresponding to the data a0 to be analyzed are respectively located on the left and the right of the data a0 to be analyzed; then, the absolute value of the difference between the data a0 to be analyzed and the first data corresponding thereto is obtained and recorded as the first difference value corresponding to the data a0 to be analyzed, the absolute value of the difference between the data a0 to be analyzed and the second data corresponding thereto is obtained and recorded as the second difference value corresponding to the data a0 to be analyzed, and the mean of the first difference value and the second difference value corresponding to the data a0 to be analyzed is obtained and recorded as the adjacent difference mean corresponding to the data a0 to be analyzed.
[0032] Therefore, this embodiment can obtain the adjacent difference means corresponding to all data to be analyzed according to the process of obtaining the adjacent difference means corresponding to the data to be analyzed a0, and then calculate the cumulative sum of the adjacent difference means corresponding to all data to be analyzed corresponding to the network security data sequence C, and record it as the comprehensive difference value corresponding to the network security data sequence C. Thereafter, the comprehensive difference value is negatively correlated and mapped, and the value obtained by the negative correlation mapping of the comprehensive difference value is recorded as the concentration characterization value corresponding to the network security data sequence C. The function used in this embodiment to perform negative correlation mapping on the comprehensive difference value is the exp() function, and exp() is an exponential function with a constant e as the base.
[0033] In this embodiment, the smaller the adjacent difference mean corresponding to the data to be analyzed corresponding to the network security data sequence C is, the larger the concentration representation value corresponding to the network security data sequence C is, and the larger the corresponding concentration representation value is, the more concentrated or dense the distribution of data values in the network security data sequence C is, and vice versa, it indicates that the data values in the network security data sequence C are less concentrated or less dense in distribution.
[0034] Therefore, according to the process of obtaining the overlapping rate representation value and the corresponding centralization representation value corresponding to the network security data sequence C, the overlapping rate representation value and the corresponding centralization representation value corresponding to all network security data sequences can be obtained; and the purpose of obtaining the overlapping rate representation value and the centralization representation value in this embodiment is to achieve subsequent dimensionality reduction.
[0035] Since the data dimension collected by each channel in this embodiment is high, and the complexity and calculation amount of high-dimensional data clustering are very high, in order to reduce the calculation amount in subsequent clustering and to make the clustering result more accurate, this embodiment selects network security data sequences that are conducive to identifying channel network security anomalies as much as possible during clustering, that is, selects network security data sequences related to channel network security anomalies as much as possible; and because when the network security status corresponding to the channel is abnormal, it indicates that there are network security data threatening network security in the corresponding channel, and these network security data threatening network security usually send multiple similar attack traffic in a short time, and their timestamp intervals are small. For example, many DDoS attacks will send a large number of small data packets, and the size similarity of these data packets is high, and the data packet interval is also small. Therefore, it can be seen that if the network security status corresponding to the channel is abnormal, then the data distribution in the network security data sequence of the corresponding channel collected and obtained is relatively dense, and the data diversification characteristics presented are weak. If the network security status corresponding to the channel is normal, then the data distribution in the network security data sequence collected and obtained is relatively inefficient, and the data diversification characteristics presented are relatively strong.
[0036] It can be seen that the overlap rate representation value and the corresponding centrality representation value corresponding to the network security data sequence calculated above can both reflect the density of data distribution in the corresponding network security data sequence and the strength of the data diversity characteristics presented. Therefore, this embodiment will obtain the target data sequence set corresponding to each channel according to the overlap rate representation value and the corresponding centrality representation value corresponding to the network security data sequence. For ease of understanding, this embodiment takes the acquisition process of the target data sequence set corresponding to channel A as an example for description, specifically:
[0037] For the network security data sequence set B corresponding to channel A:
[0038] First, in the network security data sequence set B, the network security data sequence corresponding to the maximum overlap rate characterization value and the network security data sequence corresponding to the maximum concentration characterization value are obtained, and are recorded as the first feature sequence and the second feature sequence respectively; then, it is determined whether the first feature sequence and the second feature sequence do not belong to the same network security data sequence. If it is determined that the first feature sequence and the second feature sequence do not belong to the same network security data sequence, the set constructed by the first feature sequence and the second feature sequence is recorded as the target data sequence set corresponding to channel A, and if it is determined that the first feature sequence and the second feature sequence are both the same network security data sequence in the network security data sequence set B, and if both are network security data sequence b0 in the network security data sequence set B, then the network security data sequence set to be selected is obtained, and then in the network security data sequence set to be selected, the network security data sequence corresponding to the maximum overlap rate characterization value is obtained again, and is recorded as the third feature sequence, and then the set constructed by the third feature sequence and the network security data sequence b0 is recorded as the target data sequence set corresponding to channel A; in addition, in this embodiment, the network security data sequence set to be selected is a sequence set constructed by all network security data sequences in the network security data sequence set B except the network security data sequence b0.
[0039] Therefore, in this embodiment, the target data sequence set corresponding to channel A can be obtained through the above process, and the number of network security data sequences in the target data sequence set corresponding to channel A obtained in this embodiment is 2; in addition, as other implementation methods, other methods can also be selected to determine the target network security data sequence corresponding to channel A. For example, in this embodiment, the sum of the overlapping rate characterization value and the corresponding centrality characterization value corresponding to each network security data sequence in the network security data sequence set B corresponding to channel A is recorded as the comprehensive selection index value corresponding to the corresponding network security data sequence, and then all network security data sequences in the network security data sequence set B are arranged in descending order according to the comprehensive selection index value, and the sorted set is recorded as the network security data sequence set to be selected corresponding to channel A, and then the set constructed by selecting the first V0 network security data sequences in the network security data sequence set to be selected corresponding to channel A is used as the target data sequence set corresponding to channel A, wherein the implementer can determine the value of V0 according to actual conditions.
[0040] Therefore, this embodiment can obtain the target data sequence set corresponding to each channel through the above process.
[0041] Step S003, based on the target data sequence set corresponding to each channel, obtain the data point set corresponding to each channel; obtain the neighboring data point set corresponding to each data point in the data point set corresponding to each channel, and obtain the pattern distribution feature value corresponding to each data point in the data point set based on the neighboring data point set corresponding to each data point.
[0042] This embodiment will next obtain a set of data points corresponding to each channel based on a set of target data sequences corresponding to each channel, and then cluster the sets of data points corresponding to each channel respectively. In order to avoid the problem of inaccurate clustering results caused by the inability to accurately distinguish between data points representing a normal network security status corresponding to a channel and data points representing an abnormal network security status corresponding to a channel based solely on the Euclidean distance between data points, this embodiment will next obtain a set of neighboring data points corresponding to each data point in the data point set, to obtain a pattern distribution eigenvalue corresponding to each data point in the data point set, and subsequently complete the clustering of the data point sets corresponding to each channel through the pattern distribution eigenvalues.
[0043] In order to obtain the mode distribution characteristic value corresponding to each data point, it is necessary to first obtain the data point set corresponding to each channel according to the target data sequence set corresponding to each channel. For ease of understanding, this embodiment will take the process of obtaining the data point set corresponding to channel A as an example for description. Therefore, the process of obtaining the data point set corresponding to channel A is:
[0044] Construct a sample space corresponding to channel A, and the number of coordinate axes in the sample space corresponding to channel A is the same as the number of network security data sequences in the target data sequence set corresponding to channel A, and the type of the value corresponding to the c0th coordinate axis in the sample space corresponding to channel A is the data type in the c0th network security data sequence in the target data sequence set corresponding to channel A.
[0045] Then, each network security data in each network security data sequence in the target data sequence set corresponding to channel A is mapped to the sample space corresponding to channel A to obtain all data points in the sample space corresponding to channel A, and the set constructed by all data points in the sample space corresponding to channel A is recorded as the data point set corresponding to channel A, and the c1th data in the data point coordinates in the sample space corresponding to channel A belongs to the c1th network security data sequence in the target data sequence set corresponding to channel A.
[0046] Therefore, through the above process, the data point set corresponding to each channel can be obtained. Next, the neighboring data point set corresponding to each data point in the data point set corresponding to each channel is obtained, and the neighboring data point set corresponding to each data point is the basis for subsequently obtaining the mode distribution feature value corresponding to each data point in the data point set. Therefore, the process of obtaining the neighboring data point set corresponding to each data point is:
[0047] For any data point f in the data point set D0 corresponding to channel A: in the data point set D0, the set constructed by all data points except the data point f is recorded as the set of data points to be selected corresponding to the data point f; in the set of data points to be selected, the set constructed by the preset number of data points closest to the data point f is recorded as the set of neighboring data points corresponding to the data point f.
[0048] In specific applications, the implementer can set the value of the preset number according to actual conditions. For example, in this embodiment, the value obtained by rounding up the ratio of the total number of data points in the data point set to 20 can be used as the value of the preset number, or the value of the preset number can be set to 30.
[0049] Therefore, this embodiment can obtain the neighboring data point set corresponding to each data point according to the above process of obtaining the neighboring data point set corresponding to the data point f; since the neighboring data point set is important data for the subsequent acquisition of the mode distribution characteristic value corresponding to the data point, this embodiment will then obtain the mode distribution characteristic value corresponding to each data point in the data point set corresponding to each channel according to the neighboring data point set corresponding to each data point in the data point set corresponding to each channel. For ease of understanding, this embodiment will take the process of obtaining the mode distribution characteristic value corresponding to the data point f in the data point set D0 corresponding to the channel A as an example for description, then the process of obtaining the mode distribution characteristic value corresponding to the data point f is:
[0050] First, obtain the first straight line set corresponding to each neighboring data point in the neighboring data point set corresponding to the data point f. The specific acquisition process is:
[0051] For any data point Q1 in the set of neighboring data points corresponding to the data point f: in the sample space corresponding to the channel A, draw A0 straight lines through the data point Q1 that are parallel to the coordinate axes in the sample space corresponding to the channel A, and all of them are recorded as the first straight lines corresponding to the data point Q1, and then record the set constructed by all the first straight lines corresponding to the data point Q1 as the first straight line set corresponding to the data point Q1, and A0 is the number of coordinate axes in the sample space corresponding to the channel A; in this embodiment, the number of coordinate axes in the sample space corresponding to the channel A is 2, which are the horizontal axis and the vertical axis, respectively, then the number of first straight lines corresponding to the data point Q1 obtained is 2, and the two first straight lines corresponding to the data point Q1 are parallel to the horizontal axis and the vertical axis, respectively, that is, the two first straight lines corresponding to the data point Q1 are perpendicular.
[0052] Therefore, through the above process, the first straight line set corresponding to each data point in the set of neighboring data points corresponding to the data point f can be obtained, and then the new set constructed by the first straight line sets corresponding to all data points in the set of neighboring data points corresponding to the data point f is recorded as the feature straight line set corresponding to the data point f, and the first straight lines in the feature straight line set are all recorded as feature straight lines, and there are no overlapping feature straight lines in the feature straight line set in this embodiment. In addition, in this embodiment, the schematic diagram of the feature straight line set corresponding to the data point f is as follows Figure 2 As shown, it is a schematic diagram of the distribution of data points in the sample space of channel A. Figure 2 The two-dimensional coordinate system in is the sample space of channel A, where the horizontal axis of the two-dimensional coordinate system refers to the value Y1 of the data type corresponding to a network security data sequence in the target data sequence set corresponding to channel A, and the vertical axis of the two-dimensional coordinate system refers to the value Y2 of the data type corresponding to another network security data sequence in the target data sequence set corresponding to channel A. Since the monitoring sampling moments of the two network security data sequences in the target data sequence set corresponding to channel A are the same, that is, two types of network security data correspond to one monitoring sampling moment, the network security data corresponding to the two data types at each monitoring sampling moment can be formed into a two-dimensional array, and then the two-dimensional arrays of all monitoring sampling moments are mapped to the two-dimensional coordinate system to obtain the following: Figure 2 All data points shown, Figure 2 All the straight lines on are characteristic straight lines corresponding to the data point f. Figure 2 The point on which no straight line passes is the data point f. Figure 2 All points except data point f belong to the set of neighboring data points corresponding to data point f.
[0053] Then, the quantitative representation value corresponding to each feature line in the feature line set is obtained. The specific acquisition method is: for the wth feature line in the feature line set, all data points located on the wth feature line and belonging to the neighboring data point set corresponding to the data point f are recorded as feature data points on the wth feature line, and the sequence formed by all feature data points on the wth feature line is recorded as the feature data point sequence corresponding to the wth feature line, and then the total number of feature data points in the feature data point sequence corresponding to the wth feature line is recorded as the quantitative representation value corresponding to the wth feature line; and in this embodiment, if the wth feature line is a line parallel to the horizontal axis, then starting from the leftmost end of the wth feature line, the p1th feature data point on the wth feature line is the p1th feature data point in the feature data point sequence corresponding to the wth feature line.
[0054] Then, in the set of feature lines corresponding to the data point f, all feature lines whose quantity representation values are greater than the preset first threshold are obtained, and the set constructed by all feature lines whose quantity representation values are greater than the preset first threshold is recorded as the set of lines to be analyzed corresponding to the data point f; and in specific applications, the implementer can set the preset first threshold according to actual conditions, and the preset first threshold in this embodiment is 1.
[0055] Then, according to the characteristic data point sequence corresponding to each straight line to be analyzed in the set of straight lines to be analyzed corresponding to the data point f, the distribution characterization value corresponding to each straight line to be analyzed is obtained; and the distribution characterization value corresponding to the straight line to be analyzed and the corresponding quantity characterization value are important indicators for subsequently determining the characteristic value of the pattern distribution corresponding to the data point f. Therefore, this embodiment will be described below by taking the process of obtaining the distribution characterization value corresponding to any straight line to be analyzed h0 in the set of straight lines to be analyzed corresponding to the data point f as an example, that is, the specific process of obtaining the distribution characterization value corresponding to the straight line to be analyzed h0 is:
[0056] First, according to the Euclidean distance between two adjacent feature data points in the feature data point sequence corresponding to the straight line h0 to be analyzed, the interval value sequence corresponding to the feature data point sequence corresponding to the straight line h0 to be analyzed is obtained, and recorded as the interval value sequence corresponding to the straight line h0 to be analyzed, and the hth interval value in the interval value sequence is the Euclidean distance between the h+1th feature data point in the feature data point sequence corresponding to the straight line h0 to be analyzed and the hth feature data point in the feature data point sequence corresponding to the straight line h0 to be analyzed.
[0057] Then the interval value sequence is divided to obtain interval value subsequences corresponding to the interval value sequence, wherein the interval values in the interval value subsequences are all equal and continuous; then the total number of interval values in the interval value subsequence is used as the adjacent continuous representation values corresponding to each interval value in the corresponding interval value subsequence; that is, for the tth interval value in the interval value sequence, if all the interval values in the interval subsequence formed by the t-d0th interval value in the interval value sequence to the t+d1th interval value in the interval value sequence are equal, and the t-(d0+1)th interval value in the interval value sequence is not equal to the tth interval value, and the t+(d1+1)th interval value in the interval value sequence is also not equal to the tth interval value, then the number of interval values in the interval subsequence formed by the t-d0th interval value to the t+d1th interval value is the adjacent continuous representation value corresponding to the tth interval value, and the interval subsequence formed by the t-d0th interval value to the t+d1th interval value includes the t-d0th interval value and the t+d1th interval value.
[0058] Therefore, through the above process, the adjacent continuous characterization values corresponding to each interval value in the interval value sequence can be obtained, and then the cumulative sum of the adjacent continuous characterization values corresponding to all interval values in the interval value sequence is calculated, and recorded as the distribution characterization value corresponding to the straight line h0 to be analyzed; and the larger the distribution characterization value corresponding to the straight line h0 to be analyzed, the stronger the distribution regularity of the characteristic data points on the straight line h0 to be analyzed, and vice versa.
[0059] Therefore, this embodiment can obtain the distribution characterization value corresponding to each straight line to be analyzed in the set of straight lines to be analyzed corresponding to the data point f according to the above-mentioned method of obtaining the distribution characterization value corresponding to the straight line to be analyzed h0; then the product of the distribution characterization value corresponding to each straight line to be analyzed in the set of straight lines to be analyzed corresponding to the data point f and its corresponding quantity characterization value is calculated, and recorded as the comprehensive characterization value corresponding to the corresponding straight line to be analyzed; then the cumulative sum of the comprehensive characterization values corresponding to all straight lines to be analyzed in the set of straight lines to be analyzed corresponding to the data point f is obtained, and recorded as the pattern distribution characteristic value corresponding to the data point f; and when the pattern distribution characteristic value corresponding to the data point f is larger, it indicates that the distribution of the neighboring data points corresponding to the data point f is more regular, and conversely, when the pattern distribution characteristic value corresponding to the data point f is smaller, it indicates that the distribution of the neighboring data points corresponding to the data point f is less regular.
[0060] Therefore, this embodiment obtains the pattern distribution characteristic value corresponding to the data point f through the above process, and the pattern distribution characteristic value corresponding to each data point can be obtained according to the method of obtaining the pattern distribution characteristic value corresponding to the data point f.
[0061] The more regular the distribution of the neighborhood data points of a data point is, the more characteristics of a network threat attack it has, that is, it is more likely to cause abnormal network security data in the channel or the network security status of the channel to be abnormal. For example, the IP of the port attack is the same, the timestamp interval is fixed, and the attack port interval of the DDoS traffic attack is fixed. Based on the above analysis, it can be seen that the size of the pattern distribution eigenvalue can reflect the strength of the regularity of the distribution of the neighboring data points corresponding to the data point. Therefore, when performing clustering in the future, while referring to the Euclidean distance between the data points, the difference between the pattern distribution eigenvalues between the data points is also referred to, which can more accurately distinguish between the data points that represent the normal network security status of the channel and the data points that represent the abnormal network security status of the channel.
[0062] Step S004, obtaining the network security status corresponding to each channel according to the pattern distribution characteristic value corresponding to each data point in the data point set.
[0063] Next, this embodiment obtains the network security status corresponding to each channel based on the pattern distribution feature value corresponding to each data point in the data point set corresponding to each channel. For ease of understanding, this embodiment takes the evaluation process of the network security status corresponding to channel A as an example for description, that is, the evaluation process of the network security status corresponding to channel A is:
[0064] The similarity of the pattern distribution characteristics between any two data points in the data point set D0 corresponding to channel A is obtained. The specific acquisition process is: for the z-th data point in the data point set D0 corresponding to channel A and the v-th data point in the data point set corresponding to channel A, and the value of z is not equal to the value of v:
[0065] The Euclidean distance between the zth data point and the vth data point is obtained, and the Euclidean distance between the zth data point and the vth data point is negatively mapped, and the value obtained by negatively mapping the Euclidean distance is recorded as the first similarity characterization value; then the absolute value of the difference between the pattern distribution characteristic value corresponding to the zth data point and the pattern distribution characteristic value corresponding to the vth data point is obtained, and the value obtained by negatively mapping the absolute value of the difference is recorded as the second similarity characterization value; then the sum of the first similarity characterization value and the second similarity characterization value is obtained, and recorded as the pattern distribution characteristic similarity between the zth data point and the vth data point, and the larger the values of the first similarity characterization value and the second similarity characterization value, the smaller the value of the pattern distribution characteristic similarity between the zth data point and the vth data point, and the smaller the value of the pattern distribution characteristic similarity between the zth data point and the vth data point, the lower the possibility that the zth data point and the vth data point belong to the same cluster cluster in subsequent clustering, that is, the pattern distribution characteristic similarity is the standard for distance measurement in subsequent clustering.
[0066] Therefore, through the above process, the similarity of the pattern distribution characteristics between any two data points in the data point set corresponding to channel A can be obtained; subsequently, the similarity of the pattern distribution characteristics between any two data points in the data point set corresponding to channel A is used as the metric distance between the two points during clustering; therefore, this embodiment clusters the data points in the data point set corresponding to channel A according to the similarity of the pattern distribution characteristics between any two data points in the data point set corresponding to channel A, using the K-means algorithm to obtain all cluster clusters corresponding to channel A; and the number of cluster center points when clustering the data points in the data point set corresponding to channel A can be obtained by the elbow method, and the process of obtaining the number of cluster center points based on the elbow method is a well-known technology, so this embodiment will not be described in detail.
[0067] Therefore, the above process completes the clustering of the data points in the data point set corresponding to channel A. Next, the abnormal clusters in all the clusters corresponding to channel A are analyzed and the network security status corresponding to channel A is evaluated based on the abnormal clusters. Specifically:
[0068] For any cluster U corresponding to channel A:
[0069] The nearest neighbor distance corresponding to each data point in cluster U is obtained. The specific acquisition method is: for any data point P0 in cluster U, in cluster U, obtain the data point closest to data point P0 and record it as the nearest neighbor data point corresponding to data point P0, and record the Euclidean distance between data point P0 and its corresponding nearest neighbor data point as the nearest neighbor distance corresponding to data point P0.
[0070] Therefore, according to the above process, the nearest neighbor distance corresponding to each data point in cluster U can be obtained, and then the cumulative sum of the nearest neighbor distances corresponding to all data points in cluster U can be obtained, and recorded as the comprehensive distance index value corresponding to cluster U, and the reciprocal of the comprehensive distance index value is recorded as the internal density index value corresponding to cluster U; for any data point P0 in cluster U, in cluster U, the set constructed by all data points except data point P0 is recorded as the set of data points to be judged corresponding to data point P0, and the set of data points to be judged is judged Is there a data point with the same nearest neighbor distance as that of the data point P0? If so, the data point P0 is recorded as the first data point; and in cluster U, the number of first data points is counted, and the number of counted first data points is recorded as the first quantity representation value, and then the ratio of the first quantity representation value to the total number of data points in cluster U is obtained, and recorded as the feature quantity ratio corresponding to cluster U; then the product of the feature quantity ratio corresponding to cluster U and its corresponding internal density index value is obtained, and recorded as the determination index value corresponding to cluster U.
[0071] And because when the data points in the cluster are more concentrated and more densely distributed or the same nearest neighbor distance appears more times, it indicates that the corresponding cluster is more likely to be an abnormal cluster, and it also indicates that the data points in the corresponding cluster are more likely to be network threat data points. The network threat data point refers to the data point formed when the corresponding channel is attacked by the outside world. The larger the product of the feature quantity ratio corresponding to the cluster U calculated above and its corresponding internal density index value, the more times the same nearest neighbor appears in the corresponding cluster and the stronger the concentration of the data points in the corresponding cluster. Therefore, when the judgment index value corresponding to the cluster U is larger, it indicates that the possibility of cluster U being an abnormal cluster is greater, and vice versa.
[0072] Therefore, this embodiment then determines whether the determination index value corresponding to cluster U is not less than the preset abnormal threshold value. If so, cluster U is recorded as an abnormal cluster, otherwise, cluster U is recorded as a normal cluster. In specific applications, the implementer needs to set the preset abnormal threshold value according to the actual situation. For example, in this embodiment, the preset abnormal threshold value is 0.5.
[0073] In addition, if there is no abnormal cluster cluster among all the cluster clusters corresponding to channel A, it indicates that the network security status corresponding to channel A is normal. If there is an abnormal cluster cluster among all the cluster clusters corresponding to channel A, the cumulative sum of the judgment index values corresponding to all abnormal cluster clusters in all the cluster clusters corresponding to channel A is obtained and recorded as the comprehensive abnormal judgment index. Then, the normalized value of the comprehensive abnormal judgment index is recorded as the abnormal risk degree of network security corresponding to channel A, and it is judged whether the abnormal risk degree of network security corresponding to channel A is greater than the preset risk degree threshold. If so, the network security status corresponding to channel A is judged to be abnormal. Otherwise, the network security status corresponding to channel A is judged to be normal.
[0074] In specific applications, the implementer can set a preset risk level threshold according to the actual situation. For example, in this embodiment, the preset risk level threshold is set to 0.7. Therefore, in this embodiment, the method for evaluating the network security status corresponding to channel A can evaluate the network security status corresponding to each channel; in addition, the functions used for the above negative correlation mapping are all exp().
[0075] In summary, this embodiment obtains the overlapping rate characterization value and the concentration characterization value corresponding to each network security data sequence according to each network security data in each network security data sequence set corresponding to each channel in the channel set obtained in the target terminal, and obtains the target data sequence set corresponding to each channel according to the overlapping rate characterization value and the concentration characterization value; then obtains the data point set corresponding to each channel according to the target data sequence set corresponding to each channel, and obtains the pattern distribution characteristic value corresponding to each data point in the data point set according to the neighboring data point set corresponding to each data point in the data point set; finally, obtains the network security status corresponding to each channel according to the pattern distribution characteristic value corresponding to each data point. This embodiment can more accurately evaluate the network security status corresponding to each channel according to the pattern distribution characteristic value corresponding to each data point in the data point set.
[0076] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A network security big data status assessment method based on pattern recognition, characterized in that: The method comprises the following steps: Acquire a channel set in a target terminal and a network security data sequence set corresponding to each channel in the channel set; According to each network security data in each network security data sequence in the network security data sequence set, obtaining an overlap rate characterization value corresponding to each network security data sequence and a centrality characterization value corresponding to each network security data sequence; Obtaining a target data sequence set corresponding to each channel according to the overlap rate representation value and the concentration representation value; According to the target data sequence set corresponding to each channel, a data point set corresponding to each channel is obtained; Obtaining a set of neighboring data points corresponding to each data point in the set of data points corresponding to each channel, and obtaining a pattern distribution feature value corresponding to each data point in the set of data points according to the set of neighboring data points corresponding to each data point; Obtaining the network security status corresponding to each channel according to the pattern distribution characteristic value corresponding to each data point in the data point set; The method for obtaining the network security status corresponding to each channel includes: For a data point set D0 corresponding to any channel A, obtain the similarity of pattern distribution characteristics between any two data points in the data point set D0; based on the similarity of pattern distribution characteristics between any two data points in the data point set D0, use the K-means algorithm to cluster the data points in the data point set D0 to obtain all cluster clusters corresponding to the channel A; For any cluster U corresponding to the channel A: in the cluster U, obtain the nearest neighbor data point corresponding to each data point in the cluster U, record the Euclidean distance between each data point in the cluster U and its corresponding nearest neighbor data point as the nearest neighbor distance corresponding to the corresponding data point, and record the reciprocal of the cumulative sum of the nearest neighbor distances corresponding to all data points in the cluster U as the internal density index value corresponding to the cluster U; for any data point P0 in the cluster U, in the cluster U, record the set constructed by all data points except the data point P0 as the set of data points to be judged corresponding to the data point P0, and judge the Whether there is a data point in the data point set to be determined that has the same nearest neighbor distance as that of the data point P0, if so, the data point P0 is recorded as the first data point; in the cluster U, the number of first data points is obtained by counting and recorded as a first quantity representation value, and the ratio of the first quantity representation value to the total number of data points in the cluster U is recorded as the feature quantity ratio corresponding to the cluster U; the product of the feature quantity ratio corresponding to the cluster U and the corresponding internal density index value is recorded as the determination index value corresponding to the cluster U, and if it is determined that the determination index value corresponding to the cluster U is not less than a preset abnormal threshold, the cluster U is recorded as an abnormal cluster; Normalize the cumulative sum of the determination index values corresponding to all abnormal cluster clusters in all cluster clusters corresponding to the channel A to obtain the abnormal network security risk level corresponding to the channel A; determine whether the abnormal network security risk level is not less than a preset risk level threshold, if so, determine that the network security status corresponding to the channel A is abnormal, otherwise, determine that the network security status corresponding to the channel A is normal; The method for obtaining the similarity of pattern distribution characteristics between any two data points in the data point set D0 includes: For the zth data point in the data point set D0 and the vth data point in the data point set D0, the value of z is not equal to the value of v: the value obtained by negatively correlating the Euclidean distance between the zth data point and the vth data point is recorded as the first similarity characterization value; the value obtained by negatively correlating the absolute value of the difference between the pattern distribution characteristic value corresponding to the zth data point and the pattern distribution characteristic value corresponding to the vth data point is recorded as the second similarity characterization value; the sum of the first similarity characterization value and the second similarity characterization value is recorded as the pattern distribution characteristic similarity between the zth data point and the vth data point.
2. A network security big data status assessment method based on pattern recognition as claimed in claim 1, characterized in that: The method for obtaining the overlapping rate characterization value corresponding to each network security data sequence includes: For the a-th network security data in any network security data sequence C in the network security data sequence set B corresponding to any channel A in the channel set, in the network security data sequence C, the number of all network security data with the same value as the a-th network security data is obtained, and recorded as the first eigenvalue corresponding to the a-th network security data; for the network security data sequence C, the cumulative sum of the first eigenvalues corresponding to all network security data in the network security data sequence C is recorded as the overlap rate representation value corresponding to the network security data sequence C.
3. A network security big data status assessment method based on pattern recognition as claimed in claim 2, characterized in that: The method for obtaining the centralization characterization value corresponding to each network security data sequence includes: Regarding the network security data sequence C: Record all network security data except the first network security data and the last network security data in the network security data sequence C as the data to be analyzed corresponding to the network security data sequence C; For any data a0 to be analyzed corresponding to the network security data sequence C, two network security data on the left and right adjacent to the data a0 to be analyzed are obtained in the network security data sequence C, and are respectively recorded as the first data and the second data corresponding to the data a0 to be analyzed, the absolute value of the difference between the data a0 to be analyzed and the first data corresponding thereto is recorded as the first difference value corresponding to the data a0 to be analyzed, the absolute value of the difference between the data a0 to be analyzed and the second data corresponding thereto is recorded as the second difference value corresponding to the data a0 to be analyzed, and the mean of the first difference value and the second difference value corresponding to the data a0 to be analyzed is recorded as the adjacent difference mean corresponding to the data a0 to be analyzed; The cumulative sum of the adjacent difference means corresponding to all the data to be analyzed corresponding to the network security data sequence C is recorded as the comprehensive difference value corresponding to the network security data sequence C, and the value obtained by negative correlation mapping the comprehensive difference value is recorded as the centralization characterization value corresponding to the network security data sequence C.
4. A network security big data status assessment method based on pattern recognition as claimed in claim 2, characterized in that: The method for obtaining the target data sequence set corresponding to each channel includes: For the network security data sequence set B corresponding to the channel A: In the network security data sequence set B, a network security data sequence corresponding to a maximum overlap rate characterization value and a network security data sequence corresponding to a maximum concentration characterization value are obtained, and are recorded as a first feature sequence and a second feature sequence respectively; If it is determined that the first feature sequence and the second feature sequence do not belong to the same network security data sequence, the set constructed by the first feature sequence and the second feature sequence is recorded as the target data sequence set corresponding to the channel A; if it is determined that the first feature sequence and the second feature sequence are both network security data sequence b0 in the network security data sequence set B, then a set of network security data sequences to be selected is obtained, and in the set of network security data sequences to be selected, the network security data sequence corresponding to the maximum overlap rate characterization value is obtained and recorded as the third feature sequence, and the set constructed by the third feature sequence and the network security data sequence b0 is recorded as the target data sequence set corresponding to the channel A, and the set of network security data sequences to be selected is a sequence set constructed by all network security data sequences in the network security data sequence set B except the network security data sequence b0.
5. A network security big data status assessment method based on pattern recognition as claimed in claim 4, characterized in that: The method for obtaining the data point set corresponding to each channel includes: For the channel A: construct a sample space corresponding to the channel A, the number of coordinate axes in the sample space corresponding to the channel A is the same as the number of data sequences in the target data sequence set corresponding to the channel A; map each network security data in each network security data sequence in the target data sequence set corresponding to the channel A to the sample space corresponding to the channel A, obtain all data points in the sample space corresponding to the channel A, and record the set constructed by all data points in the sample space corresponding to the channel A as the data point set corresponding to the channel A.
6. A network security big data status assessment method based on pattern recognition as claimed in claim 5, characterized in that: The method for obtaining a set of neighboring data points corresponding to each data point in the set of data points corresponding to each channel includes: For any data point f in the data point set D0 corresponding to the channel A: in the data point set D0, a set constructed by all data points except the data point f is recorded as the set of data points to be selected corresponding to the data point f; in the set of data points to be selected, a set constructed by a preset number of data points closest to the data point f is recorded as the set of neighboring data points corresponding to the data point f.
7. A network security big data status assessment method based on pattern recognition as claimed in claim 6, characterized in that: The method for obtaining the mode distribution characteristic value corresponding to each data point in the data point set includes: For any data point Q1 in the set of neighboring data points corresponding to the data point f, in the sample space corresponding to the channel A, A0 straight lines are drawn through the data point Q1 and are parallel to the coordinate axes in the sample space corresponding to the channel A, and all of them are recorded as the first straight line corresponding to the data point Q1. The set constructed by all the first straight lines corresponding to the data point Q1 is recorded as the first straight line set corresponding to the data point Q1, and A0 is the number of coordinate axes in the sample space corresponding to the channel A; A new set constructed by the first straight line set corresponding to all data points in the set of neighboring data points corresponding to the data point f is recorded as the feature straight line set corresponding to the data point f, and all straight lines in the feature straight line set are recorded as feature straight lines, and there are no overlapping feature straight lines in the feature straight line set; for the wth feature straight line in the feature straight line set, all data points located on the wth feature straight line and belonging to the set of neighboring data points corresponding to the data point f are recorded as feature data points on the wth feature straight line, a sequence formed by all feature data points on the wth feature straight line is recorded as a feature data point sequence corresponding to the wth feature straight line, and the total number of feature data points in the feature data point sequence corresponding to the wth feature straight line is recorded as a quantity representation value corresponding to the wth feature straight line; In the set of feature straight lines corresponding to the data point f, the set constructed by all feature straight lines whose quantity representation values are greater than a preset first threshold is recorded as the set of straight lines to be analyzed corresponding to the data point f; according to the sequence of feature data points corresponding to each straight line to be analyzed in the set of straight lines to be analyzed corresponding to the data point f, the distribution representation value corresponding to each straight line to be analyzed is obtained; the product of the distribution representation value corresponding to each straight line to be analyzed and its corresponding quantity representation value is recorded as the comprehensive representation value corresponding to the corresponding straight line to be analyzed; the cumulative sum of the comprehensive representation values corresponding to all straight lines to be analyzed in the set of straight lines to be analyzed corresponding to the data point f is recorded as the pattern distribution characteristic value corresponding to the data point f.
8. A network security big data status assessment method based on pattern recognition as claimed in claim 7, characterized in that: The method for obtaining the distribution characterization value corresponding to each straight line to be analyzed includes: For any straight line h0 to be analyzed in the set of straight lines to be analyzed corresponding to the data point f: obtaining an interval value sequence corresponding to the straight line h0 to be analyzed, wherein the hth interval value in the interval value sequence is the Euclidean distance between the h+1th feature data point in the feature data point sequence corresponding to the straight line h0 to be analyzed and the hth feature data point in the feature data point sequence corresponding to the straight line h0 to be analyzed; The interval value sequence is divided to obtain interval value subsequences corresponding to the interval value sequence, wherein the interval values in the interval value subsequences are all equal and continuous; the total number of interval values in the interval value subsequence is used as the adjacent continuous characterization values corresponding to each interval value in the corresponding interval value subsequence; the cumulative sum of the adjacent continuous characterization values corresponding to all interval values in the interval value sequence is recorded as the distribution characterization value corresponding to the straight line h0 to be analyzed.
Citation Information
Patent Citations
Network safety situation evaluation method and device
CN109150868A
Network node anomaly identification method based on access request path analysis
CN116055182A
