Network behavior anomaly detection method and system based on data mining and electronic equipment
By obtaining and analyzing users' network behavior data, performing feature extraction and correlation analysis, and using classifiers to determine abnormal behaviors, the problem of false positives and false negatives in the existing technology is solved, network security is improved, and potential threats are identified and responded to in a timely manner.
Patent Information
- Application Number
- CN202411014372.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-09-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing network behavior anomaly detection methods are prone to false positives and false negatives when determining abnormal user behavior, are difficult to effectively prevent hacker intrusions and information theft, and cannot identify potential threats in a timely manner.
By obtaining the text data of the user's current login IP, historical login IP, current login device and historical login device, as well as the network device log data and server log data recorded by the anti-attack system, feature extraction and correlation analysis are performed, and a classifier is used to determine whether Issue abnormal behavior alerts and authenticate users or restrict access rights.
Improve network security, reduce the risk of false positives and false negatives, promptly identify and respond to potential security threats, and protect the security of network systems and data.
Smart Images

Figure CN118713918A
Abstract
Description
Technical Field
[0001] The present application relates to the field of data mining, and more specifically, to a method, system and electronic device for detecting abnormal network behavior based on data mining. Background Art
[0002] Abnormal network behavior covers malicious attacks, changes in user behavior, and information theft. In recent years, hacker intrusions have disrupted normal network use, attempting to gain unauthorized access, spread viruses, or steal sensitive information. Changes in user behavior and information theft are also common abnormal network behaviors. Malicious users may steal other people's login credentials or identity information and impersonate legitimate users to operate. These abnormal behaviors pose a threat to network and information security, causing serious harm and losses.
[0003] When detecting abnormal network behavior, if the user's network behavior can be intelligently perceived, it can be prevented before it happens and protect the interests of the user. However, currently the server usually determines whether there is abnormal user behavior by detecting the user's access information, but the behavior of normal users may also change due to individual differences, environmental changes, etc., which increases the risk of false positives and false negatives.
[0004] Therefore, a method, system and electronic device for detecting abnormal network behavior based on data mining are desired. Summary of the invention
[0005] In order to solve the above technical problems, the present application is proposed. The embodiments of the present application provide a network behavior anomaly detection method, system and electronic device based on data mining, which first obtains the current text data containing the user's current login IP and the current login device, the historical text data containing the user's historical login IP and the historical login device, and the network device log data and server log data recorded by the anti-attack system, and then performs feature extraction and correlation analysis on the three, and finally obtains the classification result through the classifier to determine whether to issue an abnormal behavior alarm for the current login user, so as to further authenticate the current login user or limit the access rights of the current login user, thereby improving network security, thereby protecting the security of the network system and data.
[0006] According to one aspect of the present application, a method for detecting abnormal network behavior based on data mining is provided, which includes: Obtain current text data including the user's current login IP and current login device, historical text data including the user's historical login IP and historical login device, and network device log data and server log data recorded by the anti-attack system; Extracting access record associated feature vectors and log data normalized feature vectors from the current text data containing the user's current login IP and current login device, the historical text data containing the user's historical login IP and historical login device, and the network device log data and server log data recorded by the anti-attack system; Based on the access record associated feature vector and the log data normalized feature vector, it is determined whether to issue an abnormal behavior alarm for the currently logged-in user.
[0007] According to another aspect of the present application, a network behavior anomaly detection system based on data mining is provided, which includes: A network behavior data acquisition module is used to acquire current text data including the user's current login IP and current login device, historical text data including the user's historical login IP and historical login device, and network device log data and server log data recorded by the anti-attack system; A network behavior data feature extraction module, used to extract access record associated feature vectors and log data normalized feature vectors from the current text data containing the user's current login IP and current login device, the historical text data containing the user's historical login IP and historical login device, and the network device log data and server log data recorded by the anti-attack system; The abnormal behavior alarm generating module is used to determine whether to issue an abnormal behavior alarm for the current logged-in user based on the access record associated feature vector and the log data normalized feature vector.
[0008] Compared with the prior art, the present application provides a network behavior anomaly detection method, system and electronic device based on data mining, which first obtains current text data including the user's current login IP and current login device, historical text data including the user's historical login IP and historical login device, and network device log data and server log data recorded by the anti-attack system, and then performs feature extraction and correlation analysis on the three, and finally obtains the classification result through the classifier to determine whether to issue an abnormal behavior alarm for the current logged-in user, so as to further authenticate the current logged-in user or limit the access rights of the current logged-in user, thereby improving network security and protecting the security of the network system and data. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] 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.
[0010] Figure 1 Flow chart of a method for detecting abnormal network behavior based on data mining according to an embodiment of the present application.
[0011] Figure 2 The present invention is a flowchart of feature encoding of the current text data including the user's current login IP and current login device in the network behavior anomaly detection method based on data mining according to an embodiment of the present application.
[0012] Figure 3 The present invention is a flowchart of extracting features from the network device log data and server log data recorded by the anti-attack system in the network behavior anomaly detection method based on data mining according to an embodiment of the present application.
[0013] Figure 4 This is a flowchart of determining whether to issue an abnormal behavior alarm for the current logged-in user based on the access record associated feature vector and the log data normalized feature vector in the network behavior anomaly detection method based on data mining according to an embodiment of the present application.
[0014] Figure 5 4 is a block diagram of a network behavior anomaly detection system based on data mining according to an embodiment of the present application.
[0015] Figure 6 is a block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0016] 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.
[0017] Exemplary methods: Figure 1 FIG. 1 is a flow chart of a method for detecting abnormal network behavior based on data mining according to an embodiment of the present application. Figure 1As shown, according to the network behavior anomaly detection method based on data mining according to the embodiment of the present application, it includes: S110, obtaining current text data containing the user's current login IP and current login device, historical text data containing the user's historical login IP and historical login device, and network device log data and server log data recorded by the anti-attack system; S120, extracting access record associated feature vectors and log data normalized feature vectors from the current text data containing the user's current login IP and current login device, the historical text data containing the user's historical login IP and historical login device, and the network device log data and server log data recorded by the anti-attack system; S130, judging whether to issue an abnormal behavior alarm for the currently logged-in user based on the access record associated feature vector and the log data normalized feature vector.
[0018] In the above-mentioned network behavior anomaly detection method based on data mining, the step S110 obtains the current text data including the user's current login IP and the current login device, the historical text data including the user's historical login IP and historical login device, and the network device log data and server log data recorded by the anti-attack system. It should be understood that by obtaining the IP and device information of the currently logged-in user and the related text data, the user's current login behavior and the use of the device can be understood. The text data of the historical login IP and device can provide a reference for the user's past login behavior and device usage. The network device log data and server log data recorded by the anti-attack system contain activity records of the network and the server, which can be used to analyze and detect potential abnormal behaviors, such as abnormal access patterns, abnormal requests or attack behaviors, etc. Combining these data, feature vectors can be constructed and data mining can be performed to detect and identify abnormal situations in network behavior.
[0019] In the above-mentioned network behavior anomaly detection method based on data mining, the step S120 extracts access record associated feature vectors and log data normalized feature vectors from the current text data containing the user's current login IP and current login device, the historical text data containing the user's historical login IP and historical login device, and the network device log data and server log data recorded by the anti-attack system. As mentioned above, the access record associated feature vector is constructed by extracting the text data of the IP and device information of the current logged-in user and the historical login information. These feature vectors can contain information such as the user's login frequency, login location, device type, login method, etc., which are used to describe the user's access behavior pattern and historical behavior. The log data normalized feature vector is constructed by extracting the network device log data and server log data recorded by the anti-attack system. These feature vectors can contain information such as network traffic, request type, response time, error code, etc., which are used to describe the activity of the network and server. By extracting these feature vectors, complex network behavior and log data can be converted into numerical feature representations, which is convenient for subsequent data mining and analysis. The combined use of access record association feature vectors and log data normalization feature vectors can more comprehensively describe user behavior and network status, and improve the accuracy and reliability of network behavior anomaly detection.
[0020] In a specific embodiment of the present application, the access record associated feature vector and the log data normalized feature vector are extracted from the current text data containing the current login IP and the current login device of the user, the historical text data containing the historical login IP and the historical login device of the user, and the network device log data and the server log data recorded by the anti-attack system, including: feature extraction of the current text data containing the current login IP and the current login device of the user and the historical text data containing the historical login IP and the historical login device of the user to obtain the access record associated feature vector; feature extraction of the network device log data and the server log data recorded by the anti-attack system to obtain the log data normalized feature vector. It should be understood that feature extraction of the current text data containing the current login IP and the current login device of the user and the historical text data containing the historical login IP and the historical login device of the user can obtain meaningful information to describe the user's access behavior pattern and historical behavior. Through feature extraction, the original text data can be converted into numerical features for subsequent data analysis and modeling. Further, the network device log data and the server log data usually contain a large amount of information, such as network traffic, request type, response time, error code, etc. Through feature extraction, these raw log data can be converted into numerical features for subsequent analysis and processing. In addition, feature extraction can also normalize different types of log data so that they have the same feature representation, which is convenient for comparison and analysis. By extracting the normalized feature vector of log data, you can better understand and analyze the operating status of the network and server, identify potential risks and problems, and take appropriate measures to protect the security and stability of the system.
[0021] In a specific embodiment of the present application, the current text data containing the current login IP and the current login device of the user and the historical text data containing the historical login IP and the historical login device of the user are feature extracted to obtain the access record associated feature vector, including: feature encoding the current text data containing the current login IP and the current login device of the user to obtain multiple current login feature vectors; the historical text data containing the historical login IP and the historical login device of the user is passed through a historical access record feature extractor based on a deep neural network to obtain a weighted value corresponding to each current login feature vector in multiple current login feature vectors; the multiple current login feature vectors and the weighted values corresponding to each current login feature vector in multiple current login feature vectors are weighted to obtain the access record associated feature vector. It should be understood that in order to better describe and distinguish different login behaviors and features, it is necessary to feature encode the text data containing the current login IP and the current login device of the user. Feature encoding is the process of converting the original text data into a numerical feature representation. For the current login IP and the current login device, some key information can be extracted from them, such as the geographical location of the IP address, the device type, the operating system, etc. This information can be encoded in the form of feature vectors for subsequent analysis and processing. By encoding the current login IP and the current login device, different login behaviors can be mapped to different feature vectors. This makes it easy to compare and identify different login behaviors, such as whether they come from the same geographical location, whether they use the same type of device, etc. This feature encoding can help detect abnormal login behaviors, such as remote logins, multi-device logins, etc., thereby enhancing the ability to describe and identify login behaviors, thereby improving system security and user experience.
[0022] Furthermore, in order to be able to mine the correspondence between historical data and current data, it is necessary to process historical data through a deep neural network, that is, to mine the intrinsic association of data items and the association between each data item through a deep neural network to calculate the weight coefficient used to determine the match. Specifically, the historical login information is modeled and weighted to better reflect the impact of historical behavior on the current login. A deep neural network is a machine learning model that can learn complex feature representations and patterns. By using a historical access record feature extractor of a deep neural network, useful features can be extracted from the text data of historical login IPs and historical login devices. The information of historical login IPs and historical login devices can provide the context and pattern of the user's past login behavior. By inputting this information into the historical access record feature extractor, the network can learn and extract important features of historical behavior. The obtained historical feature vector can correspond to the current login feature vector. These weighted values can be learned and calculated by a deep neural network, and weights are assigned according to the pattern of historical behavior and the degree of influence on the current login. In this way, by calculating the above-mentioned weight coefficients, the current text data can be weighted. More specifically, the historical text data containing the user's historical login IP and historical login device are converted into a historical login IP vector and a historical login device vector respectively; the historical login IP vector and the historical login device vector are subjected to one-dimensional convolution respectively to obtain a convolution historical login IP vector and a convolution historical login device vector; the convolution historical login IP vector and the convolution historical login device vector are converted into vectors of the same length through a transformation matrix; the convolution historical login IP vector and the convolution historical login device vector of the same length are concatenated as vectors and then subjected to two-dimensional convolution to obtain a convolution feature map; and the convolution feature map is subjected to vector calculation of the average value of each position to obtain a feature vector, wherein the values of the three positions of the feature vector are weighted values corresponding to the login IP and the login device respectively. In particular, the historical text data containing the user's historical login IP and historical login device are converted into a historical login IP vector and a historical login device vector respectively; the historical login IP vector and the historical login device vector are cascaded and input into a deep neural network to obtain a historical information feature vector; and the historical text data is passed through one or more fully connected layers to obtain a corresponding weighted value, and the output length of the last fully connected layer of the one or more fully connected layers is two.
[0023] Furthermore, considering that different login behaviors may have different importance and impact in the access records, in order to comprehensively consider the importance and relevance of different login behaviors and represent them as a comprehensive feature vector, it is possible to assign a corresponding weighted value to each current login feature vector and weight these login behaviors. The weighted value can be determined based on different factors, such as the time, frequency, risk assessment, etc. of the login behavior. By weighting multiple current login feature vectors and the corresponding weighted values, the characteristics of different login behaviors can be comprehensively considered and represented as a comprehensive feature vector. This access record associated feature vector can provide more comprehensive and integrated information for user identity authentication, behavior analysis, and risk assessment. Through weighted consideration, important login behaviors can be highlighted and the impact of minor behaviors can be reduced, thereby more accurately describing the user's access record. This helps to improve the security and user experience of the system and support more accurate decision-making and analysis.
[0024] Figure 2 The flowchart of the network behavior anomaly detection method based on data mining according to the embodiment of the present application is to perform feature coding on the current text data containing the user's current login IP and the current login device. Figure 2As shown, in a specific embodiment of the present application, the current text data containing the current login IP and the current login device of the user is feature encoded to obtain multiple current login feature vectors, including: S210, the current text data containing the current login IP and the current login device of the user is passed through a current access record encoder composed of multiple fully connected networks to obtain multiple current access record input vectors; S220, the multiple current access record input vectors are passed through a current access record feature extractor based on a convolutional neural network to obtain the multiple current login feature vectors. It should be understood that the information of the current login IP and the current login device can provide context and features about the user's login behavior. By inputting this information into the current access record encoder, it can be encoded and processed by multiple fully connected networks. The fully connected network is a common deep learning model that can perform nonlinear transformation and feature extraction on the input data. Through the current access record encoder, the text data of the current login IP and the current login device can be converted into multiple current access record input vectors. Each current access record input vector represents the characteristics of an access record and contains information related to the current login. By using the current access record encoder composed of multiple fully connected networks, the nonlinear modeling ability of the neural network can be fully utilized to extract and express the important features of the current login IP and the current login device, thereby obtaining a richer and more useful current access record input vector. Specifically, each fully connected layer of the current access record encoder composed of multiple fully connected networks is used to fully connect the input vector in the forward pass of the layer using the following fully connected formula to extract the high-dimensional implicit features of the eigenvalues at each position in the input vector, wherein the fully connected formula is: ,in is the input vector, is the output vector, is the weight matrix, is the bias vector, Represents matrix multiplication, wherein the input of the first layer of the current access record encoder composed of multiple fully connected networks is the current text data containing the user's current login IP and the current login device, the input of the second layer to the last layer of the current access record encoder composed of multiple fully connected networks is the output vector of the previous layer, and the output of the last layer of the current access record encoder composed of multiple fully connected networks is each current access record input vector in the multiple current access record input vectors.
[0025] Furthermore, a convolutional neural network is a deep learning model widely used in fields such as computer vision and natural language processing. It automatically learns local patterns and features in input data by using convolutional layers and pooling layers. In the current access record, each access record input vector may contain a large amount of information, including features in terms of time, behavior, device, etc. By inputting these vectors into a feature extractor based on a convolutional neural network, the network can automatically learn and extract important features related to login behavior. The convolutional layer of the convolutional neural network can capture local patterns in the input vector and perform multi-channel feature extraction through multiple convolution kernels. The pooling layer can reduce the dimension and compress the extracted features to retain the most significant feature information. Through the combination of multiple convolutional layers and pooling layers, the network can gradually extract higher-level feature representations. Through the current access record feature extractor based on a convolutional neural network, multiple current access record input vectors can be converted into multiple current login feature vectors, which contain important feature information in the input vector. Specifically, each layer of the current access record feature extractor based on the convolutional neural network is used to perform convolution processing, pooling processing and non-linear activation processing on the input data in the forward pass of the layer so that the last layer of the current access record feature extractor based on the convolutional neural network outputs the multiple current login feature vectors, wherein the input of the current access record feature extractor based on the convolutional neural network is the multiple current access record input vectors.
[0026] Figure 3 The flowchart of the network device log data and server log data recorded by the anti-attack system in the network behavior anomaly detection method based on data mining according to the embodiment of the present application is as follows: Figure 3As shown, in a specific embodiment of the present application, the network device log data and server log data recorded by the anti-attack system are feature extracted to obtain the normalized feature vector of the log data, including: S310, the network device log data and server log data recorded by the anti-attack system are passed through a log data semantic understanding model based on deep learning to obtain multiple log data feature vectors; S320, the multiple log data feature vectors are normalized to obtain multiple log data normalized feature vectors; S330, the multiple log data normalized feature vectors are cascaded to obtain the log data normalized feature vector. It should be understood that considering that the network device log data and server log data contain information such as system operation and network communication, these log data are usually unstructured, which contain a large amount of text and event descriptions. Therefore, it is necessary to extract meaningful feature representations from the original log data. Through the log data semantic understanding model based on deep learning, these unstructured log data can be converted into structured feature vectors to better understand and analyze the information in the log data. The semantic understanding model of deep learning can learn the semantic and contextual information in the text data and convert it into a low-dimensional feature representation. These feature vectors can capture important features in the log data, such as keywords, event types, abnormal patterns, etc. By learning the semantic representation of log data, the meaning of log data and potential threats can be better understood. Specifically, the network device log data and server log data recorded by the anti-attack system are segmented to obtain a log word sequence; the embedding layer of the log data semantic understanding model based on deep learning is used to map each word in the log word sequence to a word embedding vector to obtain a sequence of log word embedding vectors; the Bert model of the log data semantic understanding model based on deep learning is used to perform global context semantic encoding on the sequence of log word embedding vectors to obtain multiple log data feature vectors.
[0027] Furthermore, normalizing multiple log data feature vectors can eliminate the scale differences between features so that they can be compared and combined within the same scale range, which helps to improve the comparability and interpretability of feature vectors and can improve the performance of models in some machine learning algorithms. Normalization usually involves mapping the values of feature vectors to a specific range, such as [0, 1] or [-1, 1]. Common normalization methods include min-max scaling and standardization. Through normalization, it is possible to ensure that the values of different features are within the same scale range, avoiding excessive influence of certain features on the model. This helps to improve the stability, interpretability of feature vectors and the training effect of the model.
[0028] Furthermore, the purpose of cascading multiple normalized feature vectors of log data is to combine different feature vectors into a more comprehensive and comprehensive feature vector to provide richer information and more accurate representation. By cascading multiple normalized feature vectors, their information can be integrated together to form a higher-dimensional feature vector. In this way, the correlation and interaction between different feature vectors can be captured, thereby providing a more comprehensive feature representation. Cascading multiple feature vectors can also help reduce the loss of feature dimensions. In some cases, using each feature vector alone may result in loss or incomplete information. By cascading feature vectors, more information can be retained and a more accurate feature representation can be provided. They provide a more comprehensive and accurate representation of log data, which helps improve the analysis and application effects of log data.
[0029] In the above-mentioned network behavior anomaly detection method based on data mining, it is determined whether to issue an abnormal behavior alarm for the current logged-in user based on the access record associated feature vector and the log data normalized feature vector. It should be understood that the access record associated feature vector and the log data normalized feature vector provide feature representations of different information sources. By combining these two feature vectors, user behavior can be evaluated in multiple dimensions, thereby obtaining more comprehensive and accurate user behavior characteristics. Furthermore, it is possible to quickly and accurately determine whether the behavior of the currently logged-in user is abnormal. If the behavior of the currently logged-in user is obviously inconsistent with the historical behavior pattern, an abnormal alarm can be issued.
[0030] Figure 4 The flowchart is a method for detecting abnormal network behavior based on data mining according to an embodiment of the present application, which determines whether to issue an abnormal behavior alarm for the current logged-in user based on the access record associated feature vector and the log data normalized feature vector. Figure 4As shown, in a specific embodiment of the present application, based on the access record associated feature vector and the log data normalized feature vector, it is determined whether to issue an abnormal behavior alarm for the current logged-in user, including: S410, fusing the access record associated feature vector and the log data normalized feature vector to obtain an access abnormal classification feature vector; S420, performing metric correlation perception based on local consistency on the access abnormal classification feature vector to obtain an optimized access abnormal classification feature vector; S430, passing the optimized access abnormal classification feature vector through a classifier to obtain a classification result, and the classification result is used to determine whether to issue an abnormal behavior alarm for the current logged-in user. It should be understood that combining the features of different information sources can provide a richer and more comprehensive feature representation so as to more accurately classify access abnormalities. Specifically, the access record associated feature vector is obtained by a historical access record feature extractor based on a deep neural network, which utilizes information from historical login IPs and historical login devices. These feature vectors can reflect the user's historical behavior patterns and login habits. The log data normalized feature vector is obtained by normalizing network device log data and server log data, which can capture useful information and patterns in log data. By fusing these two feature vectors, the features of different information sources can be combined to obtain a more comprehensive feature representation. Such fusion can be achieved through simple vector concatenation or more complex feature fusion methods, such as using a neural network model for feature fusion. The obtained access anomaly classification feature vector can be used for the task of access anomaly classification. By inputting the feature vector into an appropriate machine learning algorithm or deep learning model, the access behavior can be classified to determine whether there is an anomaly or potential attack behavior.
[0031] In particular, in the technical solution of the present application, considering that the login behavior of different users may show great differences due to personal habits, equipment used, network environment and other factors, this diversity may lead to inconsistent local distribution of feature vectors. The current login data and historical login data may have inconsistent data quality due to factors such as the time point of data collection and the accuracy of the collection tool, affecting the accuracy of feature extraction. The current access record feature extractor based on the convolutional neural network and the historical access record feature extractor based on the deep neural network may not be able to fully capture all feature information related to user behavior, or have different sensitivities to certain features, resulting in differences in the distribution of feature vectors in local areas. When the current login feature vector is weighted with the corresponding weighted value, and the access record associated feature vector is fused with the log data normalized feature vector, the importance and weight of different features may not be properly processed, resulting in inconsistency in some local areas of the fused access anomaly classification feature vector. The local distribution difference of the access anomaly classification feature vector will cause it to have a class harmony offset relative to the predetermined class label of the classifier when it is classified by the classifier, affecting the classification iteration effect. Based on this, the access anomaly classification feature vector is subjected to metric correlation perception based on local consistency.
[0032] Among them, the access anomaly classification feature vector is subjected to metric correlation perception based on local consistency to obtain an optimized access anomaly classification feature vector, including: calculating an access anomaly classification autocorrelation association matrix between the access anomaly classification feature vector and its transposed vector; performing matrix multiplication of the weight parameter matrix of the classifier with the access anomaly classification autocorrelation association matrix to obtain a weight parameter modulation classification autocorrelation association matrix; calculating the correlation perception factor between any two row vectors in the weight parameter modulation classification autocorrelation association matrix using the following optimization formula to obtain a metric correlation perception matrix; wherein the optimization formula is: ;in, The weight parameter modulates the classification autocorrelation matrix. The row vector of rows, The weight parameter modulates the classification autocorrelation matrix. The row vector of rows, The weight parameter modulates the classification autocorrelation matrix. The transpose of the row vector of rows, is the total number of rows in the autocorrelation matrix of the classification modulated by the weight parameter, is a row vector and row vector The correlation perception coefficient between is the bi-norm of the eigenvector, represents matrix multiplication, is the metric correlation perception matrix; multiplying the metric correlation perception matrix with the access anomaly classification feature vector to obtain the optimized access anomaly classification feature vector.
[0033] More specifically, the access anomaly classification feature vector is subjected to local consistency-based metric correlation perception to obtain an optimized access anomaly classification feature vector, including: processing the access anomaly classification feature vector according to the following formula to obtain the optimized access anomaly classification feature vector ;in, is the access anomaly classification feature vector, is the transposed vector of the access anomaly classification feature vector, is the access anomaly classification autocorrelation matrix, is the weight parameter matrix of the classifier, is the weight parameter modulated classification autocorrelation matrix, The weight parameter modulates the classification autocorrelation matrix. The row vector of rows, The weight parameter modulates the classification autocorrelation matrix. The row vector of rows, The weight parameter modulates the classification autocorrelation matrix. The transpose of the row vector of rows, is the total number of rows in the autocorrelation matrix of the classification modulated by the weight parameter, is a row vector and row vector The correlation perception coefficient between is the bi-norm of the eigenvector, represents matrix multiplication, is the metric relevance perception matrix, is the set of real numbers, is the optimized access anomaly classification feature vector.
[0034] In the technical solution of the present application, it is considered that there are local distribution differences in the access anomaly classification feature vector, which leads to a class harmony offset relative to the predetermined class label of the classifier when the classifier performs classification judgment, thus affecting the classification iteration effect. Based on this, in the technical solution of the present application, based on the autocorrelation dimension of the access anomaly classification feature vector, the spatial sub-dimensional complexity of the high-dimensional feature space of the feature distribution is used to perform association expansion to obtain the access anomaly classification autocorrelation association matrix. Furthermore, the access anomaly classification autocorrelation association matrix is subjected to metric correlation perception based on weight learning parameters. By introducing weight learning parameters, the local distribution differences of different access anomaly classification feature vectors can be effectively quantified and adjusted, thereby reducing the class harmony offset caused by these local distribution differences when the classifier performs classification judgment.
[0035] Furthermore, by training a classifier, normal and abnormal behaviors can be distinguished. The classifier learns the pattern of normal behavior and can identify abnormal behaviors that do not match normal behavior. By inputting the optimized access abnormal classification feature vector into the classifier, a classification result can be obtained to determine whether the behavior of the currently logged-in user is abnormal. If the classification result shows that the behavior of the currently logged-in user is classified as abnormal, the system can immediately issue an alarm to remind relevant personnel to pay attention to possible security issues. In this way, timely measures can be taken to prevent potential security threats from further expanding.
[0036] In summary, the embodiment of the present application first obtains the current text data including the user's current login IP and the current login device, the historical text data including the user's historical login IP and the historical login device, and the network device log data and server log data recorded by the anti-attack system, and then performs feature extraction and correlation analysis on the three. Finally, the classification result is obtained through the classifier to determine whether to issue an abnormal behavior alarm for the current logged-in user, so as to further authenticate the current logged-in user or limit the access rights of the current logged-in user, thereby improving network security and protecting the security of the network system and data.
[0037] Example systems: Figure 5 FIG. 1 is a block diagram of a network behavior anomaly detection system based on data mining according to an embodiment of the present application. Figure 5As shown, according to the network behavior anomaly detection system 100 based on data mining according to the embodiment of the present application, it includes: a network behavior data acquisition module 110, which is used to acquire current text data containing the user's current login IP and current login device, historical text data containing the user's historical login IP and historical login device, and network device log data and server log data recorded by the anti-attack system; a network behavior data feature extraction module 120, which is used to extract access record associated feature vectors and log data normalized feature vectors from the current text data containing the user's current login IP and current login device, the historical text data containing the user's historical login IP and historical login device, and the network device log data and server log data recorded by the anti-attack system; an abnormal behavior alarm generation module 130, which is used to determine whether to issue an abnormal behavior alarm for the currently logged-in user based on the access record associated feature vector and the log data normalized feature vector.
[0038] As described above, the network behavior anomaly detection system 100 based on data mining according to the embodiment of the present application can be implemented in various terminal devices, such as a server deployed with a network behavior anomaly detection control algorithm based on data mining. In one example, the network behavior anomaly detection system 100 based on data mining can be integrated into the terminal device as a software module and / or a hardware module. For example, the network behavior anomaly detection system 100 based on data mining can be a software module in the operating system of the terminal device, or can be an application developed for the terminal device; of course, the network behavior anomaly detection system 100 based on data mining can also be one of the many hardware modules of the terminal device.
[0039] Alternatively, in another example, the data mining-based network behavior anomaly detection system 100 and the terminal device may also be separate devices, and the data mining-based network behavior anomaly detection system 100 may be connected to the terminal device via a wired and / or wireless network and transmit interactive information in accordance with an agreed data format.
[0040] Here, those skilled in the art can understand that the specific operations of each step in the above-mentioned network behavior anomaly detection system based on data mining have been referred to above. Figures 1 to 4 The description of the network behavior anomaly detection method based on data mining has been introduced in detail, and therefore, its repeated description will be omitted.
[0041] Exemplary electronic device: An embodiment of the present application provides an electronic device. Figure 6 FIG. 1 is a block diagram of an electronic device according to an embodiment of the present application. Figure 6As shown, the electronic device 10 includes an input device 11, an input interface 12, a central processing unit 13, a memory 14, an output interface 15, an output device 16, and a bus 17. The input interface 12, the central processing unit 13, the memory 14, and the output interface 15 are connected to each other through the bus 17, and the input device 11 and the output device 16 are connected to the bus 17 through the input interface 12 and the output interface 15, respectively, and then connected to other components of the electronic device 10.
[0042] Specifically, the input device 11 receives input information from the outside and transmits the input information to the central processing unit 13 through the input interface 12; the central processing unit 13 processes the input information based on the computer executable instructions stored in the memory 14 to generate output information, temporarily or permanently stores the output information in the memory 14, and then transmits the output information to the output device 16 through the output interface 15; the output device 16 outputs the output information to the outside of the electronic device 10 for user use.
[0043] According to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program tangibly contained on a machine-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network, and / or installed from a removable storage medium.
[0044] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0045] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present application, but the present application is not limited thereto. For those skilled in the art, various modifications and improvements can be made without departing from the spirit and substance of the present application, and these modifications and improvements are also considered to be within the scope of protection of the present application.
Claims
1. A network behavior anomaly detection method based on data mining, characterized in that: include: Obtain current text data including the user's current login IP and current login device, historical text data including the user's historical login IP and historical login device, and network device log data and server log data recorded by the anti-attack system; Extracting access record associated feature vectors and log data normalized feature vectors from the current text data containing the user's current login IP and current login device, the historical text data containing the user's historical login IP and historical login device, and the network device log data and server log data recorded by the anti-attack system; Based on the access record associated feature vector and the log data normalized feature vector, it is determined whether to issue an abnormal behavior alarm for the currently logged-in user.
2. The network behavior anomaly detection method based on data mining according to claim 1 is characterized in that: Extracting access record associated feature vectors and log data normalized feature vectors from the current text data including the user's current login IP and current login device, the historical text data including the user's historical login IP and historical login device, and the network device log data and server log data recorded by the anti-attack system, including: Performing feature extraction on the current text data including the current login IP and the current login device of the user and the historical text data including the historical login IP and the historical login device of the user to obtain the access record associated feature vector; Feature extraction is performed on the network device log data and server log data recorded by the anti-attack system to obtain a normalized feature vector of the log data.
3. The network behavior anomaly detection method based on data mining according to claim 2 is characterized in that: Performing feature extraction on the current text data including the current login IP and the current login device of the user and the historical text data including the historical login IP and the historical login device of the user to obtain the access record associated feature vector, including: Performing feature encoding on the current text data including the user's current login IP and current login device to obtain a plurality of current login feature vectors; The historical text data including the historical login IP and historical login device of the user is passed through a historical access record feature extractor based on a deep neural network to obtain a weighted value corresponding to each current login feature vector in a plurality of current login feature vectors; The multiple current login feature vectors and the weighted values corresponding to the respective current login feature vectors in the multiple current login feature vectors are weighted to obtain the access record associated feature vector.
4. The method for detecting abnormal network behavior based on data mining according to claim 3 is characterized in that: The current text data including the user's current login IP and current login device is feature encoded to obtain multiple current login feature vectors, including: Pass the current text data including the user's current login IP and current login device through a current access record encoder composed of multiple fully connected networks to obtain multiple current access record input vectors; The multiple current access record input vectors are passed through a current access record feature extractor based on a convolutional neural network to obtain the multiple current login feature vectors.
5. The network behavior anomaly detection method based on data mining according to claim 4 is characterized in that: Performing feature extraction on the network device log data and the server log data recorded by the anti-attack system to obtain a normalized feature vector of the log data includes: The network device log data and server log data recorded by the anti-attack system are subjected to a log data semantic understanding model based on deep learning to obtain a plurality of log data feature vectors; Normalizing the multiple log data feature vectors to obtain multiple log data normalized feature vectors; The multiple log data normalized feature vectors are concatenated to obtain the log data normalized feature vector.
6. The network behavior anomaly detection method based on data mining according to claim 5 is characterized in that: Based on the access record associated feature vector and the log data normalized feature vector, determining whether to issue an abnormal behavior alarm for the current logged-in user includes: Merging the access record association feature vector and the log data normalization feature vector to obtain an access anomaly classification feature vector; Performing local consistency-based metric correlation perception on the access anomaly classification feature vector to obtain an optimized access anomaly classification feature vector; The optimized access anomaly classification feature vector is passed through a classifier to obtain a classification result, and the classification result is used to determine whether to issue an abnormal behavior alarm for the current logged-in user.
7. The method for detecting abnormal network behavior based on data mining according to claim 6, characterized in that: Performing local consistency-based metric correlation perception on the access anomaly classification feature vector to obtain an optimized access anomaly classification feature vector includes: Calculate an access anomaly classification autocorrelation association matrix between the access anomaly classification feature vector and its transposed vector; Performing matrix multiplication of the weight parameter matrix of the classifier and the access anomaly classification autocorrelation association matrix to obtain a weight parameter modulation classification autocorrelation association matrix; Calculating the correlation perception factor between any two row vectors in the weight parameter modulation classification autocorrelation association matrix to obtain a metric correlation perception matrix; The metric correlation perception matrix is multiplied by the access anomaly classification feature vector to obtain the optimized access anomaly classification feature vector.
8. A network behavior anomaly detection system based on data mining, characterized in that: include: A network behavior data acquisition module is used to acquire current text data including the user's current login IP and current login device, historical text data including the user's historical login IP and historical login device, and network device log data and server log data recorded by the anti-attack system; A network behavior data feature extraction module, used to extract access record associated feature vectors and log data normalized feature vectors from the current text data containing the user's current login IP and current login device, the historical text data containing the user's historical login IP and historical login device, and the network device log data and server log data recorded by the anti-attack system; The abnormal behavior alarm generating module is used to determine whether to issue an abnormal behavior alarm for the current logged-in user based on the access record associated feature vector and the log data normalized feature vector.
9. The network behavior anomaly detection system based on data mining according to claim 8 is characterized in that: The network behavior data feature extraction module includes: Performing feature extraction on the current text data including the current login IP and the current login device of the user and the historical text data including the historical login IP and the historical login device of the user to obtain the access record associated feature vector; Feature extraction is performed on the network device log data and server log data recorded by the anti-attack system to obtain a normalized feature vector of the log data.
10. An electronic device, characterized in that: include: at least one processor; And, a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the network behavior anomaly detection method based on data mining as described in any one of claims 1-7.
Citation Information
Patent Citations
Historical refueling data based truck monitoring method applicable to non-inductive refueling station
CN112419541A
Cloud security account management method based on big data and security platform
CN114978602A
Network security monitoring system and method thereof
CN117040820A
Abnormal behavior detection system and method for network data
CN117176433A
Data mining system and method based on computer network security
CN118199988A
Cited By
Network security automatic early warning method and device based on artificial intelligence, and electronic equipment
CN119276575A
Network security risk control method and device based on cloud computing and electronic equipment
CN119276577A
Network Security Risk Control Method, Device and Electronic Device Based on Cloud Computing
CN119276577B
Network security protection intelligent construction method and device based on big data, and readable medium
CN119484111A
Network security log analysis method based on large language model
CN119484162A
