Life cycle risk management and control method based on neural network algorithm
Through the life cycle risk management and control method based on neural network algorithms, the problems of limited prediction ability and lack of automated processing of traditional methods are solved, real-time risk monitoring and response to network security data are realized, and the reliability and manageability of network security are improved. .
Patent Information
- Application Number
- CN202410745978.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-09-24
AI Technical Summary
Traditional cyber security space data asset life cycle risk management and control methods have limited predictive capabilities, lack the ability to identify unknown risks, complex data processing and lack of automation, are inefficient, and cannot monitor and respond to risks in real time, resulting in reduced risk prevention and response timeliness.
Adopting a life cycle risk management and control method based on neural network algorithms, by collecting and preprocessing network security data, selecting pre-trained models for fine-tuning and cross-validation, and training using the minimization loss function, backpropagation algorithm, regularization technology and gradient descent method Neural network model for risk assessment and prediction, real-time monitoring and response to risks.
It improves the reliability and manageability of network security, enables the identification and real-time monitoring of unknown risks, optimizes model performance, prevents over-fitting, and has good generalization capabilities and timeliness.
Smart Images

Figure CN118694673A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network security technology, and in particular to a life cycle risk management and control method based on a neural network algorithm. Background Art
[0002] In the current digital age, network security issues are becoming increasingly prominent, and the security of data assets in cyberspace has attracted much attention. The life cycle risks of cyberspace data assets include: risk discovery, risk assessment, risk control and risk response. However, traditional methods mainly rely on empirical rules and statistical models for risk assessment, but are limited by data samples and feature selection, and cannot comprehensively and accurately assess risks. They are also not flexible and efficient in the risk control stage. Among them, the traditional methods for life cycle risk management and control of cyberspace data assets have the following problems: limited prediction ability, traditional methods rely on existing rules and models, lack the ability to identify unknown risks, and are difficult to make accurate predictions; complex data processing, traditional methods require a lot of manual intervention and sorting, lack automated processing capabilities, and are inefficient; lack of dynamism, traditional methods often cannot monitor and respond to risks in real time, and the timeliness of risk prevention and response is reduced. Therefore, it is very necessary to design a life cycle risk management and control method based on neural network algorithms. Summary of the invention
[0003] The purpose of the present invention is to provide a lifecycle risk management method based on a neural network algorithm, which improves the reliability and manageability of network security.
[0004] To achieve the above object, the present invention provides the following solutions:
[0005] A life cycle risk management method based on a neural network algorithm comprises the following steps:
[0006] Collect network security data assets and risk data, and pre-process them to obtain standard data;
[0007] Select one or more pre-trained models, fine-tune the pre-trained models, and determine the neural network model by cross-validating and comparing the performance of the fine-tuned pre-trained models;
[0008] Use minimization of loss function, back propagation algorithm, regularization technology and gradient descent method to train the neural network model, adjust the parameters of the neural network model, and repeat the neural network model training process until the neural network model meets the requirements of the specific network task;
[0009] The standard data is input into the trained neural network model for risk assessment and prediction to obtain the risk level and probability.
[0010] Optionally, the preprocessing step includes:
[0011] Data clustering analysis, data screening, data cleaning, data standardization and data normalization.
[0012] Optionally, the pre-trained model includes:
[0013] Convolutional neural network model, long short-term memory network model, recurrent neural network model, BERT model, graph neural network model, attention mechanism model, autoencoder model and generative adversarial network model.
[0014] Optionally, the cross-validation step includes:
[0015] The standard data is divided into k data sets, the k data sets are trained and verified, the performance index of each verification is calculated, and the average value of the performance index is obtained.
[0016] Optionally, the loss function is:
[0017]
[0018] Among them, loss is the square loss function, cross-entropy loss is the cross entropy loss function, y pred,i is the predicted value output by the neural network model, y true,i is the real label.
[0019] Optionally, the back-propagation algorithm includes:
[0020] For the update of the output layer neuron weights, the formula is:
[0021]
[0022] Among them, a is the output of the previous layer of neurons, and w is the weight;
[0023] For updating the neuron weights of the hidden layer, the formula is:
[0024]
[0025] Among them, output is the output of the neural network model, input neuron is the input of the network model, and i is all output neurons.
[0026] Optionally, regularization techniques include: mixed precision training, gradient accumulation techniques, early stopping, and learning rate scheduling strategies.
[0027] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects: the life cycle risk management method based on the neural network algorithm provided by the present invention comprises: collecting network security data assets and risk data, and preprocessing to obtain standard data; selecting one or more pre-trained models, and fine-tuning the pre-trained models, and determining the neural network model by cross-validating and comparing the performance of the fine-tuned pre-trained models; training the neural network model by minimizing the loss function, back propagation algorithm, regularization technology and gradient descent method, and adjusting the neural network model parameters, and repeating the neural network model training process until the neural network model meets the requirements of the specific network task; inputting the standard data into the trained neural network model for risk assessment and prediction, and obtaining the risk level and probability. The method improves the reliability and manageability of network security. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] 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 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 labor.
[0029] Figure 1 This is a flow chart of a life cycle risk management method based on a neural network algorithm according to an embodiment of the present invention. DETAILED DESCRIPTION
[0030] The purpose of the present invention is to provide a lifecycle risk management method based on a neural network algorithm, which improves the reliability and manageability of network security.
[0031] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0032] like Figure 1 As shown, an embodiment of the present invention provides a life cycle risk management method based on a neural network algorithm, comprising the following steps:
[0033] Step 100: Collect network security data assets and risk data, and pre-process them to obtain standard data.
[0034] Specifically, the collected cybersecurity data assets and risk data are:
[0035] System information; including: hardware devices, operating system and configuration information.
[0036] Network information; including: network topology, network traffic, network connections, and key asset information.
[0037] Security logs; including: system logs, network logs, network traffic logs, firewall logs, security device logs and application logs; security logs record detailed information about network security events and are used to analyze and respond to network security events; system logs, network traffic logs and firewall logs are automatically collected by deploying log collection agents on key network nodes and security devices.
[0038] More specifically, preprocessing is used to remove noise from the collected data and convert the data into a format that can be used for training. The specific steps include:
[0039] Perform cluster analysis on the data and group similar data together to reduce the complexity of the data; cluster analysis is to use algorithms to determine which similar data are most suitable to be classified as the same category.
[0040] Select appropriate data features through data screening; for example, select the field that best represents the data as the data feature.
[0041] Through data cleaning, dirty data is eliminated to improve the reliability of network security data. Data cleaning includes: identifying and filtering irrelevant information in security logs through natural language processing (NLP) technology; identifying repeated or similar log entries through text mining technology, and merging or deleting them to reduce data redundancy; identifying and excluding abnormal or abnormal logs through anomaly detection algorithms. NLP technologies include regular expressions, word segmentation algorithms, and sentiment analysis; irrelevant information includes formatted text such as date and time in the log.
[0042] Data standardization operations are performed to unify the range of feature data and prevent the value ranges of different data from affecting each other.
[0043] Data normalization: Convert data feature values of different dimensions through their properties to avoid the impact of different types of features on training.
[0044] Step 200 includes: selecting one or more pre-trained models and fine-tuning the pre-trained models.
[0045] Specifically, the embodiment of the present invention selects the following pre-training model:
[0046] Convolutional Neural Network Model (CNN): Through time series analysis, network traffic data (such as IP packet data) is converted into an image structure;
[0047] Long Short-Term Memory (LSTM) network model: suitable for processing time series data, and can capture long-term dependencies and effectively analyze abnormal patterns in network traffic;
[0048] Recurrent Neural Network Model (RNN): used to process sequential patterns in log files and text data and understand the sequence and association of events in logs;
[0049] BERT model: used to understand and classify text information in security logs;
[0050] Graph Neural Network Model (GNN): used to analyze system alarms and event correlations, and process the complex relationships between network topology and network events, suitable for detecting complex attack patterns;
[0051] Autoencoder models: used to learn low-dimensional representations of data and identify anomalies or potential risks in configuration changes;
[0052] Generative Adversarial Network (GAN): used to generate simulated data for cybersecurity strategies and evaluate the effectiveness and potential risks of different strategies.
[0053] More specifically, fine-tuning a pre-trained model involves:
[0054] Replace the output layer of the pre-trained CNN model with the output layer related to the network security task, freeze the convolutional layer of the CNN model, train only the top classification layer, and use network traffic data for training. Adjust the learning rate and start with a small value to avoid destroying the weights of the pre-trained layer; the output layer related to the network security task is used to determine whether the network traffic is normal;
[0055] According to the time series characteristics of network traffic, adjust the input layer of the LSTM model, adjust the size and number of hidden layers of the LSTM model, train the LSTM model, monitor the performance of the LSTM model during training, and adjust the hyperparameters; the adjusted input layer is used to receive and process time series data, and the hyperparameters include: learning rate and batch size;
[0056] Use the pre-trained RNN model to process log files and text data. According to the characteristics of the log file data, increase or decrease the number of RNN model layers, and adjust the size of the RNN model hidden state; the fine-tuned RNN model is used to identify and classify events and alerts in security logs.
[0057] Replace the top output layer of the BERT model and fine-tune it based on security log data, so that the BERT model can be used for classification or entity recognition tasks and improve the ability to understand security log data;
[0058] Fine-tune the GNN model by customizing the representation of nodes and edges in the graph, and monitor the performance of the GNN model in detecting complex attack patterns during the fine-tuning process; the fine-tuned GNN model is used to identify and analyze the associations between system alerts and events;
[0059] Use the autoencoder model to learn the low-dimensional representation of the data, adjust the network structure of the autoencoder model to adapt to the characteristics of the learned data, and monitor the performance of the autoencoder model on the anomaly detection task; the fine-tuned autoencoder model is used to identify abnormal patterns in data changes.
[0060] The GAN model is used to generate simulated data of network security policies, and the discriminator and generator of the GAN model are trained; the discriminator is used to distinguish between real policy data and generated policy data, and the generator is used to generate more realistic simulated data. The performance of the trained GAN model in simulating network security policies has been improved.
[0061] Step 200 also includes: selecting the best performing neural network model by cross-validating and comparing the performance of the fine-tuned pre-trained models and evaluating the accuracy, recall, and F1 score of each model when processing network security data;
[0062] Specifically, the steps of cross-validation include:
[0063] Divide the standard data into k data sets, train and validate the k data sets, calculate the performance index of each validation, and get the average value of the performance index; select the optimal neural network model parameters based on the results of cross-validation. In the training and validation process, one of the k data sets is used as the validation set, and the remaining data sets are used as the training set. The neural network model parameters include: learning rate and regularization coefficient.
[0064] More specifically, an attention mechanism is introduced into the neural network model, so that the neural network model can automatically focus on the most task-related parts of the input data and improve the neural network model's ability to pay attention to key events; residual connections are added between the feature extraction layer and the classification layer of the network to promote the effective transmission of information and maintain the depth and complexity of the network; residual connections are used to solve the gradient vanishing and gradient exploding problems in deep network training and to improve the training speed and performance of the network.
[0065] Step 300: Train the neural network model using the minimization loss function, back propagation algorithm, regularization technique and gradient descent method, adjust the neural network model parameters, and repeat the neural network model training process until the neural network model meets the requirements of the specific network task.
[0066] Specifically, the loss function is:
[0067]
[0068]
[0069] Among them, loss is the square loss function, cross-entropy loss is the cross entropy loss function, y pred,i is the predicted value output by the neural network model, y true,i is the real label.
[0070] Specifically, the back-propagation algorithm is used to calculate the derivatives of the loss function with respect to the network parameters, including:
[0071] 1) For the update of the output layer neuron weights, the formula is:
[0072]
[0073] Among them, a is the output of the previous layer of neurons, and w is the weight;
[0074] 2) For the update of the neuron weights of the hidden layer, the formula is:
[0075]
[0076] Among them, output is the output of the neural network model, input neuron is the input of the network model, and i is all output neurons.
[0077] More specifically, regularization techniques are used to prevent overfitting of neural network models during training and improve the generalization ability of the model. Regularization techniques include:
[0078] 1) Mixed precision training: Use a combination of 16-bit floating point numbers (FP16) and 32-bit floating point numbers (FP32) for training; FP16 is used to accelerate calculations and reduce memory usage, and FP32 is used to maintain numerical stability. This includes: determining the operation steps that can be safely converted to FP16, and automatically managing precision conversion and gradient scaling based on the mixed precision training framework, and monitoring numerical stability during training to ensure that there are no training problems caused by reduced precision. The operation steps include: matrix multiplication and convolution operations in forward propagation and backpropagation; mixed precision training frameworks include: NVIDIA's Apex or TensorFlow's mixed precision function.
[0079] 2) Gradient accumulation technology: a technology that allows neural network models to perform multiple forward and backward propagations before updating weights. Including: when implementing gradient accumulation, first accumulate gradients on multiple small batches of data, and then update the model weights at one time; adjust the number of cumulative steps. Gradient accumulation technology implements the function of simulating training with larger batches of data, avoids the problem of memory overflow, and balances training speed and model performance. It solves the problem of increased gradient variance caused by too many steps, which affects model convergence.
[0080] 3) Early stopping method: Monitor the model performance on the validation set and stop training when the performance no longer improves. This includes: setting a performance monitoring indicator, evaluating the performance of the neural network model on the validation set once per training epoch, and recording it; when the performance of multiple consecutive epochs does not improve significantly, stop the training process.
[0081] 4) Learning rate scheduling strategy: dynamically adjust the learning rate according to the performance of the neural network model during training. Including: selecting a predefined scheduling strategy or periodic adjustment, and automatically controlling the learning rate adjustment process through the learning rate scheduler, and adjusting the learning rate in real time according to the performance of the neural network model on the training set and validation set to optimize the convergence speed and final performance of the neural network model. Scheduling strategies include: learning rate decay; periodicity includes: periodic changes in the learning rate between high and low.
[0082] Step 400: Input the standard data into the trained neural network model for risk assessment and prediction to obtain the risk level and probability. The specific steps are as follows:
[0083] The standard data is used as the input vector of the trained neural network model, and is input into the trained neural network model. The model is calculated based on the training experience and training parameters to obtain the corresponding risk assessment and prediction results. The forward propagation algorithm is used to take the output of the previous layer as the input of the next layer, and finally the risk level and probability of the output layer are obtained. According to the risk level and probability, the corresponding risk management strategy and emergency plan are formulated to achieve timely control and response of risks. The risk level is a discrete classification result, indicating different risk levels such as low, medium and high, and the probability is the probability that a sample belongs to a certain risk category.
[0084] The beneficial effects of the present invention include:
[0085] By real-time monitoring and prediction of risks, the reliability and manageability of network security are improved; through iterative training and evaluation, the performance of the model is optimized; based on the characteristics of network security data, key risk factors can be effectively identified and handled; overfitting is prevented during the training of the neural network model, and good generalization ability is achieved.
[0086] The present invention uses specific examples to illustrate the principles and implementation methods of the present invention. The above examples are only used to help understand the method and core ideas of the present invention. At the same time, for those skilled in the art, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A life cycle risk management method based on a neural network algorithm, characterized in that: The steps include: Collect network security data assets and risk data, and pre-process them to obtain standard data; Select one or more pre-trained models, and fine-tune the pre-trained models, and determine the neural network model by cross-validating and comparing the performance of the fine-tuned pre-trained models; The neural network model is trained by minimizing the loss function, back propagation algorithm, regularization technique and gradient descent method, and the parameters of the neural network model are adjusted, and the neural network model training process is repeated until the neural network model meets the requirements of the specific network task; The standard data is input into the trained neural network model for risk assessment and prediction to obtain the risk level and probability.
2. The life cycle risk management method based on a neural network algorithm according to claim 1 is characterized in that: The pre-processing steps include: Data clustering analysis, data screening, data cleaning, data standardization and data normalization.
3. The life cycle risk management method based on a neural network algorithm according to claim 1 is characterized in that: The pre-trained model includes: Convolutional neural network model, long short-term memory network model, recurrent neural network model, BERT model, graph neural network model, attention mechanism model, autoencoder model and generative adversarial network model.
4. The life cycle risk management method based on a neural network algorithm according to claim 1 is characterized in that: The cross-validation steps include: The standard data is divided into k data sets, the k data sets are trained and verified, the performance index of each verification is calculated, and the average value of the performance index is obtained.
5. The life cycle risk management method based on a neural network algorithm according to claim 1 is characterized in that: The loss function is: Among them, loss is the square loss function, cross-entropyloss is the cross entropy loss function, y pred,i is the predicted value output by the neural network model, y true,i is the real label.
6. The life cycle risk management method based on a neural network algorithm according to claim 1 is characterized in that: The back propagation algorithm includes: For the update of the output layer neuron weights, the formula is: Among them, a is the output of the previous layer of neurons, and w is the weight; For updating the neuron weights of the hidden layer, the formula is: Among them, output is the output of the neural network model, input neuron is the input of the network model, and i is all output neurons.
7. The life cycle risk management method based on a neural network algorithm according to claim 1 is characterized in that: The regularization techniques include: mixed precision training, gradient accumulation technology, early stopping method and learning rate scheduling strategy.
Citation Information
Cited By
AI algorithm-based Selenium automatic script generation method and system
CN119127721A
Process abnormality early warning method and system for process industry process
CN119128772A
