A data security tracing method, system and device based on artificial intelligence
Through the data security traceability method based on artificial intelligence, historical data is used to establish a baseline model and graph attention network, combined with anomaly detection algorithms, to identify and track abnormal paths, solving the timeliness and traceability problems of data security monitoring in the existing technology, and realizing Efficient risk analysis and security response.
Patent Information
- Application Number
- CN202411001308.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-25
AI Technical Summary
It is difficult for the existing data security monitoring system to identify new or unknown attack modes in real time and to dynamically update the detection mechanism, resulting in insufficient security protection timeliness. It is also difficult to track the source and whereabouts of data in complex data networks, increasing the risk of data leakage and Risk of abuse.
Adopt a data security traceability method based on artificial intelligence, establish a baseline model by obtaining historical access data, detect abnormal access patterns in real time, and use graph attention network and anomaly detection algorithms to conduct user behavior modeling and multi-dimensional aggregation analysis to identify abnormal paths and Conduct traceability analysis and dynamically adapt to emerging threats.
It significantly improves the real-time, accuracy and protection capabilities of data security monitoring, provides accurate risk analysis and data traceability capabilities, can dynamically adapt to emerging threats, and quickly identify and respond to potential security threats.
Smart Images

Figure CN118536093B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data security, and in particular to an artificial intelligence-based data security tracing method, system and device. Background Art
[0002] As a key component of the information technology field, data security has the core goal of ensuring the security of data during storage, processing and transmission, including ensuring the confidentiality, integrity and availability of data. In the digital age, the importance of data continues to rise. At the same time, with the explosive growth of data volume and the continuous evolution of network threats, the importance of data security has become increasingly prominent. Organizations and individuals must take effective data security measures to prevent information leakage, identity theft and various network attacks.
[0003] However, many existing data security monitoring technologies rely on static rules and signatures. These systems may not be able to effectively identify new or unknown attack patterns, and cannot update their detection mechanisms in real time to adapt to new threats, resulting in timeliness issues in security protection. In modern enterprises, data networks are usually very large and complex, with frequent interactions between data entities and diverse flow paths. Traditional monitoring technologies find it difficult to accurately track the source and destination of data, especially when the amount of data is huge, which greatly increases the risk of data leakage and abuse, resulting in insufficient data security situation awareness and risk assessment capabilities of existing data security monitoring technologies. Summary of the invention
[0004] The present application provides an artificial intelligence-based data security tracing method, system and device for providing accurate risk assessment capabilities and data tracing, and improving the real-time, accuracy and overall protection capabilities of data security monitoring.
[0005] The first aspect of the present application provides a data security tracing method based on artificial intelligence, comprising:
[0006] Acquire historical access data, and select a number of target features for distinguishing normal access patterns from abnormal access patterns from the historical access data;
[0007] Configure control parameters of the initial model, train the initial model through the historical access data according to the target features and the control parameters until the model converges, and obtain a baseline model of the normal access mode, wherein the baseline model is a Hoeffding tree model, and the control parameters include the depth of the tree, the minimum number of samples required for splitting, the confidence and penalty factor of the Hoeffding inequality;
[0008] Collecting real-time access data, and predicting the real-time access data using the baseline model to determine whether an abnormal access pattern occurs;
[0009] If yes, obtain user behavior data, and apply the graph attention network to model the user behavior data to generate a user behavior model;
[0010] updating the user behavior model according to the real-time access data;
[0011] Using an anomaly detection algorithm to detect nodes and edges in the updated user behavior model to identify abnormal nodes and abnormal edges associated with the abnormal access pattern;
[0012] Performing a multi-dimensional aggregation analysis on the data flow path in the user behavior model according to the abnormal nodes and the abnormal edges, and identifying a target abnormal path in the data flow path according to the result of the multi-dimensional aggregation analysis;
[0013] Performing source tracing analysis on the target abnormal path, tracking and marking data flow events on the target abnormal path;
[0014] Initiate a security response strategy based on the results of the source tracing analysis.
[0015] Optionally, after predicting the real-time access data by using the baseline model to determine whether an abnormal access pattern occurs, the method further includes:
[0016] The baseline model is updated through incremental learning according to the real-time access data.
[0017] Optionally, the acquiring user behavior data and applying a graph attention network to model the user behavior data to generate a user behavior model includes:
[0018] Acquire user behavior data, and construct a target graph structure according to the user behavior data, wherein the points in the target graph structure are defined as data entities, and the edges in the target graph structure are defined as data flow paths;
[0019] A graph attention network model is defined and initialized, and the graph attention network model is trained using the target graph structure and node features to obtain a user behavior model.
[0020] Optionally, updating the user behavior model according to the real-time access data includes:
[0021] Input the real-time access data into the graph attention network model, update the user behavior model and generate a new embedding representation;
[0022] The adopting of an anomaly detection algorithm to detect nodes and edges in the updated user behavior model to identify abnormal nodes and abnormal edges associated with the abnormal access pattern includes:
[0023] A One-Class SVM algorithm is used to perform anomaly detection on the new embedding representation to identify abnormal nodes and abnormal edges associated with the abnormal access pattern.
[0024] Optionally, performing aggregation analysis on the data flow path in the user behavior model according to the abnormal nodes and the abnormal edges, and identifying a target abnormal path in the data flow path according to a result of the aggregation analysis, includes:
[0025] Applying a graph traversal algorithm starting from the abnormal node, traversing and recording all abnormal paths in the data flow path in the user behavior model;
[0026] Screening out important abnormal paths from the abnormal paths according to preset indicators, wherein the preset indicators include at least one of path length, amount of sensitive data involved in the path, and specific business risk factors;
[0027] A multi-dimensional aggregation analysis is performed on the important abnormal paths, and a target abnormal path is determined according to the result of the multi-dimensional aggregation analysis.
[0028] Optionally, performing a multi-dimensional aggregation analysis on the important abnormal paths, and determining a target abnormal path according to a result of the multi-dimensional aggregation analysis, includes:
[0029] The important abnormal paths are subjected to multi-dimensional aggregation analysis in terms of time dimension, user behavior dimension, data sensitivity dimension and business logic dimension, and the target abnormal path is determined according to the result of the multi-dimensional aggregation analysis.
[0030] Optionally, the performing source tracing analysis on the target abnormal path, tracking and marking data flow events on the target abnormal path, includes:
[0031] Starting from the identified abnormal node or abnormal edge, trace the source along the target abnormal path, track and mark each data flow event on the target abnormal path, and record relevant context information;
[0032] Each of the data flow events is taken as a block and connected in series into a chain for storage, and each block contains information about the current data flow event and a hash value of the previous block.
[0033] Optionally, the security response strategy includes:
[0034] Early warning of potential risks, limiting data access, isolating abnormal nodes, and / or sending security alerts.
[0035] The second aspect of the present application provides a data security tracing system based on artificial intelligence, including:
[0036] Establishing a unit, used to obtain historical access data, and screen several target features for distinguishing normal access patterns from abnormal access patterns from the historical access data; configuring control parameters of an initial model, and training the initial model through the historical access data according to the target features and the control parameters until the model converges, so as to obtain a baseline model of a normal access pattern, wherein the baseline model is a Hoeffding tree model, and the control parameters include the depth of the tree, the minimum number of samples required for splitting, the confidence and penalty factor of the Hoeffding inequality;
[0037] A judgment unit, used for collecting real-time access data, and predicting the real-time access data through the baseline model to judge whether an abnormal access pattern occurs;
[0038] A generating unit, configured to obtain user behavior data when the judgment result of the judging unit is yes, and apply a graph attention network to model the user behavior data to generate a user behavior model;
[0039] A first updating unit, configured to update the user behavior model according to the real-time access data;
[0040] A first identification unit, configured to detect nodes and edges in the updated user behavior model using an anomaly detection algorithm, and identify abnormal nodes and abnormal edges associated with the abnormal access pattern;
[0041] A second identification unit is used to perform a multi-dimensional aggregation analysis on the data flow path in the user behavior model according to the abnormal nodes and the abnormal edges, and identify a target abnormal path in the data flow path according to the result of the multi-dimensional aggregation analysis;
[0042] A source tracing analysis unit, used to perform source tracing analysis on the target abnormal path, and track and mark data flow events on the target abnormal path;
[0043] A security response unit is used to initiate a security response strategy based on the result of the source tracing analysis.
[0044] Optionally, the system further includes: a second updating unit;
[0045] The updating unit is specifically configured to update the baseline model through incremental learning according to the real-time access data.
[0046] Optionally, the generating unit is specifically used to: obtain user behavior data, and construct a target graph structure according to the user behavior data, wherein the points in the target graph structure are defined as data entities, and the edges in the target graph structure are defined as data flow paths;
[0047] A graph attention network model is defined and initialized, and the graph attention network model is trained using the target graph structure and node features to obtain a user behavior model.
[0048] Optionally, the first updating unit is specifically configured to:
[0049] Input the real-time access data into the graph attention network model, update the user behavior model and generate a new embedding representation;
[0050] Optionally, the first identification unit is specifically used for:
[0051] A One-Class SVM algorithm is used to perform anomaly detection on the new embedding representation to identify abnormal nodes and abnormal edges associated with the abnormal access pattern.
[0052] Optionally, the second identification unit is specifically used to:
[0053] Applying a graph traversal algorithm starting from the abnormal node, traversing and recording all abnormal paths in the data flow path in the user behavior model;
[0054] Screening out important abnormal paths from the abnormal paths according to preset indicators, wherein the preset indicators include at least one of path length, amount of sensitive data involved in the path, and specific business risk factors;
[0055] A multi-dimensional aggregation analysis is performed on the important abnormal paths, and a target abnormal path is determined according to the result of the multi-dimensional aggregation analysis.
[0056] Optionally, the second identification unit is further configured to:
[0057] The important abnormal paths are subjected to multi-dimensional aggregation analysis in terms of time dimension, user behavior dimension, data sensitivity dimension and business logic dimension, and the target abnormal path is determined according to the result of the multi-dimensional aggregation analysis.
[0058] Optionally, the traceability analysis unit is specifically used for:
[0059] Starting from the identified abnormal node or abnormal edge, trace the source along the target abnormal path, track and mark each data flow event on the target abnormal path, and record relevant context information;
[0060] Optionally, the security response strategy includes:
[0061] Early warning of potential risks, limiting data access, isolating abnormal nodes, and / or sending security alerts.
[0062] The third aspect of the present application provides a data security tracing device based on artificial intelligence, the device comprising:
[0063] Processor, memory, input-output unit, and bus;
[0064] The processor is connected to the memory, the input and output unit, and the bus;
[0065] The memory stores a program, and the processor calls the program to execute the first aspect and any optional artificial intelligence-based data security tracing method in the first aspect.
[0066] The fourth aspect of the present application provides a computer-readable storage medium, on which a program is stored. When the program is executed on a computer, the program executes the first aspect and any optional artificial intelligence-based data security tracing method in the first aspect.
[0067] It can be seen from the above technical solutions that this application has the following advantages:
[0068] By collecting and analyzing a large amount of historical access data, we can understand the access pattern of the system under normal circumstances, and use historical data to establish a baseline model. When the system is actually running, the user's real-time access data is input into the baseline model to determine whether an abnormal access pattern occurs, and quickly identify any abnormal activities that deviate from normal behavior. After detecting an abnormal access pattern, the user behavior data is modeled through the graph attention network to generate a user behavior model, and the new real-time access data is input into the user behavior model to ensure that the model can reflect the latest user behavior and data flow. Combined with the anomaly detection algorithm, the abnormal nodes and abnormal edges associated with the abnormal access pattern are identified, and the detected abnormal nodes and edges are subjected to multi-dimensional aggregation analysis to identify the target abnormal path in the data flow path. Finally, the target abnormal path is traced back to analyze the source, track and mark each data flow event on the data flow path, and initiate the corresponding security response strategy.
[0069] By using historical data to establish a baseline model, detecting abnormal access patterns in real time, and combining graph attention networks and anomaly detection algorithms to accurately model, analyze, and trace user behavior, this application can dynamically adapt to emerging threats, provide accurate risk assessment capabilities and data traceability, and significantly improve the real-time, accuracy, and overall protection capabilities of data security monitoring. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] In order to more clearly illustrate the technical solution in the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0071] Figure 1 A schematic diagram of an embodiment of the data security tracing method based on artificial intelligence provided in this application;
[0072] Figure 2 A flowchart of another embodiment of the artificial intelligence-based data security tracing method provided in this application;
[0073] Figure 3 A schematic diagram of the structure of an embodiment of the artificial intelligence-based data security tracing system provided in this application;
[0074] Figure 4 A schematic diagram of the structure of an embodiment of an artificial intelligence-based data security tracing device provided in this application. DETAILED DESCRIPTION
[0075] The present application provides an artificial intelligence-based data security tracing method, system and device for providing accurate risk assessment capabilities and data tracing, and improving the real-time, accuracy and overall protection capabilities of data security monitoring.
[0076] It should be noted that the data security tracing method based on artificial intelligence provided in this application can be applied to terminals or servers. For example, the terminal can be a smart phone or computer, tablet computer, smart TV, smart watch, portable computer terminal or a fixed terminal such as a desktop computer. For the convenience of explanation, this application uses the system as the execution subject for example.
[0077] See also Figure 1 , Figure 1 An embodiment of the data security tracing method based on artificial intelligence provided in this application includes:
[0078] 101. Obtain historical access data, and select several target features for distinguishing normal access patterns from abnormal access patterns from the historical access data;
[0079] By collecting and analyzing a large amount of historical access data, we can fully understand the access pattern of the system under normal circumstances, that is, the normal access pattern in this application. The normal access pattern refers to the typical characteristics and laws of various user behaviors and data access when the system is in normal operation, including statistical characteristics in terms of access frequency, time period, duration, request type, access path, data transmission volume, etc. Through the analysis of historical data, we can summarize and learn the common access behaviors and traffic patterns of the system when there are no abnormalities and security threats, thereby providing a basis for the establishment of a baseline model. For example, the normal access pattern of a website may include the difference in visits between weekdays and weekends, the frequency of user logins in a specific time period, common page access paths, average session duration, number of requests per minute, etc.
[0080] In this embodiment, the system specifically collects historical access data from multiple sources such as logs and user behavior records. The historical access data may specifically include user login records, page access details, data acquisition details, transaction behavior and other data. Afterwards, the system cleans and preprocesses the collected data, including removing noise and invalid data, removing duplicate records and processing missing values to ensure the quality and consistency of the data. Afterwards, a number of target features are screened out from the preprocessed historical access data. The target features are features that can help distinguish normal access patterns from abnormal access patterns. By screening out target features that can distinguish normal and abnormal access patterns, the accuracy of the baseline model can be improved, enabling it to more accurately detect abnormal behavior.
[0081] Specifically, the system can apply feature selection algorithms, such as information gain, mutual information or PCA, to select the most distinguishing target features from the historical access data to ensure the efficiency and accuracy of the subsequent establishment of the benchmark model. The target features that best match the business logic can also be manually selected, which are not limited here. Target features include but are not limited to: access frequency: the number of times a user accesses within a certain period of time; device type: the type of device used by the user (such as mobile phones, computers, etc.); geographic location: the geographic location corresponding to the user's IP address; access period: the specific time when the user accesses the system; operation type: the specific operation performed by the user (such as login, payment, browsing, etc.).
[0082] 102. Configure the control parameters of the initial model, and train the initial model through historical access data according to the target features and the control parameters until the model converges to obtain a baseline model of the normal access mode;
[0083] After obtaining the historical access data, a machine learning algorithm is applied to analyze the data and establish a baseline model. The baseline model is a model used to define the behavior pattern of the system under normal operation. The baseline model provides a reference standard for subsequent real-time monitoring, which helps to quickly identify abnormal behaviors that deviate from these patterns during actual operation, thereby improving the security and stability of the system. It should be noted that the baseline model is established through the analysis of a large amount of historical data and can reflect the behavior pattern of the system under normal operation. Since the baseline model is based on actual data rather than predefined rules, the baseline model can dynamically adapt to changes in system behavior. Furthermore, when the system is operating normally, the baseline model can also be continuously updated to reflect the latest normal access patterns in real time, so that the system can identify new or unknown abnormal behaviors.
[0084] In this embodiment, the system prepares for model training according to the target features and data characteristics. First, a suitable machine learning model is selected as the initial model, such as a decision tree, random forest, support vector machine (SVM), etc., and then the hyperparameters of the initial model are configured, such as learning rate, regularization parameter, maximum depth, number of iterations, etc., and the preprocessed historical access data is divided into a training set and a validation set. In the model training stage, the initial model is trained using the training set data, the model is input through the target features, and the model parameters are adjusted so that it can learn the normal access mode. During the training process, the initial model will continuously update its weights and parameters to minimize the prediction error. At the same time, the validation set data is used to evaluate the model performance, and the accuracy and stability of the model are monitored by cross-validation and other methods to prevent overfitting or underfitting. Repeat the above training process until the performance indicators of the model tend to be stable on the validation set. At this time, it is determined that the model has reached convergence, and the trained initial model is used as the final baseline model.
[0085] In some specific embodiments, the Hoeffding tree can be used as a baseline model. This model is suitable for processing data streams and large-scale data sets and can dynamically learn and adjust in the data stream. By dynamically building and updating the decision tree, it can adapt to changes in the data stream and the arrival of new data while maintaining low computing and memory consumption. For the Hoeffding tree model, at least the following control parameters need to be configured:
[0086] Tree depth: limit the maximum depth of the tree to prevent model overfitting;
[0087] Minimum number of samples required for splitting: Set the minimum number of samples required for node splitting to control the complexity of the model;
[0088] Confidence of Hoeffding inequality: This parameter affects the decision of node splitting and can usually be set at a higher confidence level to ensure the reliability of the splitting decision;
[0089] Penalty factor: used to adjust the sensitivity of node splitting, which can control the model's adaptability to new data.
[0090] By using the Hoeffding inequality as the splitting condition, the Hoeffding tree can make accurate splitting decisions while ensuring a certain confidence level, effectively distinguish between normal and abnormal access patterns, thereby providing fast and accurate anomaly detection capabilities and providing a reliable foundation for data security monitoring.
[0091] 103. Collect real-time access data and predict the real-time access data through the baseline model to determine whether abnormal access patterns occur;
[0092] The system deploys the baseline model to the data access portal, continuously obtains the latest real-time access data, and then preprocesses the real-time access data, including removing noise, filling missing values, and standardizing, to ensure the consistency of data quality with historical access data. The system inputs the preprocessed real-time access data into the baseline model established in step 102. The baseline model predicts and evaluates the current real-time access data based on the learned normal access pattern, and determines whether the abandoned access behavior has an abnormal access pattern.
[0093] Specifically, the baseline model analyzes the normal behavior patterns formed by historical data, and can compare and analyze the new real-time access data when it receives it, identifying abnormal access patterns that deviate from normal behavior. If the real-time access data matches the normal access pattern in the baseline model, the system will determine that the current access behavior is normal and no abnormal access pattern has occurred. If the real-time access data deviates from the expectations of the baseline model, the system will mark the real-time access data as potential abnormal behavior and determine that an abnormal access pattern has occurred. At this time, subsequent steps will be performed to further monitor and trace possible security threats.
[0094] 104. Obtain user behavior data, and apply the graph attention network to model the user behavior data to generate a user behavior model;
[0095] Once the system detects an abnormal access pattern through the baseline model, relevant user behavior data is extracted from the detected abnormal access pattern, including the user's click stream, operation log, request path, access time and frequency. The user behavior data is then converted into a graph structure, and the Graph Attention Network (GAT) is applied to model the user behavior data. The Graph Attention Network can automatically learn the importance of nodes in the graph structure and assign different weights between nodes, so as to more accurately capture the patterns and characteristics of user behavior. Specifically, the Graph Attention Network can learn the representation of each node through the self-attention mechanism, taking into account the influence of neighboring nodes on it. Through the self-attention mechanism, weights can be assigned according to the importance of nodes, so that the user behavior model can focus on more critical behavior patterns. The Graph Attention Network is used to train the graph structure composed of user behavior data and generate a user behavior model, which can capture the complex relationships and dynamic changes in user behavior, so that it can be used to identify potential security threats and abnormal behaviors, and provide a basis for more accurate risk assessment and protection measures.
[0096] For example, on an e-commerce platform, the system detects an abnormal access pattern of a user (such as a sudden large number of purchases) through a baseline model. The system then extracts all relevant behavior data of the user, including clicks, browsing, adding to shopping carts, purchases, and other behaviors, and converts these user behavior data into a graph structure. The nodes in the graph structure can represent different behavioral events, and the edges can represent the sequential relationship between events. The system applies a graph attention network to model the graph structure, and can generate a user behavior model for subsequent data security monitoring and traceability.
[0097] 105. Update user behavior model based on real-time access data;
[0098] After applying the graph attention network to model the user behavior data and generate the user behavior model, it is necessary to update the user behavior model based on the real-time access data. This is because the user's behavior pattern is dynamically changing, and modeling based solely on past user behavior data may not be able to fully capture the user's latest behavior characteristics. By updating the user behavior model with real-time access data that triggers abnormal access patterns, the user behavior model can continuously reflect the user's latest behavior pattern, ensuring the real-time and accuracy of the model. Specifically, the system can apply the local update algorithm of the graph attention network to recalculate only the affected nodes and edges in the user behavior model, thereby improving the efficiency of updating the user behavior model.
[0099] 106. Use an anomaly detection algorithm to detect nodes and edges in the updated user behavior model to identify abnormal nodes and abnormal edges associated with abnormal access patterns;
[0100] After the system updates the user behavior model through real-time access data, it applies anomaly detection algorithms to detect anomalies on nodes and edges in the model. First, the system extracts node and edge features from the updated user behavior model, including node degrees, neighbor node features, edge weights, etc. Then, it uses anomaly detection algorithms to detect anomalies based on these node and edge features.
[0101] In some specific embodiments, the system can use an anomaly detection algorithm to perform an anomaly score on each node and edge to determine the degree of deviation from the normal behavior pattern. Then, based on the anomaly score and the preset score threshold, the system identifies the abnormal nodes and abnormal edges. For example, if it is detected that certain behavior nodes (such as frequent login operations) and edges (such as fast switching between different devices) of a certain user have high anomaly scores, the nodes and edges with scores higher than the score threshold are marked as abnormal and used as the object of further analysis and tracing.
[0102] 107. Perform multi-dimensional aggregation analysis on the data flow path in the user behavior model based on abnormal nodes and abnormal edges, and identify the target abnormal path in the data flow path based on the result of the multi-dimensional aggregation analysis;
[0103] In the user behavior model, the data flow path is a sequence of multiple nodes and edges, representing a series of continuous operations of the user in the system. After identifying abnormal nodes and abnormal edges, the system can identify the target abnormal path among many data flow paths. The target abnormal path is a data flow path with significant abnormal characteristics.
[0104] For example:
[0105] Login (Node A): Users log into their accounts from different devices and locations;
[0106] Browsing products (Node B): Users view products of different categories and brands;
[0107] Add to cart (Node C): The user selects an item and adds it to the cart;
[0108] Settlement and payment (Node D): The user settles and completes the payment.
[0109] In this case, the data flow path A→B→C→D reflects a series of operations from user login to payment. If a user frequently switches devices to log in within a short period of time and performs a large number of fast payment operations for high-value goods, the system can identify the abnormal nodes as nodes A and D. The system constructs the user's behavior path based on the abnormal nodes and edges. This path significantly deviates from the normal behavior pattern (such as A→D→A→D). At this time, the system will determine that the data flow path is the target abnormal path.
[0110] However, in actual applications, the system needs to process frequent operations of a large number of users, covering data of multiple dimensions (such as time, geographic location, device type, etc.), and needs to process real-time incoming data and accumulated historical data at the same time, resulting in a very large amount of data. In order to effectively identify the target abnormal path, the system needs to perform multi-dimensional aggregation analysis, and identify the target abnormal path in the data flow path by integrating features such as time, space, behavior patterns and relationships, so as to effectively locate and respond to potential security threats. This multi-dimensional aggregation analysis includes but is not limited to: feature dimension analysis: analyzing the characteristics of each node and edge in the path, such as access frequency, time interval, geographic location, device type, etc.; behavior pattern dimension analysis: analyzing the behavior patterns of users in the path, such as common operation sequences, preferred behaviors, etc.; association dimension analysis: analyzing the association relationship between nodes and edges, such as multiple visits in the same time period, intersections of different paths, etc. After that, clustering algorithms (such as K-means, DBSCAN) are used to cluster the paths to identify the target abnormal paths. Through multi-dimensional aggregation analysis, the system can fully understand the specific situation of abnormal nodes and edges in the data flow path, and multi-dimensional aggregation analysis can improve the accuracy of identifying abnormal paths and ensure that the detected target abnormal paths have high-risk characteristics.
[0111] 108. Conduct source tracing analysis on the target abnormal path, and track and mark the data flow events on the target abnormal path;
[0112] After identifying the target abnormal path, the system can perform traceability analysis based on the target abnormal path, track and mark each data flow event on the target abnormal path, and fully understand the source and direction of each data flow event. The traceability analysis specifically involves multi-dimensional analysis and detailed event marking, which can record detailed information on each data flow event from multiple angles such as time, location, and equipment.
[0113] Through source tracing analysis, all operations on the target abnormal path can be effectively tracked, potential sources of security threats can be identified, and a comprehensive understanding of abnormal behavior can be formed. The system can also build a complete source tracing map based on the results of the source tracing analysis, so that the system can effectively track all operations on the target abnormal path, ensuring that every link of the abnormal behavior is monitored and analyzed, providing a basis for further security response. In addition, the system can further use graph analysis technology to build a source tracing map of the target abnormal path, visually displaying the relationship between abnormal nodes and abnormal edges.
[0114] For example, the system detects that a user account frequently switches devices to log in within a short period of time, and performs a large number of quick payment operations for high-value goods, and these operations constitute a target abnormal path. At this time, the system can construct a timeline of the target abnormal path in chronological order through traceability analysis, marking the timestamp of each data flow event:
[0115] 10:00 AM: User logs in on device A.
[0116] 10:05 AM: User logs in on device B.
[0117] 10:10 AM: User makes first payment from device A.
[0118] 10:15 AM: User makes a second payment from device B.
[0119] The system can also record the details of each event, such as login device, IP address, payment amount, etc., and track the order of each event to ensure that all operations are monitored and analyzed. The system can also further analyze the time difference and device switching logic between each event in the recorded timeline to determine the pattern and possible rationality of abnormal behavior. For example, frequent device switching may indicate that the account is accessed by multiple people or malware. Each login and each payment event can be traced and marked in detail by the system to ensure that the source and flow of each payment can be tracked.
[0120] 109. Initiate a security response strategy based on the results of the source tracing analysis.
[0121] The source tracing analysis in step 108 not only helps to fully understand the cause and propagation path of the abnormal access pattern, but also provides a reliable basis for further security response and decision-making, so that the system can dynamically adjust its subsequent security response strategy to be initiated, adapt to the changing threat environment more agilely, provide more efficient and accurate security monitoring and response capabilities, and ensure the security and reliability of user and platform data.
[0122] In this embodiment, by collecting and analyzing a large amount of historical access data, the access pattern of the system under normal circumstances is understood, and the baseline model is established using historical data. When the system is actually running, the user's real-time access data is input into the baseline model to determine whether an abnormal access pattern occurs, and any abnormal activities that deviate from normal behavior are quickly identified. After detecting an abnormal access pattern, the user behavior data is modeled through the graph attention network to generate a user behavior model, and the new real-time access data is input into the user behavior model to ensure that the model can reflect the latest user behavior and data flow. Combined with the anomaly detection algorithm, the abnormal nodes and abnormal edges associated with the abnormal access pattern are identified, and the detected abnormal nodes and edges are subjected to multi-dimensional aggregation analysis to identify the target abnormal path in the data flow path. Finally, the target abnormal path is traced and analyzed, each data flow event on the data flow path is tracked and marked, and the corresponding security response strategy is initiated.
[0123] By using historical data to establish a baseline model, detecting abnormal access patterns in real time, and combining graph attention networks and anomaly detection algorithms to accurately model, analyze, and trace user behavior, this application can dynamically adapt to emerging threats, provide accurate risk assessment capabilities and data traceability, and significantly improve the real-time, accuracy, and overall protection capabilities of data security monitoring.
[0124] See also Figure 2 , Figure 2 Another embodiment of the artificial intelligence-based data security tracing method provided in this application includes:
[0125] 201. Obtain historical access data, and select a number of target features for distinguishing normal access patterns from abnormal access patterns from the historical access data;
[0126] 202. Configure control parameters of the initial model, and train the initial model through historical access data according to target features and control parameters until the model converges to obtain a baseline model of a normal access mode;
[0127] In this embodiment, steps 201 to 202 are similar to steps 101 to 102 in the aforementioned embodiment, and are not described again here.
[0128] 203. Collect real-time access data and predict the real-time access data through the baseline model to determine whether abnormal access patterns occur;
[0129] In this embodiment, step 203 is similar to step 103 in the above embodiment and will not be described again here.
[0130] In some specific embodiments, the baseline model can be updated through incremental learning based on real-time access data to update the detection mechanism in real time. Taking the use of the Hoeffding tree as a baseline model as an example, the Hoeffding tree has incremental learning capabilities and can learn instantly when the data stream (i.e., real-time access data) arrives without the need to store and reprocess historical access data. This capability enables the baseline model in this embodiment to quickly adapt to new data patterns and behavioral changes, and to capture emerging threat patterns in a timely manner. As new real-time access data continues to enter the system, the baseline model composed of the Hoeffding tree will dynamically adjust the model structure according to the characteristics and distribution of the data, and integrate new information by adding new branches or adjusting node conditions, so that the baseline model can continue to improve its predictive capabilities while maintaining model consistency, quickly identify and adapt to emerging threat patterns, and ensure the effectiveness and reliability of the baseline model.
[0131] 204. Obtain user behavior data, and construct a target graph structure according to the user behavior data, wherein the points in the target graph structure are defined as data entities, and the edges in the target graph structure are defined as data flow paths;
[0132] In this embodiment, when constructing a target graph structure based on user behavior data, an adjacency matrix can be selected to represent the target graph structure. Determine each data entity as a node in the graph based on the data entity in the user behavior data. The data entity can be a user, device, application, or specific data object. Then determine the edges in the graph based on the data flow path. The data flow path can be a sequence or association of operations from one node to another, and the path may pass through multiple intermediate nodes. In addition, for each edge or node, attributes can be added to describe the characteristics of the data flow, such as timestamp, operation type, data volume, and other information, to enrich the expressiveness of the target graph structure.
[0133] 205. Define and initialize a graph attention network model, and use the target graph structure and node features to train the graph attention network model to obtain a user behavior model;
[0134] In this embodiment, the GAT model is selected and the number of layers of the network, the number of attention heads in each layer, and the activation function are defined to initialize the weights and biases of the GAT model. The target graph structure constructed in step 204 is used as input, including the definition of nodes and edges, and the feature vector representation of each node, and the importance and mutual influence of each node in the graph are automatically learned through the attention mechanism. During the training process, the cross entropy loss function and the stochastic gradient descent (SGD) optimization algorithm are specifically used. After the training is completed, the trained graph attention network model is determined as a user behavior model, which can capture the complex relationships and patterns in the user behavior data, thereby providing an in-depth understanding and analysis of user behavior. By introducing the attention mechanism, the model can focus on important behavior patterns and improve the perception of key interactions.
[0135] The following is a sample code for building the target graph structure and training the graph attention network model:
[0136] import dgl
[0137] import torch
[0138] import torch.nn as nn
[0139] import torch.nn.functional as F
[0140] import numpy as np
[0141] from dgl.nn.pytorch import GATConv
[0142] from sklearn.ensemble import IsolationForest
[0143] # Example historical data
[0144] users = ['user1', 'user2', 'user3']
[0145] files = ['file1', 'file2', 'file3']
[0146] access_times = [1, 2, 3]
[0147] # Build the graph structure
[0148] G = dgl.DGLGraph()
[0149] G.add_nodes(len(users) + len(files))
[0150] # Add node features
[0151] user_features = torch.randn(len(users), 5)# Randomly generate user features
[0152] file_features = torch.randn(len(files), 5)# Randomly generate file features
[0153] G.ndata['feat'] = torch.cat([user_features, file_features], dim=0)
[0154] # Add edges and edge features
[0155] edges = [(0, 3), (1, 4), (2, 5)] # Edges between users and files
[0156] G.add_edges(*zip(*edges))
[0157] G.edata['access_time'] = torch.tensor(access_times).float()
[0158] # Define the Graph Attention Network (GAT) model
[0159] class GAT(nn.Module):
[0160] def __init__(self, in_dim, hidden_dim, out_dim, num_heads):
[0161] super(GAT, self).__init__()
[0162] self.layer1 = GATConv(in_dim, hidden_dim, num_heads)
[0163] self.layer2 = GATConv(hidden_dim * num_heads, out_dim, 1)
[0164] def forward(self, g, inputs):
[0165] h = self.layer1(g, inputs)
[0166] h = F.elu(h)
[0167] h = h.flatten(1)
[0168] h = self.layer2(g, h)
[0169] return h
[0170] # Initialize the model, loss function and optimizer
[0171] in_dim = 5
[0172] hidden_dim = 8
[0173] out_dim = 2
[0174] num_heads = 2
[0175] model = GAT(in_dim, hidden_dim, out_dim, num_heads)
[0176] loss_fn = nn.CrossEntropyLoss()
[0177] optimizer = torch.optim.Adam(model.parameters(), lr=0.01)
[0178] #Simulation training process
[0179] for epoch in range(100):
[0180] model.train()
[0181] logits = model(G, G.ndata['feat'])
[0182] loss = loss_fn(logits, torch.tensor([0, 1, 0, 1, 0, 1]))# Random labels
[0183] optimizer.zero_grad()
[0184] loss.backward()
[0185] optimizer.step()
[0186] print(f'Epoch {epoch}, Loss: {loss.item()}')
[0187] 206. Input the real-time access data into the graph attention network model, update the user behavior model and generate a new embedding representation;
[0188] The system uses real-time access data as input to the graph attention network model to update the existing user behavior model. Specifically, through the back-propagation algorithm in the model training process, the model parameters are optimized and new node embedding representations are generated. These new embedding representations reflect the latest relationship between current data entities and data flow paths, so as to better identify and respond to new abnormal access patterns.
[0189] 207. Use the One-Class SVM algorithm to perform anomaly detection on the new embedding representation to identify abnormal nodes and abnormal edges associated with abnormal access patterns;
[0190] The system obtains the newly generated embedding representations. These embedding vectors reflect the characteristics and position of each data entity in the graph structure. One-Class SVM is selected as the algorithm for anomaly detection. The new embedding representation data is input into the trained One-Class SVM model for analysis, effectively identifying abnormal nodes and abnormal edges associated with abnormal access patterns. In this process, nodes with high anomaly scores may represent abnormal or rare patterns in user behavior, which require further review and processing. Edges connecting abnormal nodes may also indicate abnormal or unusual relationships in data flow.
[0191] The following is a sample code for updating the graph structure when real-time access data arrives, using the trained GAT model to generate new node embedding representations, and then using the One-Class SVM model to perform anomaly detection on the new embedding representations:
[0192] # Simulate real-time data input
[0193] new_user_feature = torch.randn(1, 5) # New user feature
[0194] new_file_feature = torch.randn(1, 5) # New file feature
[0195] new_edge = (0, 6) # New edge between user and file
[0196] new_access_time = torch.tensor([4.0])# New access time
[0197] # Update graph structure
[0198] G.add_nodes(1)# Add new node (file)
[0199] G.ndata['feat'] = torch.cat([G.ndata['feat'], new_file_feature], dim=0)
[0200] G.add_edge(*new_edge)
[0201] G.edata['access_time'] = torch.cat([G.edata['access_time'], new_access_time], dim=0)
[0202] # Real-time data analysis and anomaly detection
[0203] model.eval()
[0204] with torch.no_grad():
[0205] new_logits = model(G, G.ndata['feat'])
[0206] print('New Logits:', new_logits)
[0207] # Extract node embedding representation
[0208] new_node_embeddings = new_logits.numpy()
[0209] # Use the trained One-Class SVM model for anomaly detection
[0210] anomaly_scores = ocsvm.decision_function(new_node_embeddings)
[0211] anomalies = np.where(anomaly_scores<0)[0]
[0212] print('Anomalies detected at nodes:', anomalies)
[0213] 208. Apply the graph traversal algorithm starting from the abnormal node, traverse and record all abnormal paths in the data flow path in the user behavior model;
[0214] After identifying abnormal nodes and abnormal edges, it is necessary to identify the target abnormal path. The system specifically applies a graph traversal algorithm, starting from the identified abnormal node, using it as the starting point of the traversal, and using the selected graph traversal algorithm to explore the data flow path in the user behavior model, and record all nodes and edges passed during the traversal, including normal and abnormal connection relationships. During the traversal process, the paths associated with the abnormal nodes are marked and recorded. These paths may involve multiple nodes and edges, showing the flow trajectory of abnormal behavior. The system can use depth-first search DFS to record all nodes and edges in the path, or breadth-first search BFS to traverse the path step by step according to business needs. The specifics are not limited here.
[0215] 209. Screen out important abnormal paths from the abnormal paths according to preset indicators, where the preset indicators include at least one of the path length, the amount of sensitive data involved in the path, and specific business risk factors;
[0216] In order to eliminate the interference of temporary or one-time events, important abnormal paths can be screened out from the abnormal paths according to preset indicators. The preset indicators are introduced in detail below:
[0217] Path length: The length of an abnormal path refers to the number of nodes or edges contained in the path. Generally, longer paths indicate more complex or deeper abnormal behaviors.
[0218] Amount of sensitive data involved: The amount of sensitive data involved in the abnormal path refers to the number or volume of sensitive data involved in the path. Sensitive data can be defined based on business needs and security policies, such as personal identity information, financial data, etc.
[0219] Specific business risk factors: Evaluate the importance of abnormal paths based on specific business risk factors, which may include key operations in business processes, access control permissions, data access frequency, etc.
[0220] The system evaluates or prioritizes abnormal paths based on preset indicators to determine which abnormal paths are identified as important abnormal paths. Generally, longer paths, paths involving large amounts of sensitive data, or paths associated with high-risk business factors will be given priority as important abnormal paths.
[0221] 210. Perform multi-dimensional aggregation analysis on important abnormal paths, and determine the target abnormal path based on the results of the multi-dimensional aggregation analysis;
[0222] In this embodiment, the system only performs multi-dimensional aggregation analysis on the important abnormal paths determined in step 209, and determines the target abnormal path according to the results of the multi-dimensional aggregation analysis, which includes multi-dimensional aggregation analysis of the important abnormal paths in terms of time dimension, user behavior dimension, data sensitivity dimension and business logic dimension. Among them, the analysis of the time dimension is to analyze the frequency and trend changes of abnormal paths in different time periods, including identifying whether the abnormal paths increase or decrease over time, and whether there are abnormal behaviors in specific time periods or periods, for example, it can be observed whether the abnormal paths frequently appear during specific working days, weekends or holidays. The user behavior dimension analysis is to examine the specific users or user groups involved in the abnormal path, and analyze their behavior patterns and behavior changes, including identifying whether the users involved in the abnormal path have common characteristics or behavior patterns, and whether their behavior in the abnormal path conforms to the normal operation mode. The data sensitivity dimension analysis is to evaluate the data sensitivity level and type involved in the abnormal path, specifically including determining whether the abnormal path involves highly sensitive data or information, and the potential risks that the leakage or tampering of these data may cause to system security and privacy. Business logic dimension analysis is to analyze how abnormal paths affect business processes and logic, including determining whether abnormal paths are associated with key business activities and the specific business impacts and losses that abnormal paths may cause.
[0223] When conducting multi-dimensional aggregation analysis, the system will combine the information from the above dimensions to comprehensively evaluate the overall risk and impact of each important abnormal path, determine the overall risk and impact of each important abnormal path, thereby identifying the target abnormal path that most needs to be processed and executing subsequent steps to trace the target abnormal path to ensure data security.
[0224] 211. Starting from the identified abnormal node or abnormal edge, trace the source along the target abnormal path, track and mark each data flow event on the target abnormal path, and record the relevant context information;
[0225] The system uses the abnormal nodes or abnormal edges identified in the previous steps as the starting point to start tracing the target abnormal path. By tracing the data flow path, the system records each data flow event to understand in detail the source, destination, and each link of the data on the target abnormal path. In the process of tracking data flow events, the system collects and records relevant contextual information. This information may include but is not limited to: timestamp, user identity that triggered the event, data entities or data sets involved, specific operations of data processing (such as reading, writing, transmission, etc.), path information of data flow (such as network address, device information), and environmental conditions where the event occurred (such as network status, device status, etc.). Through tracing the source analysis and event marking of the target abnormal path, the system can fully understand and record the occurrence of abnormal events and the specific context behind them, providing in-depth data support and basis for further security response and risk management.
[0226] 212. Treat each data flow event as a block and connect them into a chain for storage. Each block contains the information of the current data flow event and the hash value of the previous block.
[0227] In order to ensure the immutability and traceability of traceability data, each data flow event traced back can be stored as a block and connected in series into a chain. Each block contains detailed information about the current data flow event, such as timestamp, event type, data entities involved, and operation description, as well as the hash value of the previous block. This structure ensures that each block cannot be modified after creation, because any change to the content of the block will cause its hash value to change, thereby destroying the continuity of the entire chain. As a result, the system can effectively record and manage the historical flow path of data, providing highly secure and traceable data traceability functions, especially suitable for data management scenarios that require high protection and auditing, such as financial transactions, medical records, etc.
[0228] 213. Initiate a security response strategy based on the results of the source tracing analysis.
[0229] Based on the results of the source tracing analysis of the target abnormal path, the system can identify potential security risks and attack trends, issue potential risk warnings, or directly adopt security measures. Specifically, for data flow paths or nodes marked as abnormal, the system can immediately take measures to restrict access to sensitive data, temporarily or permanently reduce or suspend the access rights of certain users or systems to specific data, so as to reduce the potential risk of data leakage. If it is found that certain nodes have been threatened or have security vulnerabilities during the source tracing analysis process, the system can immediately isolate these abnormal nodes, temporarily disconnect from the network, or set specific access restrictions to prevent the spread of security threats and further damage to the system. When serious security threats or abnormal behaviors are found during the source tracing analysis process, the system can immediately send a security alert to notify the system administrator, security team, or other relevant parties to ensure timely response and take necessary emergency measures to deal with security threats.
[0230] By tracing the source of the target abnormal path and guiding the effective implementation of the security response strategy based on the results of the tracing analysis, it is possible to identify and respond to potential security risks in a timely manner, minimize the possibility of data leakage and system attacks, and thus protect the security and stability of the system.
[0231] In this embodiment, by updating the user behavior model through real-time access data, the system can timely identify and respond to new and unknown attack patterns and dynamically adapt to changing security threats. Secondly, by using graph attention network and blockchain technology, the system can accurately track the flow path of data and ensure the immutability of data flow events, thereby improving the accuracy and credibility of data traceability. In addition, it is combined with multi-dimensional aggregation analysis to comprehensively evaluate the risks and impacts of abnormal paths, identify the most important target abnormal paths, and improve the overall risk assessment capabilities. And the system can timely initiate security response strategies based on the results of abnormal detection and traceability analysis, quickly respond to potential security threats, reduce the risk of data leakage and system attacks, and thus provide strong protection for data security. Therefore, the data security traceability method based on artificial intelligence provided in this embodiment significantly improves the real-time, accuracy and overall protection capabilities of data security monitoring by dynamically adapting to emerging threats, accurate data traceability, comprehensive risk assessment and effective security response.
[0232] See also Figure 3 , Figure 3 An embodiment of the data security tracing system based on artificial intelligence provided by this application includes:
[0233] Establishing unit 301, for acquiring historical access data, screening several target features for distinguishing normal access mode from abnormal access mode from the historical access data; configuring control parameters of the initial model, training the initial model with the historical access data according to the target features and the control parameters until the model converges, and obtaining a baseline model of the normal access mode;
[0234] A judgment unit 302 is used to collect real-time access data and predict the real-time access data through a baseline model to determine whether an abnormal access pattern occurs;
[0235] A generating unit 303 is used to obtain user behavior data and apply a graph attention network to model the user behavior data to generate a user behavior model when the judgment result of the judging unit 302 is yes;
[0236] A first updating unit 304, configured to update the user behavior model according to the real-time access data;
[0237] A first identification unit 305 is used to detect nodes and edges in the updated user behavior model using an anomaly detection algorithm to identify abnormal nodes and abnormal edges associated with abnormal access patterns;
[0238] The second identification unit 306 is used to perform multi-dimensional aggregation analysis on the data flow path in the user behavior model according to the abnormal nodes and abnormal edges, and identify the target abnormal path in the data flow path according to the result of the multi-dimensional aggregation analysis;
[0239] A source tracing analysis unit 307 is used to perform source tracing analysis on a target abnormal path, and track and mark data flow events on the target abnormal path;
[0240] The security response unit 308 is used to initiate a security response strategy according to the result of the source tracing analysis.
[0241] Optionally, the establishing unit 301 is specifically configured to:
[0242] Selecting several target features for distinguishing normal access patterns from abnormal access patterns from historical access data;
[0243] Configure the control parameters of the initial model. According to the target features and control parameters, train the initial model with historical access data until the model converges to obtain a baseline model of the normal access mode. The baseline model is the Hoeffding tree model. The control parameters include the depth of the tree, the minimum number of samples required for splitting, the confidence and penalty factor of the Hoeffding inequality.
[0244] Optionally, the system further includes: a second updating unit 309;
[0245] The updating unit is specifically used to update the baseline model through incremental learning according to real-time access data.
[0246] Optionally, the generating unit 303 is specifically used to: obtain user behavior data, and construct a target graph structure according to the user behavior data, where points in the target graph structure are defined as data entities, and edges in the target graph structure are defined as data flow paths;
[0247] Define and initialize the graph attention network model, and use the target graph structure and node features to train the graph attention network model to obtain the user behavior model.
[0248] Optionally, the first updating unit 304 is specifically configured to:
[0249] Input the real-time access data into the graph attention network model, update the user behavior model and generate a new embedding representation;
[0250] Optionally, the first identification unit 305 is specifically configured to:
[0251] The One-Class SVM algorithm is used to perform anomaly detection on the new embedding representation to identify abnormal nodes and abnormal edges associated with abnormal access patterns.
[0252] Optionally, the second identification unit 306 is specifically configured to:
[0253] The graph traversal algorithm is applied starting from the abnormal node, traversing and recording all abnormal paths in the data flow path in the user behavior model;
[0254] Screen out important abnormal paths from the abnormal paths according to preset indicators, where the preset indicators include at least one of the path length, the amount of sensitive data involved in the path, and specific business risk factors;
[0255] Perform multi-dimensional aggregation analysis on important abnormal paths, and determine the target abnormal path based on the results of the multi-dimensional aggregation analysis.
[0256] Optionally, the second identification unit 306 is further configured to:
[0257] Perform multi-dimensional aggregation analysis on important abnormal paths in terms of time dimension, user behavior dimension, data sensitivity dimension and business logic dimension, and determine the target abnormal path based on the results of the multi-dimensional aggregation analysis.
[0258] Optionally, the source tracing analysis unit 307 is specifically used for:
[0259] Starting from the identified abnormal node or abnormal edge, trace the source along the target abnormal path, track and mark each data flow event on the target abnormal path, and record the relevant context information;
[0260] Optionally, the security response strategy includes:
[0261] Early warning of potential risks, limiting data access, isolating abnormal nodes, and / or sending security alerts.
[0262] This application also provides a data security tracing device based on artificial intelligence, please refer to Figure 4 , Figure 4 An embodiment of an artificial intelligence-based data security tracing device provided in this application includes:
[0263] Processor 401, memory 402, input and output unit 403, bus 404;
[0264] The processor 401 is connected to the memory 402, the input and output unit 403 and the bus 404;
[0265] The memory 402 stores a program, and the processor 401 calls the program to execute any of the above artificial intelligence-based data security tracing methods.
[0266] The present application also relates to a computer-readable storage medium on which a program is stored. When the program runs on a computer, the computer executes any of the above-mentioned artificial intelligence-based data security tracing methods.
[0267] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0268] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0269] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0270] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0271] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.
Claims
1. A data security tracing method based on artificial intelligence, characterized in that: The data security tracing method comprises: Acquire historical access data, and select a number of target features for distinguishing normal access patterns from abnormal access patterns from the historical access data; Configure control parameters of the initial model, train the initial model through the historical access data according to the target features and the control parameters until the model converges, and obtain a baseline model of the normal access mode, wherein the baseline model is a Hoeffding tree model, and the control parameters include the depth of the tree, the minimum number of samples required for splitting, the confidence and penalty factor of the Hoeffding inequality; Collecting real-time access data, and predicting the real-time access data using the baseline model to determine whether an abnormal access pattern occurs; If yes, obtain user behavior data, and apply the graph attention network to model the user behavior data to generate a user behavior model; updating the user behavior model according to the real-time access data; Using an anomaly detection algorithm to detect nodes and edges in the updated user behavior model to identify abnormal nodes and abnormal edges associated with the abnormal access pattern; Performing a multi-dimensional aggregation analysis on the data flow path in the user behavior model according to the abnormal nodes and the abnormal edges, and identifying a target abnormal path in the data flow path according to the result of the multi-dimensional aggregation analysis; Performing source tracing analysis on the target abnormal path, tracking and marking data flow events on the target abnormal path; Initiate a security response strategy based on the results of the source tracing analysis; The performing aggregation analysis on the data flow path in the user behavior model according to the abnormal nodes and the abnormal edges, and identifying a target abnormal path in the data flow path according to the result of the aggregation analysis, includes: Applying a graph traversal algorithm starting from the abnormal node, traversing and recording all abnormal paths in the data flow path in the user behavior model; Screening out important abnormal paths from the abnormal paths according to preset indicators, wherein the preset indicators include at least one of path length, amount of sensitive data involved in the path, and specific business risk factors; A multi-dimensional aggregation analysis is performed on the important abnormal paths in terms of time dimension, user behavior dimension, data sensitivity dimension and business logic dimension, and a target abnormal path is determined based on the results of the multi-dimensional aggregation analysis.
2. The data security tracing method according to claim 1, characterized in that: After predicting the real-time access data by using the baseline model to determine whether an abnormal access pattern occurs, the method further includes: The baseline model is updated through incremental learning according to the real-time access data.
3. The data security tracing method according to claim 1, characterized in that: The acquiring of user behavior data and applying a graph attention network to model the user behavior data to generate a user behavior model includes: Acquire user behavior data, and construct a target graph structure according to the user behavior data, wherein the points in the target graph structure are defined as data entities, and the edges in the target graph structure are defined as data flow paths; A graph attention network model is defined and initialized, and the graph attention network model is trained using the target graph structure and node features to obtain a user behavior model.
4. The data security tracing method according to claim 3, characterized in that: The updating of the user behavior model according to the real-time access data comprises: Input the real-time access data into the graph attention network model, update the user behavior model and generate a new embedding representation; The adopting of an anomaly detection algorithm to detect nodes and edges in the updated user behavior model to identify abnormal nodes and abnormal edges associated with the abnormal access pattern includes: A One-Class SVM algorithm is used to perform anomaly detection on the new embedding representation to identify abnormal nodes and abnormal edges associated with the abnormal access pattern.
5. The data security tracing method according to any one of claims 1 to 4, characterized in that: The tracing and analyzing the target abnormal path, tracking and marking the data flow events on the target abnormal path, includes: Starting from the identified abnormal node or abnormal edge, trace the source along the target abnormal path, track and mark each data flow event on the target abnormal path, and record relevant context information; Each of the data flow events is taken as a block and connected in series into a chain for storage, and each block contains information about the current data flow event and a hash value of the previous block.
6. The data security tracing method according to any one of claims 1 to 4, characterized in that: The security response strategy includes: Early warning of potential risks, limiting data access, isolating abnormal nodes, and / or sending security alerts.
7. A data security tracing system based on artificial intelligence, characterized in that: The data security tracing system includes: Establishing a unit, used to obtain historical access data, and screen several target features for distinguishing normal access patterns from abnormal access patterns from the historical access data; configuring control parameters of an initial model, and training the initial model through the historical access data according to the target features and the control parameters until the model converges, so as to obtain a baseline model of a normal access pattern, wherein the baseline model is a Hoeffding tree model, and the control parameters include the depth of the tree, the minimum number of samples required for splitting, the confidence and penalty factor of the Hoeffding inequality; A judgment unit, used for collecting real-time access data, and predicting the real-time access data through the baseline model to judge whether an abnormal access pattern occurs; A generating unit, configured to obtain user behavior data when the judgment result of the judging unit is yes, and apply a graph attention network to model the user behavior data to generate a user behavior model; A first updating unit, configured to update the user behavior model according to the real-time access data; A first identification unit, configured to detect nodes and edges in the updated user behavior model using an anomaly detection algorithm, and identify abnormal nodes and abnormal edges associated with the abnormal access pattern; A second identification unit is used to perform a multi-dimensional aggregation analysis on the data flow path in the user behavior model according to the abnormal nodes and the abnormal edges, and identify a target abnormal path in the data flow path according to the result of the multi-dimensional aggregation analysis; A source tracing analysis unit, used to perform source tracing analysis on the target abnormal path, and track and mark data flow events on the target abnormal path; A security response unit, configured to initiate a security response strategy based on the result of the source tracing analysis; The second identification unit is specifically used for: Applying a graph traversal algorithm starting from the abnormal node, traversing and recording all abnormal paths in the data flow path in the user behavior model; Screening out important abnormal paths from the abnormal paths according to preset indicators, wherein the preset indicators include at least one of path length, amount of sensitive data involved in the path, and specific business risk factors; A multi-dimensional aggregation analysis is performed on the important abnormal paths in terms of time dimension, user behavior dimension, data sensitivity dimension and business logic dimension, and a target abnormal path is determined based on the results of the multi-dimensional aggregation analysis.
Citation Information
Patent Citations
Big data privacy protection method and system based on federated learning
CN117972783A
Data access control method, network switching subsystem and intelligent computing platform
CN117978556A
Cited By
Data security online intelligent monitoring management system
CN121396529A
