Network attack identification method based on behavior modeling

By combining network traffic data, system security logs and threat intelligence in network attack modeling, deep learning technology is used to build an attack behavior model, which solves the identification efficiency problem of traditional methods in complex network attack scenarios and achieves higher accuracy. and reliability.

CN118740513AActive Publication Date: 2024-10-01STATE GRID HENAN INFORMATION & TELECOMM CO +2

Patent Information

Application Number
CN202411065774.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-10-01
Estimated Expiration
2044-08-05

AI Technical Summary

Technical Problem

Traditional network attack modeling technology relies on static rule bases and simple pattern matching methods, which is difficult to effectively deal with complex and changeable network attack scenarios, resulting in limited accuracy and efficiency of attack identification.

Method used

Using a method based on behavioral modeling, through data fusion analysis of network traffic data, system security logs and threat intelligence, deep learning technology is used to mine attack behavior characteristic patterns, build a network attack behavior model, and quickly detect and identify network behaviors to be detected. .

Benefits of technology

It improves the accuracy of network attack identification, reduces the false positive rate and false negative rate, and provides more reliable technical support for network security protection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740513A_ABST
    Figure CN118740513A_ABST
Patent Text Reader

Abstract

The invention discloses a network attack identification method based on behavior modeling, and the method comprises the steps: carrying out the data fusion analysis based on network flow data in combination with a system security log and threat intelligence, carrying out the attack behavior feature mode mining through a deep learning technology, and constructing a network attack behavior model. And on the basis of query matching of the to-be-detected network behavior data and the network attack behavior model, rapid detection and identification of the network attack behavior are realized. Therefore, the accuracy of network attack identification can be effectively improved, the false alarm rate and the missing report rate are reduced, and more reliable technical support is provided for network security protection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent identification, and more specifically, to a network attack identification method based on behavior modeling. Background Art

[0002] With the rapid development of Internet technology, network security issues have become increasingly prominent, and the means of network attacks have continued to evolve, posing serious threats to the information security of individuals and enterprises. In today's network security situation, in order to deal with intruders, it is usually necessary to deploy a variety of network security protection devices such as firewalls, intrusion detection and prevention systems to protect the security of information assets. These network security protection devices will generate a large number of network security alarm logs with low information levels during operation. The network attack modeling technology aims to discover the characteristics and laws of network attacks by analyzing the network security alarm logs, so as to improve the ability to deal with various sudden network attack events.

[0003] However, traditional network attack modeling technology mainly relies on static rule bases and simple pattern matching methods. It is often difficult to effectively deal with complex and changeable network attack scenarios by performing simple rule matching or statistical analysis on network security logs, resulting in limited accuracy and efficiency of attack identification. Therefore, an optimized network attack identification method based on behavioral modeling is expected. Summary of the invention

[0004] In order to solve the above technical problems, this application is proposed. The embodiment of the present application provides a network attack identification method based on behavior modeling, which performs data fusion analysis based on network traffic data, combined with system security logs and threat intelligence, uses deep learning technology to mine attack behavior feature patterns, builds a network attack behavior model, and then achieves rapid detection and identification of network attack behaviors based on query matching between the network behavior data to be detected and the network attack behavior model. In this way, the accuracy of network attack identification can be effectively improved, the false alarm rate and missed alarm rate can be reduced, and more reliable technical support can be provided for network security protection.

[0005] According to one aspect of the present application, a network attack identification method based on behavior modeling is provided, which includes: Extracting a set of network behavior reference data marked as attack behaviors from a backend database, wherein the network behavior reference data includes a time series of network traffic values ​​in a predetermined time period, a system security log in the predetermined time period, and threat intelligence in the predetermined time period; Based on the set of network behavior reference data marked as attack behaviors, modeling the network attack behaviors to obtain a set of attack behavior multimodal encoding vectors; Acquire the network behavior data to be detected, wherein the network behavior data to be detected includes a time series of network traffic values ​​in a predetermined time period, a system security log in the predetermined time period, and threat intelligence in the predetermined time period; Encoding the network behavior data to be detected to obtain a network behavior encoding vector to be detected; Based on the feature query matching of the to-be-detected network behavior encoding vector relative to the set of attack behavior multimodal encoding vectors, it is determined whether the to-be-detected network behavior is an attack behavior.

[0006] Compared with the prior art, the network attack identification method based on behavior modeling provided by the present application performs data fusion analysis based on network traffic data, combined with system security logs and threat intelligence, uses deep learning technology to mine attack behavior feature patterns, builds a network attack behavior model, and then achieves rapid detection and identification of network attack behaviors based on query matching between the network behavior data to be detected and the network attack behavior model. In this way, the accuracy of network attack identification can be effectively improved, the false alarm rate and missed alarm rate can be reduced, and more reliable technical support can be provided for network security protection. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] By describing the embodiments of the present application in more detail in conjunction with the accompanying drawings, the above and other purposes, features and advantages of the present application will become more apparent. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application. In the accompanying drawings, the same reference numerals generally represent the same components or steps.

[0008] Figure 1 A flowchart of a network attack identification method based on behavior modeling according to an embodiment of the present application; Figure 2 A data flow diagram of a network attack identification method based on behavior modeling according to an embodiment of the present application; Figure 3 A flowchart of the training phase of the network attack identification method based on behavior modeling according to an embodiment of the present application; Figure 4 Flow chart of sub-step S2 of the network attack identification method based on behavior modeling according to an embodiment of the present application; Figure 5 This is a flowchart of sub-step S5 of the network attack identification method based on behavior modeling according to an embodiment of the present application. DETAILED DESCRIPTION

[0009] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.

[0010] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.

[0011] Although the present application makes various references to certain modules in the system according to the embodiments of the present application, any number of different modules can be used and run on the user terminal and / or server. The modules are only illustrative, and different aspects of the system and method can use different modules.

[0012] Flowcharts are used in the present application to illustrate the operations performed by the system according to the embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed accurately in order. On the contrary, various steps may be processed in reverse order or simultaneously as required. Meanwhile, other operations may also be added to these processes, or a certain step or several steps of operations may be removed from these processes.

[0013] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.

[0014] Traditional network attack modeling technology mainly relies on static rule bases and simple pattern matching methods. It is often difficult to effectively deal with complex and changeable network attack scenarios by performing simple rule matching or statistical analysis on network security logs, resulting in limited accuracy and efficiency of attack identification. Therefore, an optimized network attack identification method based on behavior modeling is expected.

[0015] In the technical solution of the present application, a network attack identification method based on behavior modeling is proposed. Figure 1 The present invention is a flowchart of a network attack identification method based on behavior modeling according to an embodiment of the present application. Figure 2 : is a data flow diagram of a network attack identification method based on behavior modeling according to an embodiment of the present application. Figure 1 and Figure 2As shown, according to the embodiment of the present application, the network attack identification method based on behavior modeling includes the following steps: S1, extracting a set of network behavior reference data marked as attack behaviors from a background database, wherein the network behavior reference data includes a time series of network traffic values ​​in a predetermined time period, a system security log in the predetermined time period, and threat intelligence in the predetermined time period; S2, based on the set of network behavior reference data marked as attack behaviors, modeling the network attack behaviors to obtain a set of multimodal coding vectors of attack behaviors; S3, acquiring network behavior data to be detected, wherein the network behavior data to be detected includes a time series of network traffic values ​​in a predetermined time period, a system security log in the predetermined time period, and threat intelligence in the predetermined time period; S4, encoding the network behavior data to be detected to obtain a coding vector of the network behavior to be detected; S5, determining whether the network behavior to be detected is an attack behavior based on feature query matching of the coding vector of the network behavior to be detected relative to the set of multimodal coding vectors of the attack behavior.

[0016] In particular, S1 extracts a set of network behavior reference data marked as attack behaviors from a background database, wherein the network behavior reference data includes a time series of network traffic values ​​in a predetermined time period, a system security log in the predetermined time period, and threat intelligence in the predetermined time period. It should be understood that by combining multi-source information, the characteristic pattern of attack behaviors can be more comprehensively described, thereby improving the comprehensiveness and depth of attack behavior identification.

[0017] In particular, the S2, based on the set of network behavior reference data marked as attack behaviors, models the network attack behaviors to obtain a set of attack behavior multimodal encoding vectors. In particular, in a specific example of the present application, Figure 4 As shown, S2 includes: S21, for each network behavior reference data in the set of network behavior reference data marked as attack behavior, feature extraction is performed on the time series of network traffic values ​​in the predetermined time period, the system security log of the predetermined time period, and the threat intelligence of the predetermined time period to obtain a network traffic time series associated implicit feature vector, a system security log semantic coding vector, and a threat intelligence semantic coding vector; S22, the system security log semantic coding vector and the threat intelligence semantic coding vector are input into a feature vector dynamic interactive fusion module based on gated response to obtain a system security log-threat intelligence semantic fusion representation vector; S23, the system security log-threat intelligence semantic fusion representation vector and the network traffic time series associated implicit feature vector are input into a feature interactive response module based on an adaptive distinguishable mechanism to obtain the attack behavior multimodal coding vector.

[0018] Specifically, the S21, for each network behavior reference data in the set of network behavior reference data marked as attack behavior, performs feature extraction on the time series of network traffic values ​​in the predetermined time period, the system security log of the predetermined time period, and the threat intelligence of the predetermined time period to obtain a network traffic time series associated implicit feature vector, a system security log semantic coding vector, and a threat intelligence semantic coding vector. In an embodiment of the present application, first, the time series of network traffic values ​​in the predetermined time period is input into a sequence encoder based on a Bi-LSTM model to obtain the network traffic time series associated implicit feature vector. Considering that network attacks often lead to abnormal patterns of network traffic data, such as sudden increases in traffic, abnormal data packet sizes, atypical time distribution, etc. Therefore, in order to fully understand the temporal correlation change characteristics of network traffic data, for each network behavior reference data in the set of network behavior reference data marked as attack behavior, a sequence encoder based on the Bi-LSTM model is further used to temporally encode the time series of network traffic values ​​in the predetermined time period, and the bidirectional memory characteristics of the Bi-LSTM model are used to effectively capture the temporal dependency and contextual association in the data, thereby obtaining the network traffic temporal correlation implicit feature vector corresponding to each network behavior reference data, so as to characterize the potential attack behavior pattern in the traffic data. It is worth mentioning that the bidirectional long short-term memory network (Bi-LSTM) is a commonly used recurrent neural network (RNN) variant for processing sequence data, especially in the field of natural language processing. Bi-LSTM combines LSTM layers in both forward and reverse directions, which can better capture long-distance dependencies in sequence data. At the same time, since system security logs and threat intelligence play a key complementary role in the identification of network attack behaviors, in the technical solution of the present application, these unstructured or semi-structured data are further embedded and encoded and contextual semantically understood through a semantic encoder containing a word embedding layer. In a specific embodiment of the present application, a pre-trained word vector model (such as Word2Vec, GloVe, etc.) can be used to initialize the word embedding layer to enhance the semantic understanding of key words in logs and intelligence. Subsequently, the Transformer model is used to perform deep semantic encoding on the vector sequence after word embedding to fully capture the contextual information and semantic dependencies in the system security log and threat intelligence, and generate the system security log semantic encoding vector and the threat intelligence semantic encoding vector.

[0019] Specifically, the S22 inputs the system security log semantic coding vector and the threat intelligence semantic coding vector into a feature vector dynamic interactive fusion module based on gated response to obtain a system security log-threat intelligence semantic fusion representation vector. Considering that the system security log and the threat intelligence respectively record the internal operation status and abnormal events of the system as well as the external security threats and attack modes, the two have different focuses when describing network attack behaviors, and there is often a complementary relationship between the two. Therefore, in the technical solution of the present application, the system security log semantic coding vector and the threat intelligence semantic coding vector are further fused through a feature vector dynamic interactive fusion module based on gated response to achieve a comprehensive understanding of network attack behaviors. Among them, the feature vector dynamic interactive fusion module introduces a gating mechanism to adaptively adjust the feature fusion weights of the system security log and threat intelligence to achieve deep integration and complementary enhancement of information, so as to more accurately reflect the essential characteristics of network attack behaviors and generate a system security log-threat intelligence semantic fusion representation vector.

[0020] In an embodiment of the present application, the system security log semantic coding vector and the threat intelligence semantic coding vector are input into a feature vector dynamic interactive fusion module based on gated response to obtain a system security log-threat intelligence semantic fusion representation vector, including: cascading the system security log semantic coding vector and the threat intelligence semantic coding vector to obtain a system security log-threat intelligence semantic joint feature vector; inputting the system security log-threat intelligence semantic joint feature vector into a gated response function to obtain an information fusion response gate; calculating a difference with the information fusion response gate, and using the information fusion response gate and the difference as weights to calculate the position-weighted sum of the system security log semantic coding vector and the charging and discharging real-time temperature input vector to obtain the system security log-threat intelligence semantic fusion representation vector.

[0021] Among them, the process of inputting the system security log-threat intelligence semantic joint feature vector into the gated response function to obtain the response gate of information fusion includes: using a predetermined weight vector to multiply the system security log-threat intelligence semantic joint feature vector to obtain an information interaction fusion correlation coefficient; adding the information interaction fusion correlation coefficient and a predetermined bias parameter and then activating it through a sigmoid function to obtain the response gate of the information fusion.

[0022] In summary, in the above embodiment, the system security log semantic coding vector and the threat intelligence semantic coding vector are input into the feature vector dynamic interactive fusion module based on gated response to obtain the system security log-threat intelligence semantic fusion representation vector, including: fusing the system security log semantic coding vector and the threat intelligence semantic coding vector with the following interactive fusion formula to obtain the system security log-threat intelligence semantic fusion representation vector, wherein the interactive fusion formula is; in, is the semantic encoding vector of the system security log, is the real-time temperature input vector of charge and discharge, Indicates cascade operation, is the sigmoid function, is the predetermined weight vector, is the predetermined bias parameter, is the response gate of information fusion, It is the system security log-threat intelligence semantic fusion representation vector.

[0023] Specifically, the S23 inputs the system security log-threat intelligence semantic fusion representation vector and the network traffic time series associated implicit feature vector into a feature interaction response module based on an adaptive distinguishable mechanism to obtain the attack behavior multimodal encoding vector. It should be understood that the system security log and threat intelligence provide behavioral records of network attacks, while the network traffic data directly reflects the real-time network activity status, and there is a close correlation and response relationship between the two. Based on this, in the technical solution of the present application, the system security log-threat intelligence semantic fusion representation vector and the network traffic time series associated implicit feature vector are further responded and analyzed by a feature interaction response module based on an adaptive distinguishable mechanism to explore the deep-level correlation between the two.

[0024] In an embodiment of the present application, the process of inputting the system security log-threat intelligence semantic fusion representation vector and the network traffic time series associated implicit feature vector into a feature interaction response module based on an adaptive distinguishable mechanism to obtain the attack behavior multimodal encoding vector includes: first, calculating the position-by-position response between the system security log-threat intelligence semantic fusion representation vector and the network traffic time series associated implicit feature vector to obtain the attack behavior position-by-position response feature vector; and using a Softmax function to normalize the attack behavior position-by-position response feature vector to obtain a normalized attack behavior position-by-position response feature vector to balance the scale of the feature response; and then, calculating the normalized attack behavior position-by-position response feature vector. The feature vector is input into a learnable gating function to obtain an attack behavior response screening weight mask vector; that is, the normalized position-by-position response feature vector is adaptively learned through a learnable gating function and a response screening weight mask is output, and the weight distribution is further refined through a mask operation to improve the distinguishability of feature selection; finally, the position-by-position dot multiplication between the attack behavior response screening weight mask vector and the normalized attack behavior position-by-position response feature vector is calculated to obtain an attack behavior position-by-position response distinguishable weight mask vector; and the position-by-position dot multiplication between the attack behavior position-by-position response distinguishable weight mask vector and the attack behavior position-by-position response feature vector is calculated to obtain the attack behavior multimodal encoding vector. That is, through a dot multiplication operation, the original position-by-position response feature vector is weighted position-by-position using the masked position-by-position response weight to obtain an attack behavior multimodal encoding vector, which constitutes a multidimensional feature description of network attack behavior. Through this position-by-position weight refinement, the information screening capability in the feature association response analysis process can be effectively improved, making the multimodal feature representation of attack behavior more targeted.

[0025] In summary, in the above embodiment, the system security log-threat intelligence semantic fusion representation vector and the network traffic time series associated implicit feature vector are input into a feature interaction response module based on an adaptive distinguishable mechanism to obtain the attack behavior multimodal encoding vector, including: processing the system security log-threat intelligence semantic fusion representation vector and the network traffic time series associated implicit feature vector with the following feature interaction response formula to obtain the attack behavior multimodal encoding vector, wherein the feature interaction response formula is: in, represents the system security log-threat intelligence semantic fusion representation vector, represents the implicit feature vector associated with the network traffic time series, represents the position-by-position response feature vector of the attack behavior, is the normalized exponential function, represents the normalized attack behavior position-by-position response feature vector, represents the attack behavior response screening weight mask vector, represents the exponential function operation with e as the base, It means point multiplication by position. Represents the multimodal encoding vector of the attack behavior.

[0026] It is worth mentioning that in other specific examples of the present application, network attack behaviors can also be modeled based on the set of network behavior reference data labeled as attack behaviors in other ways to obtain a set of multimodal encoding vectors of attack behaviors, for example: inputting the set of network behavior reference data labeled as attack behaviors; extracting features, which may include statistical features, spectral features, time domain features, etc., to capture key information; using deep learning methods such as autoencoders, convolutional neural networks, recurrent neural networks, etc. to learn abstract representations of data; fusing features from different data sources (such as text, images, audio) to construct a multimodal feature vector; to obtain the set of multimodal encoding vectors of the attack behavior.

[0027] In particular, the S3 and S4 obtain the network behavior data to be detected, wherein the network behavior data to be detected includes the time series of network traffic values ​​in a predetermined time period, the system security logs in the predetermined time period, and the threat intelligence in the predetermined time period. That is, the same processing flow as the above-mentioned network behavior reference data is adopted to perform feature extraction and correlation analysis on the time series of network traffic values, system security logs, and threat intelligence in the network behavior data to be detected, so as to generate the coding vector of the network behavior to be detected.

[0028] In particular, the S5 determines whether the network behavior to be detected is an attack behavior based on a feature query match between the network behavior encoding vector to be detected and the set of attack behavior multimodal encoding vectors. In particular, in a specific example of the present application, Figure 5 As shown, the S5 includes: S51, taking the coding vector of the network behavior to be detected as a query feature vector, calculating the one-way attention granular scanning interaction matching result of the query feature vector relative to the set of multimodal coding vectors of the attack behavior to obtain a one-way matching result representation vector; S52, inputting the one-way matching result representation vector into a classifier-based network behavior identifier to obtain a recognition result, and the recognition result is used to indicate whether the network behavior to be detected is an attack behavior.

[0029] Specifically, the S51 uses the network behavior coding vector to be detected as a query feature vector, and calculates the one-way attention granular scanning interactive matching result of the query feature vector relative to the set of the attack behavior multimodal coding vector to obtain a one-way matching result representation vector. That is, through the one-way attention granular scanning interactive matching mechanism, the fine-grained correlation between the network behavior coding vector to be detected and the set of the attack behavior multimodal coding vector is deeply analyzed. Specifically, first, the attention weight is generated based on the feature similarity between the network behavior feature to be detected and each attack behavior feature, and the set of the attack behavior multimodal coding vector is weighted and fused to obtain the most relevant information comprehensive feature representation of the network behavior data to be detected in the network behavior reference data marked as attack behavior, and then calculates the granular feature difference between it and the network behavior coding vector to be detected by feature difference, so as to reveal the mismatch or difference between the network behavior data to be detected and the network behavior reference data, thereby obtaining a one-way matching result representation vector, which provides a strong basis for further anomaly detection.

[0030] In an embodiment of the present application, the network behavior coding vector to be detected is used as a query feature vector, and a one-way attention granular scanning interaction matching result of the query feature vector relative to the set of attack behavior multimodal coding vectors is calculated to obtain a one-way matching result representation vector, including: calculating the semantic measurement coefficient between the query feature vector and each attack behavior multimodal coding vector in the set of attack behavior multimodal coding vectors to obtain a sequence of one-way matching semantic measurement coefficients; normalizing the sequence of one-way matching semantic measurement coefficients through a softmax function to obtain a sequence of one-way matching semantic measurement weights; using the sequence of one-way matching semantic measurement weights as weights, calculating the weighted sum of the set of attack behavior multimodal coding vectors to obtain an attack behavior feature reshaping representation vector; and calculating the differential feature vector between the query feature vector and the attack behavior feature reshaping representation vector as the one-way matching result representation vector.

[0031] Among them, calculating the semantic measurement coefficient between the query feature vector and each attack behavior multimodal coding vector in the set of attack behavior multimodal coding vectors to obtain a sequence of one-way matching semantic measurement coefficients includes: calculating the square of each eigenvalue of each attack behavior multimodal coding vector in the set of attack behavior multimodal coding vectors to obtain a set of non-linear transformation attack behavior multimodal coding vectors; cascading the query feature vector and each non-linear transformation attack behavior multimodal coding vector in the set of non-linear transformation attack behavior multimodal coding vectors to obtain a sequence of semantic association feature vectors; using a preset transformation vector to multiply each semantic association feature vector in the sequence of semantic association feature vectors to obtain a sequence of semantic similarities; adding a bias term to each semantic similarity in the sequence of semantic similarities and then passing it through a sigmoid activation function to obtain a sequence of one-way matching semantic measurement coefficients.

[0032] In summary, in the above embodiment, the network behavior encoding vector to be detected is used as a query feature vector, and the one-way attention granular scanning interactive matching result of the query feature vector relative to the set of the attack behavior multimodal encoding vector is calculated to obtain a one-way matching result representation vector, including: processing the query feature vector and the set of the attack behavior multimodal encoding vector using the following one-way interactive matching formula to obtain the one-way matching result representation vector, wherein the one-way interactive matching formula is: in, represents the query feature vector, The first one in the set of multimodal encoding vectors of the attack behavior attack behavior multimodal encoding vector, Indicates cascade operation, is the preset transformation vector, is the bias parameter, express function, Represents the query feature vector and the The one-way matching semantic metric coefficient between the multimodal encoding vectors of attack behaviors, is the number of multimodal encoding vectors of the attack behavior, represents the exponential function operation with e as the base, Represents the query feature vector and the The one-way matching semantic metric weight between the multimodal encoding vectors of attack behaviors, Represents the attack behavior feature reshape representation vector, It means subtracting by position. Indicates that the one-way matching result represents a vector.

[0033] Specifically, in S52, the one-way matching result representation vector is input into a network behavior identifier based on a classifier to obtain a recognition result, and the recognition result is used to indicate whether the network behavior to be detected is an attack behavior. That is, in the technical solution of the present application, the powerful classification ability of the classifier is used to perform feature pattern recognition and classification judgment on the one-way matching result representation vector to identify whether the network behavior to be detected belongs to a network attack behavior, thereby quickly understanding the network security situation and taking timely countermeasures.

[0034] It is worth mentioning that in other specific examples of the present application, it is also possible to determine whether the network behavior to be detected is an attack behavior based on the feature query matching of the network behavior coding vector to be detected relative to the set of attack behavior multimodal coding vectors in other ways, for example: input the network behavior coding vector to be detected; use an appropriate similarity measurement method (such as cosine similarity, Euclidean distance, etc.) to calculate the similarity between the network behavior coding vector to be detected and each attack behavior multimodal coding vector; compare the network behavior coding vector to be detected with each coding vector in the set of attack behavior multimodal coding vectors; set a similarity threshold to determine whether the network behavior to be detected matches the attack behavior; if the similarity between the network behavior coding vector to be detected and any attack behavior multimodal coding vector exceeds the set threshold, it is determined to be an attack behavior; otherwise, it is determined to be a normal behavior.

[0035] It should be understood that before using the above-mentioned neural network model for inference, it is necessary to train the sequence encoder based on the Bi-LSTM model, the semantic encoder including the word embedding layer, the feature vector dynamic interaction fusion module based on the gated response, the feature interaction response module based on the adaptive distinguishable mechanism, and the network behavior identifier based on the classifier. That is to say, in the network attack identification method based on behavioral modeling of the present application, it also includes a training phase for training the sequence encoder based on the Bi-LSTM model, the semantic encoder including the word embedding layer, the feature vector dynamic interaction fusion module based on the gated response, the feature interaction response module based on the adaptive distinguishable mechanism, and the network behavior identifier based on the classifier.

[0036] Figure 3 FIG. 1 is a flow chart of the training phase of the network attack identification method based on behavior modeling according to an embodiment of the present application. Figure 3As shown, according to the network attack identification method based on behavior modeling of the embodiment of the present application, it includes: a training stage, including: S110, obtaining training data, the training data including a set of training network behavior reference data marked as attack behavior, training network behavior data to be detected, and a true value of whether the training network behavior to be detected is an attack behavior, wherein the training network behavior reference data includes a time series of training network traffic values ​​in a predetermined time period, a training system security log in the predetermined time period, and training threat intelligence in the predetermined time period, and the training network behavior data to be detected includes a time series of training network traffic values ​​in a predetermined time period, a training system security log in the predetermined time period, and training threat intelligence in the predetermined time period. threat intelligence; S120, for each training network behavior reference data in the set of training network behavior reference data marked as attack behavior, the time series of the training network traffic value of the predetermined time period is input into the sequence encoder based on the Bi-LSTM model to obtain the training network traffic time series associated implicit feature vector, and the training system security log of the predetermined time period and the training threat intelligence of the predetermined time period are input into the semantic encoder including the word embedding layer to obtain the training system security log semantic encoding vector and the training threat intelligence semantic encoding vector; S130, the training system security log semantic encoding vector and the training threat intelligence semantic encoding vector are input into the feature vector dynamic interaction based on the gated response Fusion module to obtain the training system security log-threat intelligence semantic fusion representation vector; S140, respectively input the training system security log-threat intelligence semantic fusion representation vector of each training network behavior reference data and the training network traffic time series associated implicit feature vector into the feature interaction response module based on the adaptive distinguishable mechanism to obtain a set of training attack behavior multimodal encoding vectors; S150, encode the training network behavior data to be detected to obtain the training network behavior encoding vector to be detected; S160, use the training network behavior encoding vector to be detected as the training query feature vector, calculate the unidirectional attention granularity of the training query feature vector relative to the set of training attack behavior multimodal encoding vectors Scan the interactive matching results to obtain a training one-way matching result representation vector; S170, input the training one-way matching result representation vector into the classifier-based network behavior identifier to obtain a classification loss function value; S180, calculate the one-way matching result loss function value of the training one-way matching result representation vector; S190, use the weighted sum of the one-way matching result loss function value and the classification loss function value as the loss function value to train the sequence encoder based on the Bi-LSTM model, the semantic encoder including the word embedding layer, the feature vector dynamic interaction fusion module based on the gated response, the feature interaction response module based on the adaptive distinguishable mechanism and the classifier-based network behavior identifier.

[0037] In particular, in a preferred example, the set of the training network behavior coding vector to be detected and the set of the training attack behavior multimodal coding vector respectively express the encoded multimodal fusion semantic features of the training network behavior data to be detected and the set of network behavior reference data labeled as attack behavior. Thus, after using the training network behavior coding vector to be detected as a query feature vector and calculating the one-way attention granular scanning interactive matching result of the query feature vector relative to the set of training attack behavior multimodal coding vectors, the obtained training one-way matching result representation vector will also lead to differences in the one-way attention weights of the interactive scanning matching due to the differences in the distribution of the encoded multimodal fusion semantic features based on the multimodal semantic differences in the source domain, thereby having classification regression recognition difficulties attributed to complex semantic interactive matching, thereby affecting the classification training efficiency.

[0038] Therefore, the applicant of the present application further introduces a predetermined loss function other than the classification loss function value during the model training process, that is, training the model through gradient back propagation based on the loss function includes the following steps: Calculate a first one-way matching result weight matrix and a second one-way matching result weight matrix based on the training one-way matching result representation vector, wherein the first one-way matching result weight matrix The feature value of the position is the first Eigenvalues ​​and The mean of the eigenvalues, and the weight matrix of the second one-way matching result The feature value of the position is the first Eigenvalues ​​and One-half the absolute value of the difference in eigenvalues; Performing query matrix multiplication of the training one-way matching result representation vector with the first one-way matching result weight matrix and the second one-way matching result weight matrix to obtain a first one-way matching result intermediate vector and a second one-way matching result intermediate vector; Calculate the vector inner product of the first one-way matching result intermediate vector and the second one-way matching result intermediate vector to obtain a first one-way matching result loss term; Perform matrix multiplication on the first one-way matching result weight matrix and the second one-way matching result weight matrix, and calculate the result matrix norm to obtain the second one-way matching result loss term; Subtracting the product of a predetermined weight hyperparameter and the second one-way matching result loss term from the first one-way matching result loss term to obtain a one-way matching result loss function value; and Based on the weighted sum of the one-way matching result loss function value and the classification loss function value, the model parameters are optimized through gradient back propagation.

[0039] The one-way matching result loss function value is specifically expressed as: in, represents the training one-way matching result representation vector, The training one-way matching result represents the first eigenvalues, The training one-way matching result represents the first eigenvalues, is the first one-way matching result weight matrix, The training one-way matching result represents the first The eigenvalues ​​and The mean of the eigenvalues, is the second one-way matching result weight matrix, The training one-way matching result represents the first The eigenvalues ​​and One-half the absolute value of the difference between the eigenvalues, represents the matrix multiplication operation, is the predetermined weight hyperparameter, Represents the matrix norm, Represents the one-way matching result loss function value.

[0040] That is, in the above preferred example, the one-way matching result loss function value is used to perform the query composition of the detail inner product space within the training one-way matching result representation vector through the structured feature representation of the short-range and long-range cross-scale detail links of the training one-way matching result representation vector, so as to approximate the low-rank independent observable composition of the link detail composition provided by the structured detail interaction of the training one-way matching result representation vector. In this way, by training with the one-way matching result loss function value, the distributed detail groups of the training one-way matching result representation vector can be used to decompose the detail groups based on the detail complexity, so as to promote the classification regression decomposition and recognition of the complex feature structure of the training one-way matching result representation vector and improve the classification training efficiency.

[0041] In summary, the wind and solar power generation energy storage management method according to the embodiment of the present application is explained, which collects the energy storage parameters of the stored batteries during the energy storage process, and uses a deep neural network model as a feature extractor to capture various energy storage parameters and high-dimensional implicit features between various energy storage parameters, and performs decoding regression through a decoder to obtain a more accurate SOC measurement value.

[0042] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A network attack identification method based on behavior modeling, It is characterized in that include: Extracting a set of network behavior reference data marked as attack behaviors from a backend database, wherein the network behavior reference data includes a time series of network traffic values ​​in a predetermined time period, a system security log in the predetermined time period, and threat intelligence in the predetermined time period; Based on the set of network behavior reference data marked as attack behaviors, modeling the network attack behaviors to obtain a set of attack behavior multimodal encoding vectors; Acquire the network behavior data to be detected, wherein the network behavior data to be detected includes a time series of network traffic values ​​in a predetermined time period, a system security log in the predetermined time period, and threat intelligence in the predetermined time period; Encoding the network behavior data to be detected to obtain a network behavior encoding vector to be detected; Based on the feature query matching of the to-be-detected network behavior encoding vector relative to the set of attack behavior multimodal encoding vectors, it is determined whether the to-be-detected network behavior is an attack behavior.

2. The network attack identification method based on behavior modeling according to claim 1, It is characterized in that Based on the set of network behavior reference data marked as attack behaviors, modeling the network attack behaviors to obtain a set of attack behavior multimodal encoding vectors, including: For each network behavior reference data in the set of network behavior reference data marked as attack behavior, feature extraction is performed on the time series of network traffic values ​​in the predetermined time period, the system security log in the predetermined time period, and the threat intelligence in the predetermined time period to obtain a network traffic time series associated implicit feature vector, a system security log semantic coding vector, and a threat intelligence semantic coding vector; Inputting the system security log semantic encoding vector and the threat intelligence semantic encoding vector into a feature vector dynamic interactive fusion module based on gated response to obtain a system security log-threat intelligence semantic fusion representation vector; The system security log-threat intelligence semantic fusion representation vector and the network traffic time series associated implicit feature vector are input into a feature interaction response module based on an adaptive distinguishable mechanism to obtain the attack behavior multimodal encoding vector.

3. The network attack identification method based on behavior modeling according to claim 2, It is characterized in that The time series of the network traffic value in the predetermined time period, the system security log in the predetermined time period, and the threat intelligence in the predetermined time period are respectively subjected to feature extraction to obtain a network traffic time series associated implicit feature vector, a system security log semantic coding vector, and a threat intelligence semantic coding vector, including: Inputting the time series of the network traffic value of the predetermined time period into a sequence encoder based on the Bi-LSTM model to obtain the network traffic time series associated implicit feature vector; The system security log of the predetermined time period and the threat intelligence of the predetermined time period are input into a semantic encoder including a word embedding layer to obtain the system security log semantic encoding vector and the threat intelligence semantic encoding vector.

4. The network attack identification method based on behavior modeling according to claim 3, It is characterized in that Inputting the system security log semantic encoding vector and the threat intelligence semantic encoding vector into a feature vector dynamic interactive fusion module based on gated response to obtain a system security log-threat intelligence semantic fusion representation vector, including: Concatenate the system security log semantic encoding vector and the threat intelligence semantic encoding vector to obtain a system security log-threat intelligence semantic joint feature vector; Inputting the system security log-threat intelligence semantic joint feature vector into a gated response function to obtain an information fusion response gate; Calculate a difference with the response gate of the information fusion, and use the response gate of the information fusion and the difference as weights to calculate the position-weighted sum of the system security log semantic encoding vector and the charging and discharging real-time temperature input vector to obtain the system security log-threat intelligence semantic fusion representation vector.

5. The network attack identification method based on behavior modeling according to claim 4, It is characterized in that Inputting the system security log-threat intelligence semantic joint feature vector into the gated response function to obtain the information fusion response gate, including: Multiplying the system security log-threat intelligence semantic joint feature vector by a predetermined weight vector to obtain an information interaction fusion correlation coefficient; After the information interaction fusion correlation coefficient and the predetermined bias parameter are added, activation processing is performed through a sigmoid function to obtain a response gate for the information fusion.

6. The network attack identification method based on behavior modeling according to claim 5, It is characterized in that Inputting the system security log-threat intelligence semantic fusion representation vector and the network traffic time series associated implicit feature vector into a feature interaction response module based on an adaptive distinguishable mechanism to obtain the attack behavior multimodal encoding vector, including: Calculating the position-by-position response between the system security log-threat intelligence semantic fusion representation vector and the network traffic time series associated implicit feature vector to obtain the attack behavior position-by-position response feature vector; Using a Softmax function to normalize the attack behavior position-by-position response feature vector to obtain a normalized attack behavior position-by-position response feature vector; Inputting the normalized attack behavior position-by-position response feature vector into a learnable gating function to obtain an attack behavior response screening weight mask vector; Calculating the position-wise multiplication between the attack behavior response screening weight mask vector and the normalized attack behavior position-by-position response feature vector to obtain an attack behavior position-by-position response distinguishable weight mask vector; The attack behavior multimodal encoding vector is obtained by calculating the position-wise multiplication between the distinguishable weight mask vector of the attack behavior position-wise response and the feature vector of the attack behavior position-wise response.

7. The network attack identification method based on behavior modeling according to claim 6, It is characterized in that Determining whether the network behavior to be detected is an attack behavior based on a feature query match between the network behavior encoding vector to be detected and the set of attack behavior multimodal encoding vectors includes: Taking the to-be-detected network behavior encoding vector as a query feature vector, calculating a one-way attention granular scanning interactive matching result of the query feature vector relative to a set of the attack behavior multimodal encoding vectors to obtain a one-way matching result representation vector; The one-way matching result representation vector is input into a classifier-based network behavior identifier to obtain a recognition result, and the recognition result is used to indicate whether the network behavior to be detected is an attack behavior.

8. The network attack identification method based on behavior modeling according to claim 7, It is characterized in that Taking the network behavior encoding vector to be detected as a query feature vector, calculating the one-way attention granular scanning interactive matching result of the query feature vector relative to the set of attack behavior multimodal encoding vectors to obtain a one-way matching result representation vector, including: Calculating semantic metric coefficients between the query feature vector and each attack behavior multimodal encoding vector in the set of attack behavior multimodal encoding vectors to obtain a sequence of one-way matching semantic metric coefficients; Normalizing the sequence of one-way matching semantic metric coefficients through a softmax function to obtain a sequence of one-way matching semantic metric weights; Using the sequence of the one-way matching semantic measurement weights as weights, calculating the weighted sum of the set of attack behavior multimodal encoding vectors to obtain an attack behavior feature reshaping representation vector; A differential feature vector between the query feature vector and the attack behavior feature reshaping representation vector is calculated as the one-way matching result representation vector.

9. The network attack identification method based on behavior modeling according to claim 8, It is characterized in that Calculating the semantic metric coefficient between the query feature vector and each attack behavior multimodal encoding vector in the set of attack behavior multimodal encoding vectors to obtain a sequence of one-way matching semantic metric coefficients, including: Calculating the square of each eigenvalue of each attack behavior multimodal coding vector in the set of attack behavior multimodal coding vectors to obtain a set of nonlinear transformation attack behavior multimodal coding vectors; Concatenating the query feature vector with each nonlinear transformation attack behavior multimodal encoding vector in the set of nonlinear transformation attack behavior multimodal encoding vectors to obtain a sequence of semantic association feature vectors; Using a preset transformation vector to multiply each semantic association feature vector in the sequence of semantic association feature vectors respectively to obtain a sequence of semantic similarities; Each semantic similarity in the sequence of semantic similarities is added with a bias term and then passed through a sigmoid activation function to obtain a sequence of one-way matching semantic measurement coefficients.

10. The network attack identification method based on behavior modeling according to claim 9, It is characterized in that The method further includes a training step of: training the sequence encoder based on the Bi-LSTM model, the semantic encoder including the word embedding layer, the feature vector dynamic interaction fusion module based on the gated response, the feature interaction response module based on the adaptive distinguishable mechanism, and the network behavior identifier based on the classifier; Wherein, the training step includes: Acquire training data, the training data including a set of training network behavior reference data marked as attack behaviors, training network behavior data to be detected, and a true value of whether the training network behavior to be detected is an attack behavior, wherein the training network behavior reference data includes a time series of training network traffic values ​​in a predetermined time period, a training system security log in the predetermined time period, and training threat intelligence in the predetermined time period, and the training network behavior data to be detected includes a time series of training network traffic values ​​in a predetermined time period, a training system security log in the predetermined time period, and training threat intelligence in the predetermined time period; For each training network behavior reference data in the set of training network behavior reference data marked as attack behaviors, the time series of the training network traffic value in the predetermined time period is input into the sequence encoder based on the Bi-LSTM model to obtain the training network traffic time series associated implicit feature vector, and the training system security log in the predetermined time period and the training threat intelligence in the predetermined time period are input into the semantic encoder including the word embedding layer to obtain the training system security log semantic encoding vector and the training threat intelligence semantic encoding vector; Inputting the training system security log semantic encoding vector and the training threat intelligence semantic encoding vector into the gated response-based feature vector dynamic interactive fusion module to obtain a training system security log-threat intelligence semantic fusion representation vector; Inputting the training system security log-threat intelligence semantic fusion representation vector of each training network behavior reference data and the training network traffic time series associated implicit feature vector into the feature interaction response module based on the adaptive distinguishable mechanism to obtain a set of training attack behavior multimodal encoding vectors; Encoding the training network behavior data to be detected to obtain a training network behavior encoding vector; Taking the training to-be-detected network behavior encoding vector as a training query feature vector, calculating a one-way attention granular scanning interactive matching result of the training query feature vector relative to the set of training attack behavior multimodal encoding vectors to obtain a training one-way matching result representation vector; Inputting the training one-way matching result representation vector into the classifier-based network behavior identifier to obtain a classification loss function value; Calculating a one-way matching result loss function value of the training one-way matching result representation vector; The weighted sum of the one-way matching result loss function value and the classification loss function value is used as the loss function value to train the sequence encoder based on the Bi-LSTM model, the semantic encoder including the word embedding layer, the feature vector dynamic interaction fusion module based on the gated response, the feature interaction response module based on the adaptive distinguishable mechanism, and the classifier-based network behavior identifier.

Citation Information

Patent Citations

  • Real-time log detection early warning method and system based on machine learning

    CN114816909A

  • Information system network attack detection method based on flow analysis

    CN115150182A

  • Network security threat prediction method and system based on threat intelligence

    CN115987544A

  • Data attack behavior modeling method for use and acquisition system based on relation graph

    CN116108202A

  • Attack behavior response method and system based on threat intelligence

    CN117220957A

Cited By

  • CMM automatic coordinate measuring machine and method thereof

    CN119043233A

  • Network security monitoring method and system based on distributed computing power state monitoring

    CN119172184A

  • Network intrusion detection method and device, electronic equipment and storage medium

    CN119603071A

  • Autonomous identification mining method for network abnormal behaviors

    CN119696897A

  • Evidence obtaining method and device based on behavior recognition model and electronic equipment

    CN120915487A