A network security situation prediction system
By designing data collection, event coding, anomaly detection and situation prediction modules in the network security situation prediction system, the normal and symptom modes are updated in real time, which solves the problem of the existing system's inability to predict new security threats in a timely manner and realizes the prevention of network security threats. Efficient forecasting.
Patent Information
- Application Number
- CN202410796200.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-20
AI Technical Summary
The existing network security situation prediction system cannot predict new security threats in a timely manner because the model needs to be trained independently and cannot be updated in real time.
A network security situation prediction system is designed, including a data collection module, an event coding module, an anomaly detection module and a situation prediction module. By coding, processing and analyzing network data, it creates normal patterns and symptom patterns, and updates them in real time to predict security incidents. time of occurrence.
It achieves timely prediction of new security threats, ensures that the model can be updated based on real-time collected data, and improves the ability to predict network security threats.
Smart Images

Figure CN118368149B
Abstract
Description
Technical Field
[0001] The invention relates to the field of electronic digital data processing, and in particular to a network security situation prediction system. Background Art
[0002] With the rapid development of the Internet and the widespread application of information technology, the network has become an indispensable and important infrastructure in social economy, national security and daily life. However, network security threats are also increasing. The frequency and complexity of network attacks are constantly increasing, posing a serious threat to individuals, enterprises and national security. Therefore, network security situation awareness and prediction technology has become a research hotspot in the current field of network security.
[0003] The foregoing discussion of the background art is intended only to facilitate an understanding of the present invention. This discussion does not acknowledge or admit that any of the material referred to is part of the common general knowledge.
[0004] Many situation prediction systems have been developed. After a lot of searching and reference, it is found that the existing prediction systems are such as the system disclosed in the publication number CN114037145B. These system methods generally include: calculating the situation value of the attack sample in each historical preset period to obtain the situation value time series; setting a sliding window according to the number of neurons in the input layer of the BiLSTM model, dividing the situation value time series by using the sliding window, and obtaining multiple situation value time subsequences; using the first m situation values of each situation value time subsequence as input samples, and using the last situation value of the situation value time subsequence as the output result, to construct a sample data set; using the sample data set and the particle swarm algorithm to determine the network parameters of the BiLSTM model, and obtain the trained BiLSTM model; using the trained BiLSTM model to predict the situation value of the attack sample in the future preset period. However, the model involved in this system needs to be trained independently, and it is impossible to predict new security threats in a timely manner. Summary of the invention
[0005] The purpose of the present invention is to propose a network security situation prediction system in view of the existing deficiencies.
[0006] The present invention adopts the following technical solution:
[0007] A network security situation prediction system, comprising a data acquisition module, an event encoding module, an anomaly detection module and a situation prediction module;
[0008] The data acquisition module is used to collect network data, the event coding module is used to classify network data into events and perform statistical coding, the anomaly detection module is used to analyze and detect the coding sequence, and the situation prediction module predicts the security situation based on the detection results;
[0009] The data collection module includes a flow collection unit, an intelligence collection unit and a log collection unit. The flow collection unit is used to collect communication data between the system and the outside, the intelligence collection unit is used to collect threat intelligence information outside the system, and the log collection unit is used to collect abnormal information in the log inside the system;
[0010] The event encoding module includes an event extraction unit, an event classification unit and an event encoding unit. The event extraction unit is used to extract event information from the collected data. The event classification unit is used to classify the extracted event information. The event encoding unit encodes each event based on the classification of the event.
[0011] The anomaly detection module includes a pattern recognition unit and an anomaly analysis unit. The pattern recognition unit recognizes and creates a reference pattern based on a coding sequence, and the anomaly analysis unit performs a difference analysis between a current event sequence and a corresponding pattern to detect abnormal data.
[0012] The situation prediction module includes a trend analysis unit and a real-time prediction unit. The trend analysis unit analyzes the changing trend of abnormal data, and the real-time prediction unit predicts the time point of occurrence of safety accidents based on the changing trend.
[0013] Furthermore, the event encoding unit includes a timing management processor, an event statistics processor and an encoding management processor, wherein the timing management processor is used to sort the classification information of a single event based on the time sequence, the event statistics processor is used to calculate the statistical data of the classification information in each time period, and the encoding management processor performs encoding processing on each time period based on the statistical results;
[0014] Further, the pattern recognition unit includes a window processor and a pattern creation processor, the window processor is used to extract a fixed-length window code from the code sequence, and the pattern creation processor creates a reference pattern based on the window code information;
[0015] The pattern creation processor calculates the feature vector of the window encoding according to the following formula:
[0016] ;
[0017] Among them, a i Represents the value of the i-th element in the feature vector, Rd j Represents the reduction index of the jth corresponding character flag field in the window encoding, Sn j Indicates the sequence number of the jth corresponding character flag field in the window code, and n is the number of corresponding character flag fields in the window code;
[0018] Further, the abnormality analysis unit includes a reference screening processor and an abnormality calculation processor, the reference screening processor is used to screen out a normal reference mode and a symptom reference mode as a reference, and the abnormality calculation processor is used to calculate an abnormality index of the current event sequence;
[0019] The reference screening processor processes the current event sequence to obtain a feature vector, and screens out a pattern with the smallest difference value from the normal reference pattern and the symptom reference pattern as a reference;
[0020] The abnormality calculation processor calculates the abnormality index Ab according to the following formula:
[0021] ;
[0022] in, is the difference value from the normal reference mode, is the difference value from the symptom baseline pattern used as a reference;
[0023] Further, the real-time prediction unit includes a standard calculation processor and a time prediction processor, the standard calculation processor is used to calculate the standard parameters, and the time prediction processor calculates the predicted accident occurrence time based on the standard parameters;
[0024] The standard calculation processor calculates the standard parameter value A according to the following formula: 0 :
[0025] ;
[0026] Among them, Nq is the trend target number, Ab(i) represents the i-th abnormal index;
[0027] The time prediction processor calculates the predicted time T according to the following formula:
[0028] ;
[0029] Among them, t 0 is the duration of the coding period.
[0030] The beneficial effects achieved by the present invention are:
[0031] This system encodes event information and then analyzes the coding sequence to obtain normal patterns and symptom patterns. It determines whether a security incident will occur by comparing the current coding information with the normal pattern and symptom pattern, and predicts the time of occurrence based on the characteristic information obtained from the comparison. The normal pattern and symptom pattern will be updated in real time as the collected data is added, ensuring that new security threats can be predicted in a timely manner.
[0032] To further understand the features and technical contents of the present invention, please refer to the following detailed description and drawings of the present invention. However, the drawings provided are only for reference and description and are not intended to limit the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is a schematic diagram of the overall structural framework of the present invention;
[0034] Figure 2 This is a schematic diagram of the event coding module of the present invention;
[0035] Figure 3 This is a schematic diagram of the abnormality detection module of the present invention;
[0036] Figure 4 This is a schematic diagram of the situation prediction module of the present invention;
[0037] Figure 5 This is a schematic diagram of the event encoding unit of the present invention. DETAILED DESCRIPTION
[0038] The following is an explanation of the embodiments of the present invention through specific embodiments. Those skilled in the art can understand the advantages and effects of the present invention from the contents disclosed in this specification. The present invention can be implemented or applied through other different specific embodiments, and the details in this specification can also be modified and changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. In addition, the drawings of the present invention are only simple schematic illustrations and are not depicted according to actual sizes. It is stated in advance. The following embodiments will further explain the relevant technical contents of the present invention in detail, but the disclosed contents are not intended to limit the scope of protection of the present invention.
[0039] Embodiment 1: This embodiment provides a network security situation prediction system, combined with Figure 1 , including data acquisition module, event coding module, anomaly detection module and situation prediction module;
[0040] The data acquisition module is used to collect network data, the event coding module is used to classify network data into events and perform statistical coding, the anomaly detection module is used to analyze and detect the coding sequence, and the situation prediction module predicts the security situation based on the detection results;
[0041] The data collection module includes a flow collection unit, an intelligence collection unit and a log collection unit. The flow collection unit is used to collect communication data between the system and the outside, the intelligence collection unit is used to collect threat intelligence information outside the system, and the log collection unit is used to collect abnormal information in the log inside the system;
[0042] The event encoding module includes an event extraction unit, an event classification unit and an event encoding unit. The event extraction unit is used to extract event information from the collected data. The event classification unit is used to classify the extracted event information. The event encoding unit encodes each event based on the classification of the event.
[0043] The anomaly detection module includes a pattern recognition unit and an anomaly analysis unit. The pattern recognition unit recognizes and creates a reference pattern based on a coding sequence, and the anomaly analysis unit performs a difference analysis between a current event sequence and a corresponding pattern to detect abnormal data.
[0044] The situation prediction module includes a trend analysis unit and a real-time prediction unit. The trend analysis unit analyzes the changing trend of abnormal data, and the real-time prediction unit predicts the time point of occurrence of safety accidents based on the changing trend.
[0045] The event encoding unit includes a timing management processor, an event statistics processor and an encoding management processor, wherein the timing management processor is used to sort the classification information of a single event based on the time sequence, the event statistics processor is used to calculate the statistical data of the classification information in each time period, and the encoding management processor performs encoding processing on each time period based on the statistical results;
[0046] The pattern recognition unit includes a window processor and a pattern creation processor, wherein the window processor is used to extract a fixed-length window code from the code sequence, and the pattern creation processor creates a reference pattern based on the window code information;
[0047] The pattern creation processor calculates the feature vector of the window encoding according to the following formula:
[0048] ;
[0049] Among them, a i Represents the value of the i-th element in the feature vector, Rd j Represents the reduction index of the jth corresponding character flag field in the window encoding, Sn j Indicates the sequence number of the jth corresponding character flag field in the window code, and n is the number of corresponding character flag fields in the window code;
[0050] The abnormality analysis unit includes a reference screening processor and an abnormality calculation processor, wherein the reference screening processor is used to screen out a normal reference mode and a symptom reference mode as a reference, and the abnormality calculation processor is used to calculate an abnormality index of the current event sequence;
[0051] The reference screening processor processes the current event sequence to obtain a feature vector, and screens out a pattern with the smallest difference value from the normal reference pattern and the symptom reference pattern as a reference;
[0052] The abnormality calculation processor calculates the abnormality index Ab according to the following formula:
[0053] ;
[0054] in, is the difference value from the normal reference mode, is the difference value from the symptom baseline pattern used as a reference;
[0055] The real-time prediction unit includes a standard calculation processor and a time prediction processor, wherein the standard calculation processor is used to calculate standard parameters, and the time prediction processor calculates the predicted accident occurrence time based on the standard parameters;
[0056] The standard calculation processor calculates the standard parameter value A according to the following formula: 0 :
[0057] ;
[0058] Among them, Nq is the trend target number, Ab(i) represents the i-th abnormal index;
[0059] The time prediction processor calculates the predicted time T according to the following formula:
[0060] ;
[0061] Among them, t 0 is the duration of the coding period.
[0062] Embodiment 2: This embodiment includes all the contents of Embodiment 1, and provides a network security situation prediction system, including a data acquisition module, an event encoding module, an anomaly detection module and a situation prediction module;
[0063] The data acquisition module is used to collect network data, the event coding module is used to classify network data into events and perform statistical coding, the anomaly detection module is used to analyze and detect the coding sequence, and the situation prediction module predicts the security situation based on the detection results;
[0064] The data collection module includes a flow collection unit, an intelligence collection unit and a log collection unit. The flow collection unit is used to collect communication data between the system and the outside, the intelligence collection unit is used to collect threat intelligence information outside the system, and the log collection unit is used to collect abnormal information in the log inside the system;
[0065] Combination Figure 2 The event encoding module includes an event extraction unit, an event classification unit and an event encoding unit. The event extraction unit is used to extract event information from the collected data. The event classification unit is used to classify the extracted event information. The event encoding unit encodes each event based on the classification of the event.
[0066] Combination Figure 3 The anomaly detection module includes a pattern recognition unit and an anomaly analysis unit. The pattern recognition unit recognizes and creates a reference pattern based on a coding sequence, and the anomaly analysis unit performs a difference analysis between a current event sequence and a corresponding pattern to detect abnormal data;
[0067] Combination Figure 4 The situation prediction module includes a trend analysis unit and a real-time prediction unit. The trend analysis unit analyzes the changing trend of abnormal data, and the real-time prediction unit predicts the time point of occurrence of the safety accident based on the changing trend.
[0068] The traffic collection unit includes a data packet capture processor, a traffic filtering processor, a traffic buffer processor and a traffic data register, wherein the data packet capture processor is used to capture all data packets transmitted in the network, the traffic filtering processor is used to filter the captured data packets, the traffic buffer processor is used to temporarily store the captured data packets, and the traffic data register is used to save the filtered data packet information;
[0069] The intelligence collection unit includes an intelligence source interface processor and a data aggregation processor, wherein the intelligence source interface processor is used to establish a connection with an external data source, and the data aggregation processor is used to obtain intelligence data from the external data source and integrate it;
[0070] The log collection unit includes an alarm monitoring processor and a log extraction processor, wherein the alarm monitoring processor is used to monitor the alarm information in the log, and the log extraction processor is used to extract the alarm information in the log;
[0071] The event extraction unit includes a feature comparison processor, an attribute addition processor and an event output processor, wherein the feature comparison processor is used to compare the data packet information with the feature table to extract a single event, the attribute addition processor adds attribute information to the single event based on the correlation between the single event and the intelligence data and the alarm information, and the event output processor is used to output the single event after the attribute is added to the event classification unit;
[0072] The event classification unit includes an event parsing processor, a classification matching processor and an attribute adjustment processor. The event parsing processor is used to parse a single event to obtain an event factor. The classification matching processor is used to match the event factor with a basic classification item to obtain a basic classification of the single event. The attribute adjustment processor adjusts the basic classification based on the attribute information to obtain final classification information of the single event.
[0073] Combination Figure 5 The event encoding unit includes a timing management processor, an event statistics processor and a coding management processor. The timing management processor is used to sort the classification information of a single event based on the time sequence. The event statistics processor is used to calculate the statistical data of the classification information in each time period. The coding management processor performs coding processing on each time period based on the statistical results.
[0074] The process of encoding management processor performing encoding processing includes the following steps:
[0075] S1. Sort the classified information from high to low according to the statistical data;
[0076] S2, retain the first m classification information;
[0077] S3. Calculate the reduction index Rd of two adjacent classification information according to the following formula:
[0078] ;
[0079] Among them, v 1 Refers to the statistical value of the previous classification information, v 2 Refers to the statistical value of the latter classification information;
[0080] S4, searching for a corresponding character mark Cd based on two adjacent classification information;
[0081] S5, a field consisting of a character flag and a reduced-order index;
[0082] S6, the code consists of m-1 fields;
[0083] The pattern recognition unit includes a window processor and a pattern creation processor, wherein the window processor is used to extract a fixed-length window code from the code sequence, and the pattern creation processor creates a reference pattern based on the window code information;
[0084] The window codes extracted by the window processor are divided into normal window codes and symptom window codes. The symptom window codes refer to the window codes corresponding to before the safety accident occurs, and the normal window codes refer to the window codes corresponding to when no safety accident occurs within a total of 3 window lengths before and after.
[0085] The mode creation processor creates a normal reference mode based on the normal window code, and the mode creation processor creates a symptom reference mode based on the symptom window code;
[0086] The process of the pattern creation processor creating a reference pattern comprises the following steps:
[0087] S21, identifying characteristic information of the window code;
[0088] S22, classifying the window codes based on the feature information;
[0089] S23, creating a corresponding reference pattern based on each type of window encoding;
[0090] The pattern creation processor calculates the feature vector of the window encoding according to the following formula:
[0091] ;
[0092] Among them, a i Represents the value of the i-th element in the feature vector, Rd j Represents the reduction index of the jth corresponding character flag field in the window encoding, Sn j Indicates the sequence number of the jth corresponding character flag field in the window code, and n is the number of corresponding character flag fields in the window code;
[0093] Each element in the feature vector corresponds to a character flag;
[0094] The pattern creation processor calculates the difference between the two feature vectors according to the following formula: :
[0095] ;
[0096] Where N is the number of elements in the eigenvector, a i (1) represents the value of the i-th element of the first eigenvector, a i (2) represents the i-th element value of the second eigenvector;
[0097] The pattern creation processor classifies feature vectors whose difference values are less than a classification threshold into the same class;
[0098] The pattern creation processor calculates the reference vector of each reference pattern according to the following formula:
[0099] ;
[0100] Among them, b i represents the value of the i-th element in the reference vector, M is the number of similar feature vectors, and a i(j) is the value of the i-th element of the j-th eigenvector;
[0101] The abnormality analysis unit includes a reference screening processor and an abnormality calculation processor, wherein the reference screening processor is used to screen out a normal reference mode and a symptom reference mode as a reference, and the abnormality calculation processor is used to calculate an abnormality index of the current event sequence;
[0102] The reference screening processor processes the current event sequence to obtain a feature vector, and screens out a pattern with the smallest difference value from the normal reference pattern and the symptom reference pattern as a reference;
[0103] The abnormality calculation processor calculates the abnormality index Ab according to the following formula:
[0104] ;
[0105] in, is the difference value from the normal reference mode, is the difference value from the symptom baseline pattern used as a reference;
[0106] The abnormal information receiving processor of the trend analysis unit and the trend comparison processor, the abnormal information receiving processor is used to receive the abnormal information sent by the abnormal analysis unit, and the trend comparison processor is used to compare and process the continuous abnormal information;
[0107] The abnormal information includes a reference symptom benchmark pattern and an abnormal index. When a number of consecutive reference symptom benchmark patterns are consistent and the abnormal index continues to increase, it means that the accident trend is met, and the abnormal information is sent to the real-time prediction unit. The required number of consecutive abnormal information is the trend target number;
[0108] The real-time prediction unit includes a standard calculation processor and a time prediction processor, wherein the standard calculation processor is used to calculate standard parameters, and the time prediction processor calculates the predicted accident occurrence time based on the standard parameters;
[0109] The standard calculation processor calculates the standard parameter value A according to the following formula: 0 :
[0110] ;
[0111] Among them, Nq is the trend target number, Ab(i) represents the i-th abnormal index;
[0112] The time prediction processor calculates the predicted time T according to the following formula:
[0113] ;
[0114] Among them, t0 is the length of the coding time period;
[0115] The i and j appearing in the above text are both ordinal numbers used to indicate serial numbers.
[0116] The contents disclosed above are only preferred feasible embodiments of the present invention, and do not limit the protection scope of the present invention. Therefore, all equivalent technical changes made using the contents of the present invention specification and drawings are included in the protection scope of the present invention. In addition, the elements therein can be updated as technology develops.
Claims
1. A network security situation prediction system, characterized in that: It includes data collection module, event coding module, anomaly detection module and situation prediction module; The data acquisition module is used to collect network data, the event coding module is used to classify network data into events and perform statistical coding, the anomaly detection module is used to analyze and detect the coding sequence, and the situation prediction module predicts the security situation based on the detection results; The data collection module includes a flow collection unit, an intelligence collection unit and a log collection unit. The flow collection unit is used to collect communication data between the system and the outside, the intelligence collection unit is used to collect threat intelligence information outside the system, and the log collection unit is used to collect abnormal information in the log inside the system; The event encoding module includes an event extraction unit, an event classification unit and an event encoding unit. The event extraction unit is used to extract event information from the collected data. The event classification unit is used to classify the extracted event information. The event encoding unit encodes each event based on the classification of the event. The anomaly detection module includes a pattern recognition unit and an anomaly analysis unit. The pattern recognition unit recognizes and creates a reference pattern based on a coding sequence, and the anomaly analysis unit performs a difference analysis between a current event sequence and a corresponding pattern to detect abnormal data. The situation prediction module includes a trend analysis unit and a real-time prediction unit. The trend analysis unit is used to analyze the change trend of abnormal data, and the real-time prediction unit predicts the time point of occurrence of the safety accident based on the change trend. The event encoding unit includes a timing management processor, an event statistics processor and an encoding management processor, wherein the timing management processor is used to sort the classification information of a single event based on the time sequence, the event statistics processor is used to calculate the statistical data of the classification information in each time period, and the encoding management processor performs encoding processing on each time period based on the statistical results; The process of encoding management processor performing encoding processing includes the following steps: S1. Sort the classified information from high to low according to the statistical data; S2, retain the first m classification information; S3. Calculate the reduction index Rd of two adjacent classification information according to the following formula: ; Among them, v1 refers to the statistical value of the previous classification information, and v2 refers to the statistical value of the next classification information; S4, searching for a corresponding character mark Cd based on two adjacent classification information; S5, a field consisting of a character flag and a reduced-order index; S6, the code consists of m-1 fields; The pattern recognition unit includes a window processor and a pattern creation processor, wherein the window processor is used to extract a fixed-length window code from the code sequence, and the pattern creation processor creates a reference pattern based on the window code information; The window codes extracted by the window processor are divided into normal window codes and symptom window codes. The symptom window codes refer to the window codes corresponding to before the safety accident occurs, and the normal window codes refer to the window codes corresponding to when no safety accident occurs within a total of 3 window lengths before and after. The mode creation processor creates a normal reference mode based on the normal window code, and the mode creation processor creates a symptom reference mode based on the symptom window code; The process of the pattern creation processor creating a reference pattern comprises the following steps: S21, identifying characteristic information of the window code; S22, classifying the window codes based on the feature information; S23, creating a corresponding reference pattern based on each type of window encoding; The pattern creation processor calculates the feature vector of the window encoding according to the following formula: ; Among them, a i Represents the value of the i-th element in the feature vector, Rd j Represents the reduction index of the jth corresponding character flag field in the window encoding, Sn j Indicates the sequence number of the jth corresponding character flag field in the window code, n is the number of corresponding character flag fields in the window code; each element in the feature vector corresponds to a character flag; The pattern creation processor calculates the difference between the two feature vectors according to the following formula: : ; Where N is the number of elements in the eigenvector, a i (1) represents the value of the i-th element of the first eigenvector, a i (2) represents the i-th element value of the second eigenvector; The pattern creation processor classifies feature vectors whose difference values are less than a classification threshold into the same class; The pattern creation processor calculates the reference vector of each reference pattern according to the following formula: ; Among them, b i represents the value of the i-th element in the reference vector, M is the number of similar feature vectors, and a i (j) is the value of the i-th element of the j-th eigenvector; The abnormality analysis unit includes a reference screening processor and an abnormality calculation processor, wherein the reference screening processor is used to screen out a normal reference mode and a symptom reference mode as a reference, and the abnormality calculation processor is used to calculate an abnormality index of the current event sequence; The reference screening processor processes the current event sequence to obtain a feature vector, and screens out a pattern with the smallest difference value from the normal reference pattern and the symptom reference pattern as a reference; The abnormality calculation processor calculates the abnormality index Ab according to the following formula: ; in, is the difference value from the normal reference mode, is the difference value from the symptom baseline pattern used as a reference; The trend analysis unit includes an abnormal information receiving processor and a trend comparison processor, wherein the abnormal information receiving processor is used to receive abnormal information sent by the abnormal analysis unit, and the trend comparison processor is used to compare and process continuous abnormal information; The abnormal information includes a reference symptom benchmark pattern and an abnormal index. When a number of consecutive reference symptom benchmark patterns are consistent and the abnormal index continues to increase, it means that the accident trend is met, and the abnormal information is sent to the real-time prediction unit. The required number of consecutive abnormal information is the trend target number; The real-time prediction unit includes a standard calculation processor and a time prediction processor, wherein the standard calculation processor is used to calculate standard parameters, and the time prediction processor calculates the predicted accident occurrence time based on the standard parameters; The standard calculation processor calculates the standard parameter value A0 according to the following formula: ; Among them, Nq is the trend target number, Ab(i) represents the i-th abnormal index; The time prediction processor calculates the predicted time T according to the following formula: ; Wherein, t0 is the duration of the encoding time period.
Citation Information
Patent Citations
A method and system for predicting network security situation
CN114037145B
Big data-based cloud platform log management system
CN112416872A
Network security situation prediction method and system
CN115706669A
Network security supervision system and method based on machine learning and abnormal behavior analysis
CN116614277A
Abnormal user identification method and device, electronic equipment and readable storage medium
CN117351567A
