Security estimation method, device and equipment for network traffic data packet based on deep learning, and readable storage medium
Through the numbering, parameter collection and deep neural network analysis of network traffic data packets, the network traffic security index is generated, which solves the problem of the inability to quickly identify the security standard value in the existing technology and achieves rapid security of network traffic data packets. Assessment and risk prediction improve monitoring efficiency and accuracy.
Patent Information
- Application Number
- CN202410972098.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-09-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing technology is difficult to quickly identify the security standard value of network traffic data packets, fails to effectively use deep learning models to generate network traffic security indexes, and cannot quickly monitor the security level of network traffic data packets.
By capturing the data packets of the network interface, numbering and marking security standard values, collecting traffic and connection parameters, performing unstructured processing and correlation analysis, generating traffic and connection security factors, constructing a deep neural network training data set, and generating network traffic Security index, grading network traffic security risks.
It realizes rapid security assessment and risk estimation of network traffic data packets, can promptly identify mild, moderate and severe security risks, and improves the efficiency and accuracy of network traffic monitoring.
Smart Images

Figure CN118713909A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of security monitoring of network traffic data packets, and specifically to a method, device, equipment and readable storage medium for security estimation of network traffic data packets based on deep learning. Background Art
[0002] In recent years, with the rapid development of science and technology, more and more users are using the Internet. Network traffic is the basic form of network load. With the popularization of the Internet and the increasing use of the Internet, network traffic has also increased exponentially. Network traffic can reflect the security of the network to a certain extent. Many network attacks cause abnormal network traffic. For example, a distributed denial of service attack uses a large number of normal access requests to attack the server, thereby illegally obtaining other people's private data, and even causing the server to paralyze in serious cases.
[0003] In the prior art, a network traffic data monitoring and analysis method, device, electronic device and storage medium provided by publication number CN115883170A include: obtaining the network traffic log of the target terminal; determining whether there is abnormal network traffic data based on the network traffic log; if there is abnormal network traffic data, then performing behavior analysis based on the abnormal network traffic data to determine whether the target terminal is attacked; if the target terminal is attacked, then determining the object of the attack based on the abnormal network traffic data. Through the scheme of the present invention, the network traffic log of the target terminal can be monitored and analyzed to determine the possible security threats of the target terminal, so as to make defensive measures against the security threats in a timely manner, avoiding the leakage of the user's privacy data and major network security issues such as the paralysis of the target terminal's server.
[0004] However, there are still the following shortcomings: From the above statements, it can be seen that the above scheme can monitor and analyze the network traffic logs of the target terminal to determine the possible security threats to the target terminal, but it does not specifically address how to quickly identify the security standard values of the corresponding traffic data packets when the network traffic data packets are abnormal, so as to achieve the purpose of rapid monitoring. At the same time, it is not able to generate a network traffic security index based on a deep learning model that can characterize the security risks of network traffic, so as to estimate the security level of network traffic data packets.
[0005] The above information disclosed in this Background section is only for enhancement of understanding of the background of the present disclosure and therefore it may contain information that does not constitute the prior art that is already known to one of ordinary skill in the art. Summary of the invention
[0006] The purpose of the present invention is to provide a method, device, equipment and readable storage medium for security estimation of network traffic data packets based on deep learning to solve the problems raised in the above background technology.
[0007] To achieve the above object, the present invention provides the following technical solutions:
[0008] A method for predicting security risks of network traffic data packets based on deep learning, the specific steps include:
[0009] S1. Capture n packets entering and leaving the network interface, number the captured packets in the order of capture time, form a number set A, mark the security standard value corresponding to each packet in the number set A, and form a standard value set ;
[0010] S2. Collect the flow parameters and connection parameters of each data packet in the number set A, wherein the flow parameters include the change in the amount of data transmission and the change in the flow transmission rate within the T time period; the connection parameters include the change in the number of connections and the change in the connection duration within the T time period;
[0011] S3. Analyze and evaluate the security value of each data packet in the number set A to generate a security evaluation value, and compare the security evaluation value with the standard value set After comparing the security standard values corresponding to the inner data packets, the error values are obtained, and all error values form an error set. , de-dimensionalizing the flow parameters of each data packet collected, and performing correlation analysis to generate a flow safety factor for each data packet, de-dimensionalizing the connection parameters of each data packet collected, and performing correlation analysis to generate a connection safety factor;
[0012] S4. Set the error After mapping the error value of each data packet with its corresponding traffic safety factor and connection safety factor one by one, a training sample is formed, and the training sample is used as input, and the security assessment value of each data packet is used as a label and a corresponding output, which is sent to a deep neural network and a corresponding training data set is constructed, and a network traffic safety index is generated based on the deep neural network;
[0013] S5. According to the interval analysis of the network traffic security index, the network traffic security risk level is divided into mild, moderate and severe.
[0014] Furthermore, collecting The traffic parameters and connection parameters of the corresponding data packet, where Indicates the sequence number is The traffic parameters include the change in data transmission volume and the change in traffic transmission rate within the T time period. The change in data transmission volume and the change in traffic transmission rate are dimensionless and subjected to correlation analysis to generate the traffic safety factor of the ith data packet. , based on the following formula:
[0015]
[0016] Among them, CBL is the change in data transmission volume within the T time period, SBL is the change in traffic transmission rate within the T time period, is the factor coefficient of the change in data transmission volume, 0.2≤ ≤0.4, is the factor coefficient of the change in traffic transmission rate, 0.2≤ ≤0.4, C1 is the constant correction coefficient.
[0017] Furthermore, the connection parameters include the change in the number of connections and the change in the connection duration within the T time period, the change in the number of connections and the change in the connection duration are dimensionless, and correlation analysis is performed to generate the connection safety factor of the i-th data packet , based on the following formula:
[0018]
[0019] Among them, LBL is the change in the number of connections within the time period T, and JBL is the change in the duration of the connection within the time period T. is the factor coefficient of the change in the number of connections, 0.2≤ ≤0.4, is the factor coefficient of the change in connection duration, 0.2≤ ≤0.4, C2 is the constant correction coefficient.
[0020] Furthermore, the error value , flow safety factor and connection safety factor Send it to the deep neural network and construct the corresponding training data set, and generate the network traffic security index based on the constructed deep neural network , based on the following formula:
[0021]
[0022] in, is the factor coefficient of the error value of the ith data packet, 0.2≤ ≤0.4, is the factor coefficient of the traffic safety factor of the ith data packet, 0.2≤ ≤0.4, is the factor coefficient of the connection security factor of the ith data packet, 0.2≤ ≤0.4.
[0023] Furthermore, according to the network traffic security index The process of classifying network traffic security into mild security risk, moderate security risk and severe security risk levels is as follows:
[0024] when , indicating that the corresponding data packet has a slight security risk;
[0025] when , indicating that the corresponding data packet has a moderate security risk;
[0026] when , indicating that the corresponding data packet has a serious security risk.
[0027] A security risk estimation device for network traffic data packets based on deep learning, comprising:
[0028] The first data acquisition module is used to capture n data packets entering and exiting the network interface, number the captured data packets in the order of capture time to form a number set A, mark the security standard value corresponding to each data packet in the number set A, and form a standard value set ;
[0029] The second data collection module is used to collect the flow parameters and connection parameters of each data packet in the number set A, wherein the flow parameters include the change in the data transmission volume and the change in the flow transmission rate within the time period T;
[0030] The connection parameters include the change in the number of connections and the change in the connection duration within the T time period;
[0031] A data processing module is used to analyze and evaluate the security value of each data packet in the number set A, generate a security evaluation value, and compare the security evaluation value with the standard value set. After comparing the security standard values corresponding to the inner data packets, the error values are obtained, and all error values form an error set. , the traffic parameters of each data packet collected are processed in a dimensionless manner, and a correlation analysis is performed to generate a traffic safety factor for each data packet, and the connection parameters of each data packet collected are processed in a dimensionless manner, and a correlation analysis is performed to generate a connection safety factor;
[0032] Data analysis module, used to collect error After mapping the error value of each data packet with its corresponding traffic safety factor and connection safety factor one by one, a training sample is formed, and the training sample is used as input, and the security assessment value of each data packet is used as a label and a corresponding output, which is sent to a deep neural network and a corresponding training data set is constructed, and a network traffic safety index is generated based on the deep neural network;
[0033] The judgment module is used to analyze the network traffic security index according to the interval to which it belongs, and classify the network traffic security risk level into mild, moderate and severe.
[0034] A device comprising:
[0035] Memory, used to store computer programs;
[0036] A processor is used to execute the computer program to implement the security risk prediction method for network traffic data packets based on deep learning as described in any of the above items.
[0037] A readable storage medium, comprising:
[0038] Used to store a computer program, which, when executed by a processor, implements a method for predicting security risks of network traffic data packets based on deep learning as described in any one of the above items.
[0039] A device comprising:
[0040] Memory, used to store computer programs;
[0041] A processor is used to execute the computer program to implement the security estimation method of network traffic data packets based on deep learning as described in any of the above items.
[0042] A readable storage medium,
[0043] Used to store a computer program, which, when executed by a processor, implements the security estimation method for network traffic data packets based on deep learning as described in any of the above items.
[0044] Compared with the prior art, the present invention has the following beneficial effects:
[0045] The present invention forms a set A by sequentially numbering n data packets entering and exiting the network interface, and forms a standard value set corresponding to the data packets. , the security evaluation value of each data packet in A is combined with the corresponding standard value set After one-to-one comparison, we get the error value set , and collect the changes in data transmission volume, traffic transmission rate, number of connections and connection duration in the T time period, and perform dimensionless processing on the collected changes in data transmission volume and traffic transmission rate to generate traffic safety coefficients, and perform dimensionless processing on the collected changes in number of connections and connection duration to generate connection safety coefficients. Therefore, when there is an abnormality in the network traffic data packet, the security standard value of the corresponding traffic data packet can be quickly identified through the security standard value set, and the error value between the security assessment value of the data packet and the corresponding standard value can be obtained. The error value, traffic safety factor and connection safety factor are sent to the deep neural network and the corresponding training data set is constructed. Based on the constructed deep neural network, a network traffic security index is generated, and the security level of the network traffic data packet is estimated according to the interval to which the network traffic security index belongs. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 It is a schematic diagram of the method flow of the present invention;
[0047] Figure 2 It is a block diagram of the module composition of the present invention. DETAILED DESCRIPTION
[0048] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments.
[0049] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The words "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0050] Example:
[0051] See also Figure 1 to Figure 2 , the present invention provides a technical solution:
[0052] A security risk estimation method for network traffic packets based on deep learning, such as Figure 1 As shown, the specific steps include:
[0053] S1. Capture n packets entering and leaving the network interface, number the captured packets in the order of capture time, form a number set A, mark the security standard value corresponding to each packet in the number set A, and form a standard value set ;
[0054] S2. Collect the flow parameters and connection parameters of each data packet in the number set A, wherein the flow parameters include the change in the amount of data transmission and the change in the flow transmission rate within the T time period;
[0055] The connection parameters include the change in the number of connections and the change in the connection duration within the T time period;
[0056] S3. Analyze and evaluate the security value of each data packet in the number set A to generate a security evaluation value, and compare the security evaluation value with the standard value set After comparing the security standard values corresponding to the inner data packets, the error values are obtained, and all error values form an error set. , the traffic parameters of each data packet collected are processed in a dimensionless manner, and a correlation analysis is performed to generate a traffic safety factor for each data packet, and the connection parameters of each data packet collected are processed in a dimensionless manner, and a correlation analysis is performed to generate a connection safety factor;
[0057] The process of generating security assessment values: Collect historical data and other relevant data, including network traffic records, event logs, security threat intelligence, vulnerability databases, etc.; clean, organize and preprocess the collected data, which includes removing outliers, processing missing data, and standardizing data formats; extract relevant features from the collected data, including identifying key indicators, behavior patterns, abnormal behaviors, network traffic characteristics, and security event characteristics; select appropriate models based on the results of feature engineering, involving machine learning algorithms and deep learning models; use historical data to train the model, and use other data for verification and evaluation, including dividing the data into training sets and test sets, training the model and evaluating its performance and adjusting parameters to improve model accuracy and generalization ability; based on the trained model, input new data into the model for prediction or evaluation, and the model will generate a security assessment value.
[0058] S4. Set the error After mapping the error value of each data packet with its corresponding traffic safety factor and connection safety factor one by one, a training sample is formed, and the training sample is used as input, and the security assessment value of each data packet is used as a label and a corresponding output, which is sent to a deep neural network and a corresponding training data set is constructed, and a network traffic safety index is generated based on the deep neural network;
[0059] S5. According to the interval analysis of the network traffic security index, the network traffic security risk level is divided into mild, moderate and severe.
[0060] In step S2, when the change in the amount of data transmission within the time period T increases sharply, it indicates that the security of network traffic is threatened. The specific reasons are as follows:
[0061] Network attack: When the amount of data transmission changes dramatically within a time period T, the attacker may flood the network with a large number of data packets to launch a denial of service attack (DoS) or a distributed denial of service attack (DDoS), which may threaten network traffic.
[0062] Application issues: When the amount of data transmission increases dramatically within a time period T, it may cause abnormal application behavior, misconfiguration, or application layer problems, threatening network traffic.
[0063] Therefore, it is particularly important to monitor the security of network traffic by detecting the change in data transmission volume through a traffic monitor. If this can be done, the following effects will occur:
[0064] Anomaly detection and alerts: A sudden increase or decrease in data transfer volume may indicate a network anomaly. By monitoring data transfer volume in real time, thresholds or rules can be set to trigger alerts when data transfer volume exceeds the normal range, so that network administrators can take timely measures to investigate possible problems.
[0065] Quickly identify attacks and security threats: Network attacks such as large-scale packet flooding and DDoS attacks usually lead to a sharp increase in data transmission volume. Monitoring data transmission volume can help quickly identify such attacks, help quickly take defensive measures and strengthen network security.
[0066] In step S2, when the change in the transmission rate increases sharply within the T time period, it indicates that the security of the network traffic is threatened. The specific reasons are as follows:
[0067] Network worms: With the rapid change of transmission rate, malicious network worms may spread automatically, resulting in a large amount of communication and data transmission in the network, causing the security of network traffic to be threatened.
[0068] Malware activity: When malware exists in the network, it causes a sharp increase in transmission rate, which may lead to large-scale data transmission, such as data theft, malicious file transfer or botnet activity, thus threatening the security of network traffic.
[0069] Network traffic hijacking: Malicious entities may attempt to hijack network traffic and redirect it to malicious servers, causing an unusual increase in transmission rates, thereby threatening the security of network traffic.
[0070] Therefore, it is particularly important to monitor the security of network traffic by detecting the change in traffic transmission rate through a traffic monitor. If this can be done, the following effects will occur:
[0071] Detect abnormal behavior in a timely manner: A sharp change in traffic transmission rate may be a sign of network anomaly or attack. Traffic monitors can detect such changes in a timely manner, helping administrators quickly discover potential security threats or network failures.
[0072] Rapid response and recovery: By monitoring changes in traffic transmission rates in real time, network administrators can respond quickly and take necessary security measures to mitigate attacks, repair faults, or adjust network configurations to maintain network availability and stability.
[0073] Reducing the impact of attacks: Taking action at an early stage when abnormal traffic transmission rates are discovered can reduce the impact of attacks on the network. By isolating or filtering abnormal traffic, administrators can limit attackers' access to network resources, thereby mitigating the damage caused by the attack.
[0074] Prevent data leakage: Abnormal transmission rates may be related to data leakage incidents. By monitoring rate changes, possible data leakage activities can be discovered in a timely manner, and measures can be taken to prevent or reduce the leakage of sensitive information and ensure network traffic security.
[0075] In step S2, when the change in the number of connections increases sharply within the T time period, it indicates that the security of network traffic is threatened. The specific reasons are as follows:
[0076] Network worms: The number of connections changes dramatically. Malicious network worms may spread automatically, causing a large amount of communication and data transmission in the network, threatening the security of network traffic.
[0077] Network traffic hijacking: Malicious entities may attempt to hijack network traffic and redirect it to malicious servers, resulting in an unusual increase in the number of connections, thereby threatening the security of network traffic.
[0078] Therefore, it is particularly important to monitor the security of network traffic by detecting the change in the number of connections through a network traffic analyzer. If this can be done, the following effects will occur:
[0079] Real-time threat detection: Network traffic analyzers can monitor changes in the number of connections in real time, thereby promptly detecting possible threats and attack activities. Abnormal connection number patterns may be an indication of malicious activities, such as DDoS attacks or port scans.
[0080] Abnormal behavior identification: By analyzing changes in the number of connections, network traffic analyzers can identify abnormal network behavior, which helps administrators quickly discover unusual activities such as large-scale data transfers, malicious login attempts, etc.
[0081] Intrusion detection: Drastic changes in the number of connections may be a sign of intrusion behavior. Network traffic analyzers can be used to detect possible intrusion patterns, including abnormal connection establishment, frequent port attempts, etc.
[0082] In step S2, when the change in the connection duration in the T time period increases sharply, it indicates that the security of the network traffic is threatened. The specific reasons are as follows:
[0083] Persistent attack activity: Malicious behavior may cause increased connection duration, such as sustained DDoS attacks or large-scale data download operations, which may result in prolonged connection time and may threaten the security of network traffic.
[0084] Port phishing attack: An attacker may continuously attempt to establish a connection to the target port, looking for weaknesses and attempting to break into the system. This may result in an abnormal increase in the duration of the connection.
[0085] Continuous intrusion attempts: Malicious users or attackers may continuously make intrusion attempts, attempting to use brute force, unauthorized access, or other attack methods through long-term connections.
[0086] Continuous scanning or probing behavior: The attacker may continuously scan or probe the system. Long connection durations may be because the attacker is trying to find system vulnerabilities or weaknesses.
[0087] Therefore, it is particularly important to monitor the security of network traffic by detecting the change in the number of connections through a network traffic analyzer. If this can be done, the following effects will occur:
[0088] Real-time threat detection: Network traffic analyzers can monitor changes in the number of connections in real time and quickly identify possible threats such as DDoS attacks, port scans, or abnormal connection behavior.
[0089] Abnormal behavior identification: By analyzing changes in the number of connections, network traffic analyzers can identify abnormal network behavior, such as large-scale data transfers, malware propagation, or abnormal user activity.
[0090] Intrusion Detection: Changes in the number of connections can be used to detect potential intrusions, such as persistent connection attempts, brute force cracking, or other malicious activities.
[0091] Based on the above embodiment, The traffic parameters and connection parameters of the corresponding data packet, where Indicates the sequence number is The traffic parameters include the change in data transmission volume and the change in traffic transmission rate within the T time period. The change in data transmission volume and the change in traffic transmission rate are dedimensionalized and correlation analysis is performed to generate the traffic safety factor of the ith data packet. , based on the following formula:
[0092]
[0093] Among them, CBL is the change of data transmission volume in the T time period, SBL is the change of traffic transmission rate in the T time period, is the factor coefficient of the change in data transmission volume, 0.2≤ ≤0.4, is the factor coefficient of the change in traffic transmission rate, 0.2≤ ≤0.4, C1 is the constant correction coefficient.
[0094] From the above formula, we can see that when The higher the flow safety factor The lower, The higher the flow safety factor The lower the , and There is a negative correlation, and the factor coefficient is used to balance the proportion of each data in the formula, thereby promoting the accuracy of the calculation results.
[0095] Based on the above embodiment, the connection parameters include the change in the number of connections and the change in the connection duration within the T time period. The change in the number of connections and the change in the connection duration are dimensionless and subjected to correlation analysis to generate the connection safety factor of the i-th data packet. , based on the following formula:
[0096]
[0097] Among them, LBL is the change in the number of connections within the time period T, and JBL is the change in the duration of the connection within the time period T. is the factor coefficient of the change in the number of connections, 0.2≤ ≤0.4, is the factor coefficient of the change in connection duration, 0.2≤ ≤0.4, C2 is the constant correction coefficient.
[0098] From the above formula, we can see that when The higher the connection safety factor The higher, The lower the connection safety factor The lower the , and There is a negative correlation, and the factor coefficient is used to balance the proportion of each data in the formula, thereby promoting the accuracy of the calculation results.
[0099] Based on the above embodiment, the error value , flow safety factor and connection safety factor Send it to the deep neural network and construct the corresponding training data set, and generate the network traffic security index based on the constructed deep neural network , based on the following formula:
[0100]
[0101] in, is the factor coefficient of the error value of the ith data packet, 0.2≤ ≤0.4, is the factor coefficient of the traffic safety factor of the ith data packet, 0.2≤ ≤0.4, is the factor coefficient of the connection security factor of the ith data packet, 0.2≤ ≤0.4.
[0102] Based on the above embodiment, according to the network traffic security index The process of classifying network traffic security into mild security risk, moderate security risk and severe security risk levels is as follows:
[0103] when , indicating that the corresponding data packet has a slight security risk;
[0104] when , indicating that the corresponding data packet has a moderate security risk;
[0105] when , indicating that the corresponding data packet has a serious security risk.
[0106] In the formula , , , , The specific value of is generally determined by those skilled in the art according to actual conditions. The essence of this formula is to perform comprehensive analysis by weighted summation. Those skilled in the art collect multiple groups of sample data, set corresponding preset proportional coefficients for each group of sample data, substitute the preset proportional coefficients and the collected sample data into the formula, screen the calculated coefficients and take the average, and obtain , , , , The value of .
[0107] In addition, the size of the preset factor coefficient is to quantify each parameter to obtain a specific value. In order to facilitate subsequent comparison, the size of the coefficient depends on the amount of sample data and the preset proportional coefficient initially set by technical personnel in this field for each set of sample data. It is not unique as long as it does not affect the proportional relationship between the parameter and the quantized value.
[0108] A security risk estimation device for network traffic data packets based on deep learning, such as Figure 2 As shown, including:
[0109] The first data acquisition module is used to capture n data packets entering and exiting the network interface, number the captured data packets in the order of capture time to form a number set A, mark the security standard value corresponding to each data packet in the number set A, and form a standard value set ;
[0110] The second data collection module is used to collect the flow parameters and connection parameters of each data packet in the number set A, wherein the flow parameters include the change in the data transmission volume and the change in the flow transmission rate within the time period T;
[0111] The connection parameters include the change in the number of connections and the change in the connection duration within the T time period;
[0112] A data processing module is used to analyze and evaluate the security value of each data packet in the number set A, generate a security evaluation value, and compare the security evaluation value with the standard value set. After comparing the security standard values corresponding to the inner data packets, the error values are obtained, and all error values form an error set. , the traffic parameters of each data packet collected are processed in a dimensionless manner, and a correlation analysis is performed to generate a traffic safety factor for each data packet, and the connection parameters of each data packet collected are processed in a dimensionless manner, and a correlation analysis is performed to generate a connection safety factor;
[0113] Data analysis module, used to collect error After mapping the error value of each data packet with its corresponding traffic safety factor and connection safety factor one by one, a training sample is formed, and the training sample is used as input, and the security assessment value of each data packet is used as a label and a corresponding output, which is sent to a deep neural network and a corresponding training data set is constructed, and a network traffic safety index is generated based on the deep neural network;
[0114] The judgment module is used to analyze the network traffic security index according to the interval to which it belongs, and classify the network traffic security risk level into mild, moderate and severe.
[0115] A device comprising:
[0116] Memory, used to store computer programs;
[0117] A processor is used to execute the computer program to implement the security risk prediction method for network traffic data packets based on deep learning as described in any of the above items.
[0118] A readable storage medium,
[0119] Used to store a computer program, which, when executed by a processor, implements the security risk prediction method for network traffic data packets based on deep learning as described in any of the above items.
[0120] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.
[0121] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented using software, the above embodiments may be implemented in whole or in part in the form of a computer program product. Those skilled in the art may appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein may be implemented by computer software, electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed by hardware or software depends on the specific application and design constraints of the technical solution.
[0122] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0123] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A method for predicting the security risk of network traffic data packets based on deep learning, characterized in that: The specific steps include: S1. Capture n packets entering and leaving the network interface, number the captured packets in the order of capture time, form a number set A, mark the security standard value corresponding to each packet in the number set A, and form a standard value set ; S2. Collect the flow parameters and connection parameters of each data packet in the number set A, wherein the flow parameters include the change in the amount of data transmission and the change in the flow transmission rate within the T time period; the connection parameters include the change in the number of connections and the change in the connection duration within the T time period; S3. Analyze and evaluate the security value of each data packet in the number set A to generate a security evaluation value, and compare the security evaluation value with the standard value set After comparing the security standard values corresponding to the inner data packets, the error values are obtained, and all error values form an error set. , the traffic parameters of each data packet collected are processed in a dimensionless manner, and a correlation analysis is performed to generate a traffic safety factor for each data packet, and the connection parameters of each data packet collected are processed in a dimensionless manner, and a correlation analysis is performed to generate a connection safety factor; S4. Set the error After mapping the error value of each data packet with its corresponding traffic safety factor and connection safety factor one by one, a training sample is formed, and the training sample is used as input, and the network traffic safety value of each data packet is used as a label and a corresponding output, which are sent to a deep neural network for training, and a network traffic safety index is generated based on the deep neural network; S5. According to the interval analysis of the network traffic security index, the network traffic security risk level is divided into mild, moderate and severe.
2. According to the method for predicting security risks of network traffic data packets based on deep learning in claim 1, it is characterized in that: collection The traffic parameters and connection parameters of the corresponding data packet, where Indicates the sequence number is The traffic parameters include the change in data transmission volume and the change in traffic transmission rate within the T time period. The change in data transmission volume and the change in traffic transmission rate are dimensionless and subjected to correlation analysis to generate the traffic safety factor of the ith data packet. , based on the following formula: Among them, CBL is the change in data transmission volume within the T time period, SBL is the change in traffic transmission rate within the T time period, is the factor coefficient of the change in data transmission volume, 0.2≤ ≤0.4, is the factor coefficient of the change in traffic transmission rate, 0.2≤ ≤0.4, C1 is the constant correction coefficient.
3. According to the method for predicting security risks of network traffic data packets based on deep learning in claim 2, it is characterized in that: The connection parameters include the change in the number of connections and the change in the connection duration within the T time period. The change in the number of connections and the change in the connection duration are dimensionless and subjected to correlation analysis to generate the connection safety factor of the i-th data packet. , based on the following formula: Among them, LBL is the change in the number of connections within the time period T, and JBL is the change in the duration of the connection within the time period T. is the factor coefficient of the change in the number of connections, 0.2≤ ≤0.4, is the factor coefficient of the change in connection duration, 0.2≤ ≤0.4, C2 is the constant correction coefficient.
4. According to the method of security risk estimation of network traffic data packets based on deep learning in claim 3, it is characterized in that: The error value , flow safety factor and connection safety factor Send it to the deep neural network and construct the corresponding training data set, and generate the network traffic security index based on the constructed deep neural network , based on the following formula: in, is the factor coefficient of the error value of the ith data packet, 0.2≤ ≤0.4, is the factor coefficient of the traffic safety factor of the ith data packet, 0.2≤ ≤0.4, is the factor coefficient of the connection security factor of the ith data packet, 0.2≤ ≤0.
4.
5. According to the method for predicting security risks of network traffic data packets based on deep learning in claim 4, it is characterized in that: According to the network traffic security index The process of classifying network traffic security into mild security risk, moderate security risk and severe security risk levels is as follows: when , indicating that the corresponding data packet has a slight security risk; when , indicating that the corresponding data packet has a moderate security risk; when , indicating that the corresponding data packet has a serious security risk.
6. A security risk estimation device for network traffic data packets based on deep learning, characterized in that: include: The first data acquisition module is used to capture n data packets entering and exiting the network interface, number the captured data packets in the order of capture time to form a number set A, mark the security standard value corresponding to each data packet in the number set A, and form a standard value set ; The second data collection module is used to collect the flow parameters and connection parameters of each data packet in the number set A, wherein the flow parameters include the change in the data transmission volume and the change in the flow transmission rate within the time period T; The connection parameters include the change in the number of connections and the change in the connection duration within the T time period; A data processing module is used to analyze and evaluate the security value of each data packet in the number set A, generate a security evaluation value, and compare the security evaluation value with the standard value set. After comparing the security standard values corresponding to the inner data packets, the error values are obtained, and all error values form an error set. , the traffic parameters of each data packet collected are processed in a dimensionless manner, and a correlation analysis is performed to generate a traffic safety factor for each data packet, and the connection parameters of each data packet collected are processed in a dimensionless manner, and a correlation analysis is performed to generate a connection safety factor; Data analysis module, used to collect error After mapping the error value of each data packet with its corresponding traffic safety factor and connection safety factor one by one, a training sample is formed, and the training sample is used as input, and the security assessment value of each data packet is used as a label and a corresponding output, which is sent to a deep neural network and a corresponding training data set is constructed, and a network traffic safety index is generated based on the deep neural network; The judgment module is used to analyze the network traffic security index according to the interval to which it belongs, and classify the network traffic security risk level into mild, moderate and severe.
7. A device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the method for predicting the security risks of network traffic data packets based on deep learning as described in any one of claims 1 to 5.
8. A readable storage medium, characterized in that: Used to store a computer program, which, when executed by a processor, implements the security risk prediction method for network traffic data packets based on deep learning as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Network security attack type and threat level prediction method based on machine learning
CN114422184A
Network security threat assessment method and system
CN115664860A
Artificial intelligence (AI) based cyber threat analyst to support a cyber security appliance
US20200358792A1
