Network security situation discrimination system and method based on artificial intelligence
Through the artificial intelligence-based network security situation identification system, multi-source data and feature extraction technology are used to build a network security situation identification model, which solves the shortcomings of traditional systems in adapting to dynamic threat environments and achieves efficient and accurate network threat detection and response.
Patent Information
- Application Number
- CN202411088078.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-10-11
AI Technical Summary
Traditional network security systems rely on predefined rule sets and signature libraries, which are difficult to adapt to the dynamically changing threat environment, resulting in inefficient security event detection and response. The lack of effective automation and intelligent tools results in long response times to security events.
Adopt a network security situation identification system based on artificial intelligence, including a data collection and processing module, a feature selection module, a feature extraction module, a model building module, an evaluation module and a situation identification module. Through multi-source network data collection, feature extraction and model construction, it automatically Screen key features, quantify environmental impact factors, build a multi-dimensional feature database, train network security situation identification models, determine the situation of network entities and evaluate model performance.
It improves model training efficiency and prediction accuracy, enhances the ability to identify high-risk network behaviors, ensures that the model has good generalization ability and robustness, provides accurate and timely threat detection and response mechanisms, and improves the level of network security protection. .
Smart Images

Figure CN118764302A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of network security, and in particular relates to a network security situation identification system and method based on artificial intelligence. Background Art
[0002] Cybersecurity refers to a set of technologies and practices that protect computer systems, networks, and the data they store, transmit, and process from unauthorized access, attack, destruction, disclosure, tampering, or abuse. Automated and intelligent tools can quickly respond to emerging threats and reduce the workload of security teams. AI technology can be used to predict potential security threats and take measures in advance to prevent attacks.
[0003] Limitations of existing technologies: Traditional network security systems rely on predefined rule sets and signature libraries, which are difficult to adapt to the dynamically changing threat environment; the detection and response of security incidents often rely on manual analysis, which is inefficient and prone to false positives or omissions; the lack of effective automation and intelligent tools leads to long response times for security incidents. Summary of the invention
[0004] In order to overcome the shortcomings and deficiencies of the above-mentioned prior art, the first purpose of the present invention is to provide a network security situation identification system based on artificial intelligence; the second purpose of the present invention is to provide a network security situation identification method based on artificial intelligence.
[0005] The first object of the present invention adopts the following technical solution:
[0006] The network security situation identification system based on artificial intelligence includes a data acquisition and processing module, a feature selection module, a feature extraction module, a model construction module, an evaluation module, and a situation identification module; the data acquisition and processing module is used to collect multi-source network data and perform preprocessing; the feature selection module is used to sort and select features according to correlation values; the feature extraction module is used to extract the top k features with the highest correlation values and generate a key feature set; the model construction module is used to build a network security situation identification model; the evaluation module continuously adjusts and optimizes the model by evaluating the performance of the model; the situation identification module outputs the situation identification result of the network entity according to the network security situation identification model to determine whether there is potential threat behavior, and the output results include normal, suspicious or attacked status.
[0007] The second object of the present invention adopts the following technical solution:
[0008] The network security situation identification method based on artificial intelligence has the following process:
[0009] S1. Collect multi-source network data, including traffic logs, system events, and user behavior records. The network data collection time is continuous, and the time interval is greater than or equal to one day to cover the full cycle changes of network activities.
[0010] S2. Preprocess the collected network data, including cleaning, deduplication and formatting; use regular expressions to filter invalid logs, and use outlier detection algorithms to remove noise data;
[0011] S3, perform feature processing on the preprocessed network data, calculate the correlation value between the feature and the target variable, and perform feature selection according to the correlation value size;
[0012] S4. Collect environmental impact factors of network security situation, including system vulnerability level factors, network topology factors, and external threat intelligence level factors, and quantify and encode environmental impact factors;
[0013] S5. Based on the key feature set and the encoded environmental impact factors, a multi-dimensional feature database of network security situation is constructed;
[0014] S6. Use the data in the network security situation multi-dimensional feature database to train a network security situation identification model. The model is used to identify unknown network security threat patterns. The network security situation identification model includes a feature extraction module and a network situation identification module.
[0015] Preferably, the feature selection is as follows:
[0016] For each feature X i and the target variable Y, and calculate the correlation value I(X i ,Y);
[0017]
[0018] Among them, p(x i ,y) is the feature X i The probability that the target variable Y takes a certain value m at the same time; p(x i ), p(y) are the features X i and the probability that the target variable Y takes a certain value m;
[0019] The features are sorted according to the calculated correlation values. The higher the correlation value, the stronger the correlation between the feature and its corresponding target variable.
[0020] The most important features are selected based on the correlation value, and the top k features with the highest correlation values are extracted to generate a key feature set.
[0021] Preferably, the process of quantifying and encoding the environmental impact factors is as follows:
[0022] S41, Quantitative coding system vulnerability level factor;
[0023] Use CVSS to quantify vulnerability indicators, including basic indicators, temporary indicators, and environmental indicators; when the vulnerability indicator score is between 0 and 3.9, it is judged as a low-risk vulnerability; when the score is between 4.0 and 6.9, it is judged as a medium-risk vulnerability; when the score is between 7.0 and 8.9, it is judged as a high-risk vulnerability; when the score is between 9.0 and 10.0, it is judged as a severe vulnerability;
[0024] S42, quantized coding network topology factor;
[0025] Quantify the network topology, including the number of nodes, connection density, number of key nodes, and the presence or absence of redundant paths;
[0026] Set a weight value q for different network structure features i , and then calculate a comprehensive score based on the features. For the number of nodes, set the following encoding:
[0027] Small networks with less than 50 nodes: code 1; medium-sized networks with 50 to 200 nodes: code 2; large networks with more than 200 nodes: code 3;
[0028] S43, quantified coding external threat intelligence level factor;
[0029] Quantify based on information provided by threat intelligence sources, including the frequency of threat activities, attacker capabilities, the likelihood of vulnerability exploitation, and the types of known attacks;
[0030] Quantify the external threat level. When the activity frequency f is lower than the set threshold t1 or the attacker's technical level is at the set level 3, it is determined to be a low-level threat; when the activity frequency f is between the set thresholds t2 and t3 and the attacker's technical level is at the set level 2, it is determined to be a medium-level threat; when the activity frequency f is greater than the set threshold t4 and the attacker's technical level is at the level 1, it is determined to be a high-level threat;
[0031] S44. Substitute the system vulnerability level factor, network topology factor, and external threat intelligence level factor into the environmental impact factor score calculation formula to obtain the network environment impact factor security situation score. The calculation formula is as follows:
[0032] S = w1Y1+w2Y2+w3Y3;
[0033] Among them, S is the security situation score of the network environment influencing factor; Y1, Y2, and Y3 are the system vulnerability level factor, network topology structure factor, and external threat intelligence level factor respectively; w1, w2, and w3 are the weight coefficients of the system vulnerability level factor, network topology structure factor, and external threat intelligence level factor respectively, and w1+w2+w3=1.
[0034] Preferably, S6 is as follows:
[0035] S61. Extract a group of samples representing high-risk network behaviors from the network security situation multi-dimensional feature database, and mark them as selected target samples; extract samples with similar network behaviors and the same labels as the target samples, and mark them as positive samples; extract samples with opposite behaviors and different labels as the target samples, and mark them as negative samples; then input the behavior feature encodings of the target samples, negative samples, and positive samples into the feature extraction module to obtain corresponding behavior feature representations, which are target sample features, negative sample features, and positive sample features, respectively;
[0036] S62, obtaining a training data set;
[0037] A training data set is constructed based on target sample features, positive sample features, negative sample features, and sample corresponding labels; each sample feature involves a behavioral feature encoding of network behavior, which describes the activity pattern of a network entity within a specified time period, including access to a specific IP address, port scanning, and data packet type. The label is used to indicate whether the network entity exhibits a preset threat behavior, which indicates a network behavior related to a known network security attack pattern;
[0038] S63, inputting the sample features output by the feature extraction module into the network situation identification module to obtain the situation identification result corresponding to each sample, that is, determining whether the network behavior represented by the sample constitutes a threat;
[0039] S64, evaluate model performance;
[0040] S65. Obtain a real-time training data set, including real-time network traffic logs, system event records, user behavior logs, and network behavior data covering normal activities and known attack activities; divide the entire observation period into q time windows according to a fixed frequency f, encode the behavior activities of each network entity in each time window, and form a behavior feature code;
[0041] S66, Behavior feature coding: If the duration of a network entity's behavior exceeds a set threshold within a certain time window, the behavior in that window is coded as a corresponding threat behavior type code;
[0042] S67, behavior duration coding: In addition to the behavior type coding, each sample information also includes behavior duration coding, which records the total duration of various behaviors of the network entity within a preset period and encodes these durations;
[0043] S68. By obtaining the behavioral feature information of the target network entity, including its behavioral coding, and inputting it into the trained final network security situation identification model, the model will output the situation identification result of the network entity to determine whether it has potential threatening behavior, so as to timely discover and respond to network security risks. The model outputs the network security situation assessment result, including normal, suspicious or attacked status.
[0044] Preferably, the model performance evaluation process is as follows:
[0045] S641, target sample prediction: input the target sample features into the network situation identification module to determine whether the network behavior represented by the target sample constitutes a threat;
[0046] Predicting the target sample is used to verify the network security situation model's ability to identify the network behavior represented by the target sample;
[0047] S642, positive sample prediction: input the positive sample features into the network situation discrimination module, determine the network security situation discrimination model for the network behavior represented by the target sample to identify the consistency, the positive sample is predicted to verify whether the network security situation discrimination model can correctly identify the behavior similar to the target sample as the same category;
[0048] S643, negative sample prediction: inputting the negative sample features into the network situation discrimination module, judging whether the network security situation discrimination model can distinguish network behaviors of different categories from those represented by the target sample, and predicting the negative samples to verify whether the network security situation discrimination model can distinguish network behaviors of different categories, especially when facing samples with behaviors opposite to those of the target samples;
[0049] By predicting the target sample, positive sample and negative sample respectively, the following prediction results are output:
[0050] Target sample prediction: ['severe']
[0051] Positive sample prediction: ['high' high']
[0052] Negative sample prediction: ['low"low"medium"medium']
[0053] When the target sample is correctly predicted as “severe”, it indicates that the target sample represents a high-risk network behavior;
[0054] When a positive sample is predicted as “high”, it indicates that the network security situation discrimination model can identify high-risk network behaviors similar to the target sample;
[0055] When the negative sample is predicted as "low" or "medium", it indicates that the network security situation discrimination model can distinguish different types of network behaviors, especially can identify low-risk or medium-risk behaviors that are different from the target sample behaviors;
[0056] Calculate the target sample performance indicator and mark the number of samples correctly predicted as "severe" in the target sample as TP m ; The number of samples correctly predicted as “non-severe” is marked as TN m ; The number of samples that are incorrectly predicted as "severe" is marked as FP m ; The number of samples that are incorrectly predicted as “non-severe” is marked as FN m ; Calculate the target sample recall rate, precision rate, and F1 score through the formula;
[0057] When the target sample index value is greater than or equal to the corresponding set threshold, it indicates that the model can identify high-risk behaviors; when the positive sample index value is greater than or equal to the corresponding set threshold, it indicates that the model can identify high-risk behaviors similar to the target sample; when the negative sample index value is greater than or equal to the corresponding set threshold, it indicates that the model can distinguish different types of behaviors, especially low-risk or medium-risk behaviors;
[0058] By predicting target samples, positive samples, and negative samples respectively, the performance of the network security situation model is evaluated from multiple perspectives;
[0059] When any of the positive sample index value, the negative sample index value, and the negative sample index value deviates from the corresponding set threshold, it indicates that the model needs to adjust the parameters to improve the accuracy of the model;
[0060] The model adjustment process is repeated until the model reaches the predetermined convergence standard. The model at this time is the final network security situation judgment model.
[0061] Preferably, calculating the target sample index performance also includes
[0062] Target sample recall rate R m The calculation formula is as follows:
[0063] Target sample precision P m The calculation formula is as follows:
[0064] Target sample F1 score F1 m The calculation formula is as follows:
[0065] Evaluate the performance of the positive sample indicator and mark the number of samples correctly predicted as "high" in the positive sample as TPk ; The number of samples that are incorrectly predicted as "non-high" is marked as FP k ; Calculate the recall rate, precision rate and F1 score of positive samples through the formula;
[0066] Positive sample recall R k The calculation formula is as follows:
[0067] The accuracy of the confirmed sample P k The calculation formula is as follows:
[0068] Positive sample F1 score F1 k The calculation formula is as follows:
[0069] Evaluate the performance of the negative sample indicator and mark the number of samples correctly predicted as "low" or "medium" in the negative sample as TP f ; The number of samples that are incorrectly predicted as "high" is marked as FP f ; The number of negative samples that are incorrectly predicted as “severe” is marked as FN f ; Calculate the recall rate, precision rate and F1 score of negative samples through the formula;
[0070] Negative sample recall R f The calculation formula is as follows:
[0071] Negative sample precision P f The calculation formula is as follows:
[0072] F1 score of negative samples f The calculation formula is as follows:
[0073] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:
[0074] 1. The present invention automatically screens out the most representative features by calculating the correlation between features and target variables, which helps to reduce the time and resource consumption of model training and also improves the prediction accuracy of the model.
[0075] 2. The present invention quantifies and encodes environmental influencing factors, including system vulnerability level, network topology, external threat intelligence level, etc., so that these complex information can be effectively utilized by the model, thereby more accurately evaluating the network security situation.
[0076] 3. The present invention trains the model by comparing the target samples, positive samples, and negative samples. This method can improve the model's ability to identify high-risk network behaviors. In the model evaluation process, not only the prediction accuracy of the target samples is considered, but also the model's ability to identify similar samples and samples of different categories is evaluated, ensuring that the model has good generalization and robustness.
[0077] 4. Evaluate model performance by calculating indicators such as recall rate, precision rate and F1 score, and adjust model parameters based on the evaluation results to continuously improve the accuracy and reliability of the model. BRIEF DESCRIPTION OF THE DRAWINGS
[0078] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be 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.
[0079] Figure 1 A module diagram of the network security situation identification system based on artificial intelligence of the present invention is shown.
[0080] Figure 2 A flow chart of the network security situation identification method based on artificial intelligence of the present invention is shown.
[0081] Figure 3 A flow chart of the present invention for evaluating model performance is shown. DETAILED DESCRIPTION
[0082] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0083] Example 1
[0084] See also Figure 1 As shown, the artificial intelligence-based network security situation identification system of this embodiment includes a data acquisition and processing module, a feature selection module, a feature extraction module, a model building module, an evaluation module, and a situation identification module.
[0085] Data acquisition and processing module: used to collect multi-source network data and perform pre-processing.
[0086] Feature selection module: used to sort and select features according to their relevant values.
[0087] Feature extraction module: used to extract the top k features with the highest correlation values and generate a key feature set.
[0088] Model building module: used to build a network security situation identification model.
[0089] Evaluation module: Continuously adjust and optimize the model by evaluating its performance.
[0090] Situation identification module: Outputs the situation identification results of network entities according to the network security situation identification model to determine whether there is potential threat behavior. The output results include normal, suspicious or attacked status.
[0091] The beneficial effects of this embodiment are as follows: this embodiment can effectively improve the level of network security protection through the network security situation identification system, provide accurate and timely threat detection and response mechanism, and improve the detection accuracy of network threats by combining efficient model training methods.
[0092] Example 2
[0093] See also Figure 2 As shown, the network security situation identification method based on artificial intelligence in this embodiment has the following process:
[0094] The build steps include:
[0095] S1. Collect multi-source network data, including but not limited to traffic logs, system events, and user behavior records; the network data collection time is continuous, and the time interval is greater than or equal to one day to cover the full cycle changes of network activities;
[0096] S2. Preprocess the collected network data, including cleaning, deduplication and formatting; use regular expressions to filter invalid logs, and use outlier detection algorithms to remove noise data.
[0097] S3. Extract features from the preprocessed network data, calculate the correlation between the features and the target variable, and select features based on the order of the correlation values:
[0098] For each feature X i and the target variable Y, and calculate the correlation value I(X i ,Y)
[0099]
[0100] Among them, p(x i ,y) is the feature X i The probability that the target variable Y takes a certain value m at the same time; p(x i ), p(y) are the features X iand the probability that the target variable Y takes a certain value m.
[0101] The features are sorted according to the calculated correlation values. The higher the correlation value, the stronger the correlation between the feature and its corresponding target variable.
[0102] The most important features are selected based on the correlation value, and the top k features with the highest correlation values are extracted to generate a key feature set.
[0103] S4. Collect environmental impact factors of network security situation, including system vulnerability level factors, network topology factors, and external threat intelligence level factors, and quantify and encode the environmental impact factors as follows:
[0104] S41. Quantitative coding system vulnerability level factor.
[0105] Use CVSS to quantify vulnerability indicators, including basic indicators, temporary indicators, and environmental indicators; when the vulnerability indicator score is between 0 and 3.9, it is judged as a low-risk vulnerability; when the score is between 4.0 and 6.9, it is judged as a medium-risk vulnerability; when the score is between 7.0 and 8.9, it is judged as a high-risk vulnerability; when the score is between 9.0 and 10.0, it is judged as a severe vulnerability;
[0106] S42. Quantitative coding network topology factor.
[0107] Quantify the network topology, including the number of nodes, connection density, number of key nodes, and the presence or absence of redundant paths;
[0108] Set a weight value q for different network structure features i , and then calculate a comprehensive score based on the features. For example, for the number of nodes, set the following encoding:
[0109] Small networks with less than 50 nodes: Encoding 1
[0110] Medium-sized network of 50 to 200 nodes: Code 2
[0111] Large networks with more than 200 nodes: Coding 3
[0112] S43, Quantitatively coded external threat intelligence level factor
[0113] Quantify based on information provided by threat intelligence sources, including the frequency of threat activities, attacker capabilities, the likelihood of vulnerability exploitation, and the types of known attacks;
[0114] Quantify the external threat level. When the activity frequency f is lower than the set threshold t1 or the attacker's technical level is at the set level 3, it is determined to be a low-level threat; when the activity frequency f is between the set thresholds t2 and t3 and the attacker's technical level is at the set level 2, it is determined to be a medium-level threat; when the activity frequency f is greater than the set threshold t4 and the attacker's technical level is at the level 1, it is determined to be a high-level threat;
[0115] S44. Substitute the system vulnerability level factor, network topology factor, and external threat intelligence level factor into the environmental impact factor score calculation formula to obtain the network environment impact factor security situation score. The calculation formula is as follows:
[0116] S = w1Y1+w2Y2+w3Y3;
[0117] Among them, S is the security situation score of the network environment influencing factor; Y1, Y2, and Y3 are the system vulnerability level factor, network topology structure factor, and external threat intelligence level factor respectively; w1, w2, and w3 are the weight coefficients of the system vulnerability level factor, network topology structure factor, and external threat intelligence level factor respectively, and w1+w2+w3=1.
[0118] S5. Based on the key feature set and the encoded environmental impact factors, a multi-dimensional feature database of network security situation is constructed;
[0119] S6. Use the data in the network security situation multi-dimensional feature database to train a network security situation discrimination model, which is used to identify unknown network security threat patterns.
[0120] The network security situation discrimination model includes a feature extraction module and a network situation discrimination module. The network security situation discrimination model workflow includes the following steps:
[0121] S61. Extract a group of samples representing high-risk network behaviors from the multi-dimensional feature database of network security situation, and mark them as target samples; extract samples with similar network behaviors and the same labels as the target samples, and mark them as positive samples; extract samples with opposite behaviors and different labels from the target samples, and mark them as negative samples; then encode the behavior features of the target samples, negative samples, and positive samples and input them into the feature extraction module to obtain the corresponding behavior feature representations, which are the target sample features, negative sample features, and positive sample features, respectively.
[0122] S62: Obtain a training data set.
[0123] A training data set is constructed based on target sample features, positive sample features, negative sample features, and sample corresponding labels.
[0124] Each sample feature involves behavioral feature encoding of network behavior. These codes describe the activity patterns of network entities within a specified time period, including access to specific IP addresses, port scans, and packet types. Labels are used to indicate whether the network entity exhibits preset threat behaviors. Preset threat behaviors represent network behaviors related to known network security attack patterns.
[0125] S63. Input the sample features output by the feature extraction module into the network situation identification module to obtain the situation identification result corresponding to each sample, that is, to determine whether the network behavior represented by the sample constitutes a threat.
[0126] The specific process is as follows:
[0127] S631. Target sample prediction.
[0128] Input the target sample features into the network situation identification module to determine whether the network behavior represented by the target sample poses a threat;
[0129] Predictions on target samples are used to verify the network security situation model's ability to identify network behaviors represented by target samples.
[0130] S632. Affirm sample prediction.
[0131] The features of the positive samples are input into the network situation discrimination module to determine the consistency of the network behavior represented by the network situation discrimination model similar to the target sample. The positive samples are predicted to verify whether the network situation discrimination model can correctly identify the behavior similar to the target sample as the same category.
[0132] S633, negative sample prediction.
[0133] The negative sample features are input into the network situation discrimination module to determine whether the network security situation discrimination model can distinguish network behaviors of different categories from those represented by the target samples. The negative samples are predicted to verify whether the network security situation discrimination model can distinguish different categories of network behaviors, especially when faced with samples with behaviors opposite to those of the target samples.
[0134] By predicting the target sample, positive sample and negative sample respectively, the following prediction results are output:
[0135] Target sample prediction: ['severe']
[0136] Positive sample prediction: ['high' high']
[0137] Negative sample prediction: ['low"low"medium"medium']
[0138] When the target sample is correctly predicted as “severe”, it indicates that the target sample represents a high-risk network behavior.
[0139] When a positive sample is predicted as “high”, it indicates that the network security situation discrimination model is able to identify high-risk network behaviors similar to the target sample.
[0140] When the negative samples are predicted as “low” or “medium”, it indicates that the network security situation discrimination model can distinguish different categories of network behaviors, especially can identify low-risk or medium-risk behaviors that are different from the target sample behaviors.
[0141] S634. Evaluate model performance.
[0142] See also Figure 3 As shown in Figure 2, the target sample indicator performance is evaluated, and the number of samples correctly predicted as "severe" in the target sample is marked as TP. m ; The number of samples correctly predicted as “non-severe” is marked as TN m ; The number of samples that are incorrectly predicted as "severe" is marked as FP m ; The number of samples that are incorrectly predicted as “non-severe” is marked as FN m . Calculate the target sample recall rate, precision rate, and F1 score through the formula;
[0143] Target sample recall rate R m The calculation formula is as follows:
[0144] Target sample precision P m The calculation formula is as follows:
[0145] Target sample F1 score F1 m The calculation formula is as follows:
[0146] Evaluate the performance of the positive sample indicator and mark the number of samples correctly predicted as "high" in the positive sample as TP k ; The number of samples that are incorrectly predicted as "non-high" is marked as FP k . Calculate the recall rate, precision rate and F1 score of positive samples through the formula;
[0147] Positive sample recall R k The calculation formula is as follows:
[0148] The accuracy of the confirmed sample P k The calculation formula is as follows:
[0149] Positive sample F1 score F1k The calculation formula is as follows:
[0150] Evaluate the performance of the negative sample indicator and mark the number of samples correctly predicted as "low" or "medium" in the negative sample as TP f ; The number of samples that are incorrectly predicted as "high" is marked as FP f ; The number of negative samples that are incorrectly predicted as “severe” is marked as FN f . Calculate the recall rate, precision rate, and F1 score of negative samples through the formula;
[0151] Negative sample recall R f The calculation formula is as follows:
[0152] Negative sample precision P f The calculation formula is as follows:
[0153] F1 score of negative samples f The calculation formula is as follows:
[0154] When the target sample index value is greater than or equal to the corresponding set threshold, it indicates that the model can identify high-risk behaviors;
[0155] When the indicator value of the positive sample is greater than or equal to the corresponding set threshold, it indicates that the model can identify high-risk behaviors similar to the target sample;
[0156] When the negative sample indicator value is greater than or equal to the corresponding set threshold, it indicates that the model can distinguish different categories of behaviors, especially low-risk or medium-risk behaviors.
[0157] By predicting the target samples, positive samples and negative samples respectively, the performance of the network security situation model is evaluated from multiple perspectives.
[0158] When any of the positive sample indicator value, the negative sample indicator value, and the negative sample indicator value deviates from the corresponding set threshold, it indicates that the model needs to adjust parameters to improve the accuracy of the model.
[0159] The model adjustment process is repeated until the model reaches the predetermined convergence standard. The model at this time is the final network security situation judgment model.
[0160] S65. Obtain a real-time training data set, including real-time network traffic logs, system event records, user behavior logs, and network behavior data covering normal activities and known attack activities. Divide the entire observation period into q time windows at a fixed frequency f, encode the behavior activities of each network entity in each time window, and form a behavior feature code.
[0161] S66. Behavior feature coding: If the duration of a network entity's behavior in a certain time window exceeds a set threshold, the behavior in that window is coded as a corresponding threat behavior code.
[0162] S67, behavior duration coding: In addition to the behavior type coding, each sample information also includes a behavior duration coding, which records the total duration of various behaviors of the network entity within a preset period, and encodes these durations to further enrich the feature description of the sample.
[0163] S68. By obtaining the behavior feature information of the target network entity, including its behavior coding, and inputting it into the trained final network security situation identification model, the model will output the situation identification result of the network entity to determine whether it has potential threat behavior, so as to timely discover and respond to network security risks. The model outputs the network security situation assessment result, including normal, suspicious or attacked status.
[0164] The beneficial effects of this embodiment are: demonstrating how to apply the refined processing of user behavior analysis and the model training framework to the identification and prediction of network security situations, and significantly improving the accuracy and efficiency of the model in identifying complex network behavior patterns through behavioral feature encoding and time window division, combined with comparative training of positive and negative samples.
[0165] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. The network security situation identification system based on artificial intelligence is characterized by: It includes a data acquisition and processing module, a feature selection module, a feature extraction module, a model building module, an evaluation module, and a situation discrimination module; the data acquisition and processing module is used to collect multi-source network data and perform preprocessing; the feature selection module is used to sort and select features according to correlation values; the feature extraction module is used to extract the top k features with the highest correlation values and generate a key feature set; the model building module is used to build a network security situation discrimination model; the evaluation module continuously adjusts and optimizes the model by evaluating the performance of the model; the situation discrimination module outputs the situation discrimination result of the network entity according to the network security situation discrimination model to determine whether there is potential threat behavior, and the output results include normal, suspicious or attacked status.
2. A network security situation identification method based on artificial intelligence, characterized in that: Used to implement the network security situation identification system based on artificial intelligence as claimed in claim 1, the method process is as follows: S1. Collect multi-source network data, including traffic logs, system events, and user behavior records. The network data collection time is continuous, and the time interval is greater than or equal to one day to cover the full cycle changes of network activities. S2, preprocessing the collected network data, including cleaning, deduplication and formatting; Use regular expressions to filter invalid logs, and use outlier detection algorithms to remove noise data; S3. Perform feature processing on the preprocessed network data, calculate the correlation value between the feature and the target variable, and select features according to the size of the correlation value; S4. Collect environmental impact factors of network security situation, including system vulnerability level factors, network topology factors, and external threat intelligence level factors, and quantify and encode the environmental impact factors; S5. Based on the key feature set and the encoded environmental impact factors, build a multi-dimensional feature database of network security situation; S6. Use the data in the network security situation multi-dimensional feature database to train a network security situation identification model. The model is used to identify unknown network security threat patterns. The network security situation identification model includes a feature extraction module and a network situation identification module.
3. The network security situation identification method based on artificial intelligence according to claim 2 is characterized in that: The feature selection is as follows: For each feature X i and the target variable Y, and calculate the correlation value I(X i , Y); Among them, p(x i , y) is the feature X i The probability that the target variable Y takes a certain value m at the same time; p(x i ), p(y) are the features X i and the probability that the target variable Y takes a certain value m; sort the features according to the calculated correlation values, the higher the correlation value, the stronger the correlation between the feature and its corresponding target variable; select the most important features based on the correlation value, extract the top k features with the highest correlation values, and generate a key feature set.
4. The method for determining network security situation based on artificial intelligence according to claim 2 is characterized in that: The process of quantifying and coding the environmental impact factors is as follows: S41, quantitatively encode system vulnerability level factor; S42, quantitatively encode network topology factor; S43, quantitatively encode external threat intelligence level factor; S44, substitute system vulnerability level factor, network topology factor, and external threat intelligence level factor into the environmental impact factor score calculation formula to obtain the network environment impact factor security situation score. The calculation formula is as follows: S = w1Y1+w2Y2+w3Y3; Among them, S is the security situation score of the network environment influencing factor; Y1, Y2, and Y3 are the system vulnerability level factor, network topology structure factor, and external threat intelligence level factor respectively; W1, W2, and W3 are the weight coefficients of the system vulnerability level factor, network topology structure factor, and external threat intelligence level factor respectively, and w1+W2+W3=1.
5. The method for determining network security situation based on artificial intelligence according to claim 2 is characterized in that: The S6 is specifically as follows: S61. Extract a group of samples representing high-risk network behaviors from the multi-dimensional feature database of network security situation, and mark them as selected target samples; extract samples with similar network behaviors and the same labels as the target samples, and mark them as positive samples; extract samples with opposite behaviors and different labels as the target samples, and mark them as negative samples; then input the behavioral feature encodings of the target samples, negative samples, and positive samples into the feature extraction module to obtain the corresponding behavioral feature representations, which are target sample features, negative sample features, and positive sample features respectively; S62. Obtain a training data set; construct a training data set based on the target sample features, positive sample features, negative sample features, and sample corresponding labels; each sample feature involves a behavioral feature encoding of network behavior, which describes the activity pattern of a network entity within a specified time period, including access to a specific IP address, port scanning, and data packet type. The label is used to indicate whether the network entity exhibits a preset threat behavior, and the preset threat behavior represents a network behavior related to a known network security attack pattern; S63. Input the sample features output by the feature extraction module into the network situation discrimination module to obtain the situation discrimination result corresponding to each sample, that is, to judge whether the sample Whether the network behavior represented by it constitutes a threat; S64, evaluate the performance of the model; S65, obtain a real-time training data set, including real-time network traffic logs, system event records, user behavior logs, and network behavior data covering normal activities and known attack activities; divide the entire observation period into q time windows according to a fixed frequency f, and encode the behavior activities of each network entity in each time window to form a behavior feature code; S66, behavior feature coding: if the behavior duration of the network entity exceeds the set threshold in a certain time window, the behavior of the window is encoded as the corresponding threat behavior type code; S67, behavior duration coding: in addition to the behavior type code, each sample information also includes a behavior duration code, which records the total duration of various behaviors of the network entity in the preset period, and encodes these durations; S68, by obtaining the behavior feature information of the target network entity, including its behavior code, and inputting it into the trained final network security situation discrimination model, the model will output the situation discrimination result of the network entity, determine whether it has potential threat behavior, so as to timely discover and respond to network security risks, and the model outputs the network security situation assessment result, including normal, suspicious or attacked status.
6. The method for determining network security situation based on artificial intelligence according to claim 5 is characterized in that: The specific process of evaluating model performance is as follows: S641, target sample prediction; input the target sample features into the network situation identification module to determine whether the network behavior represented by the target sample constitutes a threat; predict the target sample to verify the network security situation model's ability to identify the network behavior represented by the target sample; S642, affirmative sample prediction; Input the features of the positive samples into the network situation discrimination module to determine the consistency of the network behavior represented by the network situation discrimination model similar to the target sample, and make predictions on the positive samples to verify whether the network situation discrimination model can correctly identify the behavior similar to the target sample as the same category; S643, negative sample prediction; input the negative sample features into the network situation discrimination module to determine whether the network security situation discrimination model can distinguish network behaviors of different categories from those represented by the target sample, and predict the negative samples to verify whether the network security situation discrimination model can distinguish different categories of network behaviors, especially when facing samples with behaviors opposite to those of the target samples; by predicting the target sample, the positive sample and the negative sample respectively, the following prediction results are output: Target sample prediction: ['severe']; Positive sample prediction: ['high']; Negative sample prediction: ['low''medium']; When the target sample is correctly predicted as "severe", it indicates that the target sample represents a high-risk network behavior; When a positive sample is predicted as "high", it indicates that the network security situation discrimination model can identify high-risk network behaviors similar to the target sample; When the negative sample is predicted as "low" or "medium", it indicates that the network security situation discrimination model can distinguish different types of network behaviors, especially can identify low-risk or medium-risk behaviors that are different from the target sample behaviors; Calculate the target sample performance indicators, including the recall rate, precision rate, and F1 score of the target sample, positive sample, and negative sample; When the performance value of the target sample indicator is greater than or equal to the corresponding set threshold, it indicates that the model can identify high-risk behaviors; When the indicator value of the positive sample is greater than or equal to the corresponding set threshold, it indicates that the model can identify high-risk behaviors similar to the target sample; When the negative sample indicator value is greater than or equal to the corresponding set threshold, it indicates that the model can distinguish different types of behaviors, especially low-risk or medium-risk behaviors; The performance of the network security situation model is evaluated from multiple perspectives by predicting the target sample, positive sample and negative sample respectively; when any of the positive sample indicator value, the negative sample indicator value and the negative sample indicator value deviates from the corresponding set threshold, it indicates that the model needs to adjust the parameters to improve the accuracy of the model; the model adjustment process is repeated until the model reaches the predetermined convergence standard, and the model at this time is the final network security situation discrimination model.
7. The method for determining network security situation based on artificial intelligence according to claim 4 is characterized in that: The quantitative coding system vulnerability level factor is as follows: using CVSS to quantify vulnerability indicators, including basic indicators, temporary indicators and environmental indicators; when the vulnerability indicator score is between the set thresholds x1 and x2, it is judged as a low-risk vulnerability; when the score is between the set thresholds x3 and x4, it is judged as a medium-risk vulnerability; when the score is between the set thresholds x5 and x6, it is judged as a high-risk vulnerability; when the score is between the set thresholds x7 and x8, it is judged as a severe vulnerability.
8. The method for determining network security situation based on artificial intelligence according to claim 4 is characterized in that: The quantized coding network topology factors are as follows: Quantify the network topology, including the number of nodes, connection density, number of key nodes, and the presence or absence of redundant paths; set a weight value q for different network structure characteristics i , and then a comprehensive score is calculated based on the features. For the number of nodes, the following codes are set: small networks with less than 50 nodes: code 1; medium-sized networks with 50 to 200 nodes: code 2; large networks with more than 200 nodes: code 3.
9. The method for determining network security situation based on artificial intelligence according to claim 4 is characterized in that: The quantitatively coded external threat intelligence level factors are as follows: Quantification is performed based on the information provided by the threat intelligence source, including the frequency of threat activities, attacker capabilities, the possibility of vulnerability exploitation, and the types of known attacks; the external threat level is quantified. When the activity frequency f is lower than the set threshold t1 or the attacker's technical level is at the set level three, it is determined to be a low-level threat; when the activity frequency f is between the set thresholds t2 and t3 and the attacker's technical level is at the set level two, it is determined to be a medium-level threat; when the activity frequency f is greater than the set threshold t4 and the attacker's technical level is at the level one, it is determined to be a high-level threat.
Citation Information
Cited By
Intelligent network attack defense method based on cooperation of large and small models
CN118984252A
Sensitive information system security situation intelligent monitoring method based on AI
CN119449496A
