A network security situation awareness system and method
By collecting and analyzing network data in real time in the network security situational awareness system, identifying abnormal behaviors and executing corresponding measures, the problem of traditional network security being unable to respond to rapidly changing threats is solved, real-time monitoring and early warning of network security is achieved, and network security is ensured. stability.
Patent Information
- Application Number
- CN202410956910.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-17
AI Technical Summary
Traditional network security protection methods are difficult to respond to rapidly changing threats and cannot perceive the network security situation in real time, making it difficult to promptly warn and defend against network attacks.
Design a network security situational awareness system, including a cloud platform, data collection module, data processing module, situational awareness module and countermeasures module. Through real-time collection of network data information, security limits, interval classification, feature parameter extraction and abnormal behavior analysis are carried out. , generate situation reports, and implement corresponding security countermeasures based on the reports.
It realizes real-time monitoring and early warning of network security situation, detects abnormal behaviors in time, effectively maintains network security and avoids the expansion of abnormal problems.
Smart Images

Figure CN118509259B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network security, and in particular to a network security situation awareness system and method. Background Art
[0002] Cybersecurity situational awareness refers to the ability to monitor, identify and analyze real-time threats, attacks and abnormal activities in the network environment, and take corresponding security measures in a timely manner to respond and defend. This concept covers a comprehensive understanding and grasp of the cybersecurity situation, and aims to ensure the security, integrity and availability of network systems and data.
[0003] With the rapid development of the Internet, cyber attacks are becoming increasingly rampant, posing severe challenges to network security. Traditional network security protection methods often rely on static rules or feature libraries, which are difficult to cope with rapidly changing threats. Therefore, it is of great significance to develop a system and method that can perceive the network security situation in real time, issue warnings in time, and take corresponding countermeasures. Summary of the invention
[0004] In order to solve the above problems, the purpose of the present invention is to provide a network security situation awareness system and method.
[0005] The object of the present invention can be achieved by the following technical solutions: A network security situation awareness system includes a cloud platform, wherein the cloud platform is communicatively connected with a data acquisition module, a data processing module, a situation awareness module, and a countermeasure module;
[0006] The data collection module is used to collect network data information in real time and to safely limit the collection environment of the network data information;
[0007] The data processing module is used to classify the collected network data information into intervals, thereby generating different interval data information sets, and extracting characteristic parameter information corresponding to each interval data information set;
[0008] The situation awareness module is used to analyze the characteristic parameter information corresponding to each interval data information set, thereby locating the interval data information set that affects the network security situation, and warning the corresponding abnormal network behavior through situation awareness, and generating a situation report corresponding to the abnormal network behavior;
[0009] The countermeasure module is used to obtain a situation report corresponding to each abnormal network behavior, and execute corresponding security countermeasures according to different situation reports.
[0010] Furthermore, the process of collecting network data information in real time and restricting the collection environment securely includes:
[0011] The network security related personnel shall edit the requirement document, which shall record all the data types for network data information collection, the different data sources corresponding to each data type, and the data magnitude of network data information of different data types;
[0012] The programmer edits the script file for collecting network data information, and encodes the requirement document into the script file, which then serves as the collection template data of the script file. The collection template data includes a number of web page addresses, a number of web page contents, and a number of types of crawling parameter sets, wherein different web page addresses correspond to different data sources of network data information, and different web page contents correspond to different data types of network data information. According to different data magnitudes, a crawling parameter set corresponding to each data magnitude is generated, and the crawling parameter set includes crawling frequency and crawling depth;
[0013] Then, the script file uses a number of web page addresses as a number of traversal starting points for collecting network data information, and starts to collect web page contents corresponding to a number of different web page addresses in real time and synchronously from the number of traversal starting points, and uses the page end character set corresponding to each web page content as the traversal end point. When the web page contents corresponding to a number of web page addresses are all traversed, it indicates that the operation of collecting network data information is completed. When the script file collects the network data information of the web page contents corresponding to each web page address, it collects according to the crawling frequency and crawling depth corresponding to each web page content.
[0014] Furthermore, the process of classifying the network data information into intervals and generating different interval data information sets includes:
[0015] The network data information includes network log data, network flow data and network session data. The network log data includes a number of log operation records. The network flow data includes a number of real-time segment flows corresponding to a number of time periods. The network session data includes a number of session records corresponding to the session duration.
[0016] The interval classification includes log interval classification, flow interval classification and session interval classification. The network log data is classified into log intervals, and then a number of log operation records are marked as corresponding legal data one, suspected abnormal data one and abnormal data one; the network flow data is classified into flow intervals, and then the real-time segment flows corresponding to a number of time periods are summarized into corresponding abnormal data two, suspected abnormal data two and normal data two; the network session data is classified into session intervals, and then the session records corresponding to a number of session durations are summarized into corresponding abnormal data three, suspected abnormal data three and normal data three;
[0017] The interval data information set includes a first interval information set, a second interval information set and a third interval information set. Abnormal data one, abnormal data two and abnormal data three are combined as the first interval information set, suspected abnormal data one, suspected abnormal data two and suspected abnormal data three are combined as the second interval information set, and normal data one, normal data two and normal data three are combined as the third interval information set.
[0018] Furthermore, the process of extracting characteristic parameter information corresponding to each interval data information set includes:
[0019] A feature analysis program and a key item matching period and an information extraction period corresponding to the feature analysis program are set. If the current time is in the key item matching period, the first interval information set and the third interval information set are input into the feature analysis program, and then the first interval information set is split into a plurality of abnormal information representation segments after analysis by the feature analysis program, and the third interval information set is split into a plurality of normal information representation segments, and the timestamps corresponding to the plurality of normal information representation segments and the abnormal information representation segments are obtained, and the normal information representation segments and the abnormal information representation segments at the same timestamp are matched together as a key item, thereby generating a plurality of key items;
[0020] During the information extraction period, the cosine similarity coefficient corresponding to each key item is obtained by the feature analysis program and recorded as , split the second interval information set into sub-information sets corresponding to different timestamps, calculate the cosine similarity corresponding to each sub-information set, and record it as , all satisfied ≥ The corresponding sub-information sets are classified as abnormal feature parameters, and all those that meet < The corresponding sub-information set is classified as a normal feature parameter, all abnormal information representation fragments are marked as abnormal feature parameters, and all normal information representation fragments are marked as normal feature parameters.
[0021] Furthermore, the process of analyzing the characteristic parameter information corresponding to each interval data information set and then locating the interval data information set that affects the network security situation includes:
[0022] When the characteristic parameter information of all interval data information sets has been extracted, the characteristic parameter information corresponding to each interval data information set is analyzed in turn. If the interval data information set only includes normal characteristic parameters, the corresponding interval data information set is located as an interval data information set that has no impact on the network security situation. If the interval data information set only includes abnormal characteristic parameters, or the interval data information set includes both normal characteristic parameters and abnormal characteristic parameters, the corresponding interval data information set is located as an interval data information set that affects the network security situation.
[0023] Furthermore, the process of locating the abnormal network behavior corresponding to the interval data information set that affects the network security situation through situation awareness and generating a situation report corresponding to the abnormal network behavior includes:
[0024] Setting up a situation awareness library, which stores a number of historical abnormal network behaviors that affect the network security situation, each of which is associated with a corresponding abnormal document, and the abnormal document records a number of abnormal node words and sentences;
[0025] A corresponding situation awareness bag-of-words model is established for the interval data information set that affects the network security situation. The situation awareness bag-of-words model is used to perform situation awareness on the interval data information set that currently affects the network security situation, and then several situation awareness phrases corresponding to the interval data information set are extracted.
[0026] Input all interval data information sets that affect the network security situation and several situation awareness phrases corresponding to each interval data information set into the situation awareness library, and then obtain the matching degree between the interval data information and each historical abnormal network behavior, and take the historical abnormal network behaviors with the top three matching degree values as the abnormal network behaviors corresponding to the current interval data information set;
[0027] Obtain the behavioral details of all abnormal network behaviors corresponding to the current interval data information set, and enter them into the preset blank report form, and then generate a situation report corresponding to each abnormal network behavior, and send the situation report to the cloud platform for storage.
[0028] Furthermore, the process of obtaining a situation report corresponding to each abnormal behavior and executing corresponding security countermeasures according to different situation reports includes:
[0029] Define several authorized users of the cloud platform and define a unique authorization ID for each authorized user. When a user accesses the cloud platform, determine whether the user currently accessing the platform has an authorization ID.
[0030] If yes, it is further determined whether the authorization identifier is the defined authorization identifier. If yes, the corresponding user is recorded as an authorized user, and a situation report corresponding to each abnormal behavior is obtained from the cloud platform. If no, the current user is prohibited from operating the cloud platform.
[0031] If not, the current user is directly prohibited from operating the cloud platform;
[0032] Execute corresponding security response measures according to different situation reports. Situation reports include traffic situation reports, interference situation reports and intrusion situation reports. Security response measures include traffic control measures, information screening measures and vulnerability patching measures.
[0033] When the situation report is a traffic situation report, the corresponding security response measures to be implemented are traffic control measures;
[0034] When the situation report is an interference situation report, the security response measures to be performed are information screening measures;
[0035] When the situation report is an intrusion situation report, the corresponding security response measures to be performed are vulnerability patching measures.
[0036] Furthermore, a network security situation awareness method of a network security situation awareness system comprises the following steps:
[0037] Step S1, collecting network data information in real time, and restricting the collection environment of the network data information securely;
[0038] Step S2, classifying the collected network data information into intervals, thereby generating different interval data information sets, and extracting characteristic parameter information corresponding to each interval data information set;
[0039] Step S3, analyzing the characteristic parameter information corresponding to each interval data information set, and then locating the interval data information set that affects the network security situation, and warning the corresponding abnormal network behavior through situation awareness, and generating a situation report corresponding to the abnormal network behavior;
[0040] Step S4, obtaining a situation report corresponding to each abnormal network behavior, and executing corresponding security countermeasures according to different situation reports.
[0041] Compared with the prior art, the beneficial effects of the present invention are: by collecting network data information in real time and performing security restrictions on the collection environment while collecting network data information, the security of the data collection process is guaranteed, the collected network data information is classified into intervals, and then different interval data information sets are generated, and the characteristic parameter information corresponding to each interval data information set is extracted, and the characteristic parameter information corresponding to each interval data information set is analyzed, so as to locate the interval data information set that affects the network security situation, and warn of the corresponding abnormal network behavior through situation awareness, so as to realize the timely discovery of abnormal network behavior that affects network security, generate situation reports corresponding to abnormal network behavior, and execute corresponding security response measures according to different situation reports, so as to timely avoid the expansion of network abnormality problems to a certain extent and effectively maintain network security. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a schematic diagram of the present invention. DETAILED DESCRIPTION
[0043] like Figure 1As shown, a network security situation awareness system includes a cloud platform, and the cloud platform is communicatively connected with a data acquisition module, a data processing module, a situation awareness module, and a countermeasure module;
[0044] The data collection module is used to collect network data information in real time and to safely limit the collection environment of the network data information;
[0045] The data processing module is used to classify the collected network data information into intervals, thereby generating different interval data information sets, and extracting characteristic parameter information corresponding to each interval data information set;
[0046] The situation awareness module is used to analyze the characteristic parameter information corresponding to each interval data information set, thereby locating the interval data information set that affects the network security situation, and warning the corresponding abnormal network behavior through situation awareness, and generating a situation report corresponding to the abnormal network behavior;
[0047] The countermeasure module is used to obtain a situation report corresponding to each abnormal network behavior, and execute corresponding security countermeasures according to different situation reports.
[0048] It should be further explained that, in the specific implementation process, the process of collecting network data information in real time and restricting the collection environment of the network data information securely includes:
[0049] A network security related personnel edits a requirements document, which records all data types for network data information collection, different data sources corresponding to each data type, and the data magnitude of network data information of different data types;
[0050] The programmer uses Python language to edit the script file for collecting network data information, and encodes the demand document into the script file, which serves as the collection template data of the script file. The collection template data includes a certain number of web page addresses, a certain number of web page contents, and a certain type of crawling parameter set;
[0051] Wherein, different web page addresses correspond to different data sources of network data information, different web page contents correspond to different data types of network data information, and a crawling parameter set corresponding to each type of data level is generated according to different data levels, and the crawling parameter set includes crawling frequency and crawling depth;
[0052] Then the script file uses a number of web page addresses as a number of traversal starting points for collecting network data information, starts to collect web page contents corresponding to a number of different web page addresses in real time and synchronously from the number of traversal starting points, and uses the page end character set corresponding to each web page content as the traversal end point. When the web page contents corresponding to the number of web page addresses are all traversed, it indicates that the operation of collecting network data information is completed;
[0053] Furthermore, when the script file collects network data information of the web page content corresponding to each web page address, the collection operation is performed according to the crawling frequency and crawling depth corresponding to each web page content. The crawling frequency is limited to the number of times the current web page content is crawled per unit time, and the crawling frequency is limited to the maximum number of web page layers traversed by the current web page content. By setting the crawling frequency and crawling depth, unlimited crawling of web page content is prevented, the speed of accessing the website is controlled, and excessive load on the website is avoided;
[0054] Acquire environmental parameters corresponding to the collection environment when collecting network data information, the environmental parameters include normal environmental parameters and abnormal environmental parameters, set an abnormal library, the abnormal library stores several safety limitation schemes corresponding to the abnormal environmental parameters, input the abnormal environmental parameters into the abnormal library, and then obtain the corresponding safety limitation scheme, and perform safety limitation on the current collection environment by executing the safety limitation scheme, the safety limitation includes network isolation and access control;
[0055] It should be noted that the content of network isolation is: establishing a dedicated network environment or virtual private network for collecting current network data information, isolating the current collection environment from other network environments; the content of access control is: using strong passwords and multi-factor authentication and other measures to limit access rights to the collection environment, defining authorized personnel corresponding to the collection environment, and allowing only authorized personnel to access.
[0056] It should be further explained that, in a specific implementation process, the process of classifying the collected network data information into intervals and then generating different interval data information sets includes:
[0057] The network data information includes network log data, network flow data and network session data, wherein the network log data includes a number of log operation records, the network flow data includes a number of real-time segment flows corresponding to a number of time periods, and the network session data includes a number of session records corresponding to a number of session durations;
[0058] The interval classification includes log interval classification, flow interval classification and session interval classification;
[0059] The network log data is classified into log intervals, and the content of the log interval classification is as follows: define standard log content, mark several log operation records that do not conform to the standard log content as compliant log operations, and mark those that conform to the standard log content as illegal log operations;
[0060] Then we can get the ratio of illegal log operations, denoted as R, and we have R = S 1 / S 2 , where S 1 is the number of illegal log operations, S 2 is the number of all log operation records, set the log classification threshold 1 and log classification threshold 2, denoted as d 1 and d 2 , there is 0<d 1 <d 2 <S 2 ;
[0061] When R∈[0, d 1 ], mark the corresponding network log data as legal data one;
[0062] When R∈(d 1 , d 2 ], the corresponding network log data is marked as suspected abnormal data 1;
[0063] When R∈(d 2 , S 2 ], the corresponding network log data is marked as abnormal data 1;
[0064] The network traffic data is classified into traffic intervals. The content of traffic interval classification is as follows: define abnormal traffic intervals, suspected abnormal traffic intervals, and normal traffic intervals, and mark them as Ω respectively. 1 ,Ω 2 and Ω 3 , the flow value of several real-time segment flows is recorded as L;
[0065] L∈Ω 1 All real-time segment traffic is summarized as abnormal data 2;
[0066] L∈Ω 2 All real-time segment traffic is summarized as suspected abnormal data 2;
[0067] L∈Ω 3 All real-time segment traffic is summarized as normal data 2;
[0068] The network session data is classified into session intervals. The content of session interval classification is as follows: define abnormal session intervals, suspected abnormal session intervals, and normal session intervals, and mark them as Δ 1 , Δ 2and Δ 3 , the session duration corresponding to several session records is recorded as T 会话 ;
[0069] T 会话 ∈Δ 1 All session records are summarized as abnormal data 3;
[0070] T 会话 ∈Δ 2 All the session records are summarized as suspected abnormal data three;
[0071] T 会话 ∈Δ 3 All session records are summarized as normal data three;
[0072] The interval data information set includes a first interval information set, a second interval information set and a third interval information set. Abnormal data one, abnormal data two and abnormal data three are combined as the first interval information set, suspected abnormal data one, suspected abnormal data two and suspected abnormal data three are combined as the second interval information set, and normal data one, normal data two and normal data three are combined as the third interval information set.
[0073] It should be further explained that, in the specific implementation process, the process of extracting the characteristic parameter information corresponding to each interval data information set includes:
[0074] Set the feature analysis program, set the key item matching period and information extraction period corresponding to the feature analysis program, and record them as T 匹配 and T 提取 , there is T 匹配 =[t 1 , t 1 `], T 提取 =[t 2 , t 2 `], where t 1 and t 1 ` are the start time and end time of the key item matching period, t 2 is the starting time point of the information extraction period, t 2 ` is the end time point of the information extraction period;
[0075] If the current time is in the key item matching period, the third interval information set is first input into the feature analysis program, and the feature analysis program predefines a number of information contents corresponding to normal information and abnormal information, and then the feature analysis program analyzes the third interval information set and splits the third interval information set into a number of normal information representation segments, and then the first interval information set is input into the feature analysis program, and then the feature analysis program analyzes the first interval information set and splits the first interval information set into a number of abnormal information representation segments;
[0076] Obtaining timestamps corresponding to a plurality of normal information representation segments and abnormal information representation segments, and jointly matching the normal information representation segments and the abnormal information representation segments at the same timestamp into a key item, thereby generating a plurality of key items;
[0077] During the information extraction period, the cosine similarity coefficient corresponding to each key item is obtained by the feature analysis program and recorded as ,have , where i represents the feature vector generated after the normal information representation fragment in each key item is vectorized, j represents the feature vector generated after the abnormal information representation fragment in each key item is vectorized, ||i|| is the modulus length of feature vector i, ||j|| is the modulus length of feature vector j, and i·j represents the vector product of feature vectors i and j. represents the vector angle between eigenvectors i and j;
[0078] The second interval information set is split into sub-information sets corresponding to different timestamps, and the cosine similarity corresponding to each sub-information set is calculated and recorded as ,have , where r represents the feature vector generated after each sub-information set is vectorized, ||r|| is the modulus length of the feature vector r, represents the vector angle between eigenvectors i and r, i·r represents the vector product of eigenvectors i and r;
[0079] Satisfy all ≥ The corresponding sub-information sets are classified as abnormal feature parameters, and all those that meet < The corresponding sub-information set is classified as a normal feature parameter, all abnormal information representation fragments are marked as abnormal feature parameters, and all normal information representation fragments are marked as normal feature parameters.
[0080] It should be further explained that, in the specific implementation process, the process of analyzing the characteristic parameter information corresponding to each interval data information set and then locating the interval data information set that affects the network security situation includes:
[0081] When the characteristic parameter information of all interval data information sets has been extracted, the characteristic parameter information corresponding to each interval data information set is analyzed in turn. If the interval data information set only includes normal characteristic parameters, the corresponding interval data information set is located as an interval data information set that has no impact on the network security situation. If the interval data information set only includes abnormal characteristic parameters, or the interval data information set includes both normal characteristic parameters and abnormal characteristic parameters, the corresponding interval data information set is located as an interval data information set that affects the network security situation.
[0082] It should be further explained that, in the specific implementation process, the process of locating the abnormal network behavior corresponding to the interval data information set that affects the network security situation through situation awareness and generating a situation report corresponding to the abnormal network behavior includes:
[0083] Setting a situation awareness library, wherein the situation awareness library stores a number of historical abnormal network behaviors that affect the network security situation, each historical abnormal network behavior is associated with a corresponding abnormal document, and the abnormal document records a number of abnormal node words and sentences;
[0084] By using big data and machine learning technology, a corresponding situation awareness bag-of-words model is established for the interval data information set that affects the network security situation. The situation awareness bag-of-words model is used to perform situation awareness on the interval data information set that currently affects the network security situation, and then several situation awareness phrases corresponding to the interval data information set are extracted.
[0085] Input all interval data information sets that affect the network security situation and several situation awareness phrases corresponding to each interval data information set into the situation awareness library, and then obtain the matching degree between the interval data information and each historical abnormal network behavior, and take the historical abnormal network behaviors with the top three matching degree values as the abnormal network behaviors corresponding to the current interval data information set;
[0086] And obtain the behavioral details information of all abnormal network behaviors corresponding to the current interval data information set, enter the behavioral details information corresponding to each abnormal network behavior into a preset blank report form, and then generate a situation report corresponding to each abnormal network behavior, and send the situation report to the cloud platform for storage.
[0087] It should be further explained that, in the specific implementation process, the process of obtaining the situation report corresponding to each abnormal behavior and executing corresponding security response measures according to different situation reports includes:
[0088] Define several authorized users of the cloud platform and define a unique authorization ID for each authorized user. When a user accesses the cloud platform, determine whether the user currently accessing the platform has an authorization ID.
[0089] If yes, it is further determined whether the authorization identifier is the defined authorization identifier. If yes, the corresponding user is recorded as an authorized user, and a situation report corresponding to each abnormal behavior is obtained from the cloud platform. If no, the current user is prohibited from operating the cloud platform.
[0090] If not, the current user is directly prohibited from operating the cloud platform;
[0091] Execute corresponding security response measures according to different situation reports, wherein the situation reports include flow situation reports, interference situation reports and intrusion situation reports, and the security response measures include flow control measures, information screening measures and vulnerability patching measures;
[0092] When the situation report is a flow situation report, the corresponding security response measures to be executed are flow control measures. The content of the flow control measures is: setting a flow interception window, obtaining real-time network flow, and judging whether the real-time network flow is within the preset safe flow value range. If not, flow control is performed on the real-time network flow through the flow interception window, so as to make the real-time network flow within the safe flow value range. If yes, no operation is performed.
[0093] Among them, when the value of real-time network traffic is higher than the maximum value corresponding to the safe traffic value range, the traffic interception window is reduced; when the value of real-time network traffic is higher than the maximum value corresponding to the safe traffic value range, the traffic interception window is reduced.
[0094] When the situation report is an interference situation report, the corresponding security response measures to be executed are information screening measures, and the content of the information screening measures is: setting a standard information table, the standard information table records a number of network standard words corresponding to the network security state, obtaining the corresponding network information under the current network, and disassembling it into a number of network information words, filtering the network information words that do not conform to the network standard words as interference information, and eliminating all interference information;
[0095] When the situation report is an intrusion situation report, the corresponding security response measures to be executed are vulnerability patching measures, and the contents of the vulnerability patching measures are: locating all network vulnerabilities corresponding to the current network, and obtaining vulnerability details information corresponding to all network vulnerabilities, the vulnerability details information including vulnerability type, vulnerability location and vulnerability size, setting a patch library, the patch library storing a number of patch files for repairing network vulnerabilities, inputting the vulnerability details information of all network vulnerabilities corresponding to the current network into the patch library, and then matching a number of corresponding patch files, and repairing all network vulnerabilities through the several patch files;
[0096] Among them, the vulnerability details information corresponding to each network vulnerability is matched with the patch file in the patch library through a string similarity algorithm. Each vulnerability detail information is matched to the patch file in the patch library with the highest similarity as the patch file for repairing the network vulnerability corresponding to the current vulnerability detail information, thereby completing the repair of the network vulnerability.
[0097] The present invention also provides a network security situation awareness method of a network security situation awareness system, comprising the following steps:
[0098] Step S1, collecting network data information in real time, and restricting the collection environment of the network data information securely;
[0099] Step S2, classifying the collected network data information into intervals, thereby generating different interval data information sets, and extracting characteristic parameter information corresponding to each interval data information set;
[0100] Step S3, analyzing the characteristic parameter information corresponding to each interval data information set, and then locating the interval data information set that affects the network security situation, and warning the corresponding abnormal network behavior through situation awareness, and generating a situation report corresponding to the abnormal network behavior;
[0101] Step S4, obtaining a situation report corresponding to each abnormal network behavior, and executing corresponding security countermeasures according to different situation reports.
[0102] The above embodiments are only used to illustrate the technical method of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical method of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical method of the present invention.
Claims
1. A network security situation awareness system, including a cloud platform, characterized in that: The cloud platform is communicatively connected with a data acquisition module, a data processing module, a situation awareness module and a countermeasures module; The data collection module is used to collect network data information in real time and to safely limit the collection environment of the network data information; The data processing module is used to classify the collected network data information into intervals, thereby generating different interval data information sets, and extracting characteristic parameter information corresponding to each interval data information set; The situation awareness module is used to analyze the characteristic parameter information corresponding to each interval data information set, thereby locating the interval data information set that affects the network security situation, and warning the corresponding abnormal network behavior through situation awareness, and generating a situation report corresponding to the abnormal network behavior; The countermeasure module is used to obtain the situation report corresponding to each abnormal network behavior, and execute corresponding security countermeasures according to different situation reports; The process of classifying network data information into intervals and generating different interval data information sets includes: The network data information includes network log data, network flow data and network session data. The network log data includes a number of log operation records. The network flow data includes a number of real-time segment flows corresponding to a number of time periods. The network session data includes a number of session records corresponding to the session duration. The interval classification includes log interval classification, flow interval classification and session interval classification. The network log data is classified into log intervals, and then a number of log operation records are marked as corresponding legal data one, suspected abnormal data one and abnormal data one; the network flow data is classified into flow intervals, and then the real-time segment flows corresponding to a number of time periods are summarized into corresponding abnormal data two, suspected abnormal data two and normal data two; the network session data is classified into session intervals, and then the session records corresponding to a number of session durations are summarized into corresponding abnormal data three, suspected abnormal data three and normal data three; The interval data information set includes a first interval information set, a second interval information set and a third interval information set, abnormal data 1, abnormal data 2 and abnormal data 3 are combined as the first interval information set, suspected abnormal data 1, suspected abnormal data 2 and suspected abnormal data 3 are combined as the second interval information set, and normal data 1, normal data 2 and normal data 3 are combined as the third interval information set; The process of extracting the characteristic parameter information corresponding to each interval data information set includes: A feature analysis program and a key item matching period and an information extraction period corresponding to the feature analysis program are set. If the current time is in the key item matching period, the first interval information set and the third interval information set are input into the feature analysis program, and then the first interval information set is split into a plurality of abnormal information representation segments after analysis by the feature analysis program, and the third interval information set is split into a plurality of normal information representation segments, and the timestamps corresponding to the plurality of normal information representation segments and the abnormal information representation segments are obtained, and the normal information representation segments and the abnormal information representation segments at the same timestamp are matched together as a key item, thereby generating a plurality of key items; During the information extraction period, the cosine similarity coefficient corresponding to each key item is obtained by the feature analysis program and recorded as , split the second interval information set into sub-information sets corresponding to different timestamps, calculate the cosine similarity corresponding to each sub-information set, and record it as , all satisfied ≥ The corresponding sub-information sets are classified as abnormal feature parameters, and all those that meet < The corresponding sub-information set is classified as a normal feature parameter, all abnormal information representation fragments are marked as abnormal feature parameters, and all normal information representation fragments are marked as normal feature parameters.
2. A network security situation awareness system according to claim 1, characterized in that: The process of collecting network data information in real time and restricting the collection environment securely includes: The network security related personnel shall edit the requirement document, which shall record all the data types for network data information collection, the different data sources corresponding to each data type, and the data magnitude of network data information of different data types; The programmer edits the script file for collecting network data information, and encodes the requirement document into the script file, which then serves as the collection template data of the script file. The collection template data includes a number of web page addresses, a number of web page contents, and a number of types of crawling parameter sets, wherein different web page addresses correspond to different data sources of network data information, and different web page contents correspond to different data types of network data information. According to different data magnitudes, a crawling parameter set corresponding to each data magnitude is generated, and the crawling parameter set includes crawling frequency and crawling depth; Then, the script file uses a number of web page addresses as a number of traversal starting points for collecting network data information, and starts to collect web page contents corresponding to a number of different web page addresses in real time and synchronously from the number of traversal starting points, and uses the page end character set corresponding to each web page content as the traversal end point. When the web page contents corresponding to a number of web page addresses are all traversed, it indicates that the operation of collecting network data information is completed. When the script file collects the network data information of the web page contents corresponding to each web page address, it collects according to the crawling frequency and crawling depth corresponding to each web page content.
3. A network security situation awareness system according to claim 2, characterized in that: The process of analyzing the characteristic parameter information corresponding to each interval data information set and then locating the interval data information set that affects the network security situation includes: When the characteristic parameter information of all interval data information sets has been extracted, the characteristic parameter information corresponding to each interval data information set is analyzed in turn. If the interval data information set only includes normal characteristic parameters, the corresponding interval data information set is located as an interval data information set that has no impact on the network security situation. If the interval data information set only includes abnormal characteristic parameters, or the interval data information set includes both normal characteristic parameters and abnormal characteristic parameters, the corresponding interval data information set is located as an interval data information set that affects the network security situation.
4. A network security situation awareness system according to claim 3, characterized in that: The process of locating the abnormal network behavior corresponding to the interval data information set that affects the network security situation through situation awareness and generating a situation report corresponding to the abnormal network behavior includes: Setting up a situation awareness library, which stores a number of historical abnormal network behaviors that affect the network security situation, each of which is associated with a corresponding abnormal document, and the abnormal document records a number of abnormal node words and sentences; A corresponding situation awareness bag-of-words model is established for the interval data information set that affects the network security situation. The situation awareness bag-of-words model is used to perform situation awareness on the interval data information set that currently affects the network security situation, and then several situation awareness phrases corresponding to the interval data information set are extracted. Input all interval data information sets that affect the network security situation and several situation awareness phrases corresponding to each interval data information set into the situation awareness library, and then obtain the matching degree between the interval data information and each historical abnormal network behavior, and take the historical abnormal network behaviors with the top three matching degree values as the abnormal network behaviors corresponding to the current interval data information set; Obtain the behavioral details of all abnormal network behaviors corresponding to the current interval data information set, and enter them into the preset blank report form, and then generate a situation report corresponding to each abnormal network behavior, and send the situation report to the cloud platform for storage.
5. A network security situation awareness system according to claim 4, characterized in that: The process of obtaining a situation report corresponding to each abnormal behavior and executing corresponding security countermeasures according to different situation reports includes: Define several authorized users of the cloud platform and define a unique authorization ID for each authorized user. When a user accesses the cloud platform, determine whether the user currently accessing the platform has an authorization ID. If yes, it is further determined whether the authorization identifier is the defined authorization identifier. If yes, the corresponding user is recorded as an authorized user, and a situation report corresponding to each abnormal behavior is obtained from the cloud platform. If no, the current user is prohibited from operating the cloud platform. If not, the current user is directly prohibited from operating the cloud platform; Execute corresponding security response measures according to different situation reports. Situation reports include traffic situation reports, interference situation reports and intrusion situation reports. Security response measures include traffic control measures, information screening measures and vulnerability patching measures. When the situation report is a traffic situation report, the corresponding security response measures to be implemented are traffic control measures; When the situation report is an interference situation report, the security response measures to be performed are information screening measures; When the situation report is an intrusion situation report, the corresponding security response measures to be performed are vulnerability patching measures.
6. A network security situation awareness method of a network security situation awareness system according to any one of claims 1 to 5, characterized in that: The following steps are involved: Step S1, collecting network data information in real time, and restricting the collection environment of the network data information securely; Step S2, classifying the collected network data information into intervals, thereby generating different interval data information sets, and extracting characteristic parameter information corresponding to each interval data information set; Step S3, analyzing the characteristic parameter information corresponding to each interval data information set, thereby locating the interval data information set that affects the network security situation, and warning the corresponding abnormal network behavior through situation awareness, and generating a situation report corresponding to the abnormal network behavior; Step S4, obtaining a situation report corresponding to each abnormal network behavior, and executing corresponding security countermeasures according to different situation reports.
